postgis-knowledge-patch
PostGIS changes since training cutoff (latest: 3.6.1) — SFCGAL CG_* rename, ST_CoverageClean, ST_AsRasterAgg, topology bigint IDs, viewport simplification, 3D SFCGAL ops. Load before working with PostGIS.
What this skill does
# PostGIS 3.5+ Knowledge Patch Claude's baseline knowledge covers PostGIS through 3.4. This skill provides features from 3.5 (Sep 2024) onwards. **Source**: PostGIS news at https://postgis.net/news/ ## Additional Resources ### Reference Files For detailed descriptions, code examples, and full context on each change, consult: - **`references/postgis-3.5-3.6-details.md`** — Detailed changelog organized by topic (breaking changes, new vector/raster/topology/SFCGAL functions) ## 3.5.0 (2024-09-25) **Requires**: PostgreSQL 12-17, GEOS 3.8+, Proj 6.1+. SFCGAL 1.5 for all SFCGAL features. ### Breaking Changes | Change | Impact | |--------|--------| | SFCGAL `ST_*` → `CG_*` prefix | All SFCGAL functions renamed. Old `ST_` names deprecated. | | `ST_DFullyWithin` semantics | Now `ST_Contains(ST_Buffer(A, R), B)`. May return different results. | | `ST_AsGeoJSON(record)` signature | Can promote column as Feature `id`. Materialized views need rebuild. | | `ST_GeneratePoints` seed | Seeded random points produce different results. Regenerate if needed. | | `ST_Clip` variants replaced | New `touched` param added. Materialized views need rebuild. | ### New Functions | Function | Purpose | |----------|---------| | `ST_HasZ(geom)` / `ST_HasM(geom)` | Boolean Z/M dimension checks | | `ST_CurveN(geom, n)` / `ST_NumCurves(geom)` | CompoundCurve accessors | | `ST_RemoveIrrelevantPointsForView(geom, ...)` | Viewport-based simplification | | `ST_RemoveSmallParts(geom, ...)` | Remove small polygon parts (slivers) | | `TopoGeo_LoadGeometry(topo, geom, tol)` | Load geometry into topology | | `CG_Visibility(polygon, point)` | Visibility polygon (SFCGAL) | | `CG_*Partition` functions | Polygon partitioning algorithms (SFCGAL) | | `ST_ExtrudeStraightSkeleton(geom)` | Extrude along straight skeleton (SFCGAL) | ### ST_Clip `touched` (Raster) ```sql -- Include pixels touched by geometry, not just centers-inside SELECT ST_Clip (rast, geom, touched => true) FROM raster_table; ``` ## 3.5.1 (2024-12-22) **Breaking**: `ST_TileEnvelope` now clips envelopes to tile plane extent. Edge tiles return smaller geometries than before. ## 3.6.0 (2025-09-01) **Requires**: PostgreSQL 12-18, GEOS 3.8+, Proj 6.1+. GEOS 3.14+ for full features. SFCGAL 2.2+ for all SFCGAL features. ### Breaking Changes | Change | Impact | |--------|--------| | TIN/PolyhedralSurface accessors | `ST_NumGeometries`/`ST_GeometryN` return 1. Use `ST_NumPatches`/`ST_PatchN` instead. | | Topology bigint | Topology IDs now `bigint`. Integer functions replaced with bigint versions. | | `st_approxquantile(raster, double precision)` | Removed (ambiguous). Use variant with additional params. | ### New Functions | Function | Purpose | |----------|---------| | `ST_CoverageClean(geom[])` | Clean polygonal coverage — edge match + gap removal (GEOS 3.14) | | `ST_AsRasterAgg(...)` | Aggregate: create raster from geometries | | `ST_ReclassExact(rast, ...)` | Remap exact values in raster | | `ST_IntersectionFractions(rast, geom)` | Raster pixel/geometry intersection fractions (GEOS 3.14) | | `ValidateTopologyPrecision` / `MakeTopologyPrecise` | Topology precision validation and repair | ### New SFCGAL Functions (SFCGAL 2.2) | Function | Purpose | |----------|---------| | `CG_Simplify` | 3D geometry simplification | | `CG_3DAlphaWrapping` | Tight 3D surface around point set | | `CG_Scale` / `CG_Translate` / `CG_Rotate` | 3D affine transformations | | `CG_Buffer3D` | 3D buffering | | `CG_StraightSkeletonPartition` | Partition polygon via straight skeleton | SFCGAL now supports M coordinates (SFCGAL >= 1.5.0).
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.