adilmunawar/zd-claude-plugin/postgis-conventions
Claude Code and agent skill by adilmunawar/zd-claude-plugin
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Spatial table rules: naming, SRID, indexes, area in UTM, ingest validation, safe migrations. PostGIS with SQL Server and GeoPackage equivalents. Apply to any SQL, migration or ORM model with geometry.
Install
npx vskill@latest install adilmunawar/zd-claude-plugin/postgis-conventionsSKILL.md
The same SKILL.md was published earlier as adilmunawar/zd-claude-plugin/postgis-conventions.
Spatial table conventions
- Geometry column is
geom, typed + SRID-constrained:geom geometry(MultiPolygon, 4326). (.NET/EF Core:public MultiPolygon Geom { get; set; }+HasColumnType("geometry(MultiPolygon,4326)").) - Every geometry column gets a spatial index in the same migration:
CREATE INDEX ix_<table>_geom ON <table> USING GIST (geom);(EF:.HasIndex(x => x.Geom).HasMethod("gist"); SQL Server:CREATE SPATIAL INDEX). - Naming:
<domain>_<thing>[_<season>]snake_case —parcels_<area>,crop_sugarcane_2026,admin_tehsil,flood_extent_2025. - Mandatory columns on feature tables:
idPK,source_id(original ID),source(gee-export | model-vN | survey | kml),created_at,updated_at. - Area:
area_ha numeric GENERATED ALWAYS AS (ST_Area(ST_Transform(geom, 32642))/10000) STORED— neverST_Areaon 4326 (seepakistan-crsfor zone choice). - Ingest:
ST_Multi(ST_MakeValid(ST_Transform(geom, 4326))); rejectNOT ST_IsValid(geom) OR ST_IsEmpty(geom). - Dashboards read from views/materialized views refreshed by the ingest job.
- Display copies:
ST_SimplifyPreserveTopology(geom, tol)intogeom_simpleor a_displayview. - Destructive statements need a
_bak_YYYYMMDDcopy and explicit approval (zd-core hooks enforce the prompt). - Credentials: env vars /
appsettings+ user-secrets /.env— never in code or chat.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/zd-gis/skills/postgis-conventions/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adilmunawar/zd-claude-plugin/postgis-conventions)