Skills for Real Engineers. Straight from my .agents directory.
design-postgis-tables
Agent skill fromtimescale/pg-aiguide
Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and performance patterns for location-based applications
How to install design-postgis-tables
npx skills add timescale/pg-aiguide# or add only this skill to Claude Code: copy the folder
skills/design-postgis-tables/
# into
~/.claude/skills/design-postgis-tables/ (all projects)
.claude/skills/design-postgis-tables/ (one project)
1# PostGIS Spatial Table Design23## Before You Start (5 Questions)451. What is the geographic scope (single city/region vs global)?62. What are your primary query patterns (within-radius, bbox, intersects, nearest-neighbor)?73. What units do you need for distance/area (meters vs CRS units), and how accurate must they be?84. What is the expected scale (rows, write rate), and is the data mostly append-only?95. Do you need 3D (Z) or measures (M), or is 2D enough?1011**SQL injection note:** When turning these patterns into application code, use parameterized queries for user-provided values (WKT/WKB, coordinates, IDs, radii). Avoid string-concatenating untrusted input into SQL; for dynamic identifiers, use safe identifier quoting/whitelisting.1213## Core Rules1415- **Always use PostGIS geometry/geography types** instead of PostgreSQL's built-in geometric types (`POINT`, `LINE`, `POLYGON`, `CIRCLE`). PostGIS types provide true spatial capabilities.16- **Choose between GEOMETRY and GEOGRAPHY** based on your use case: GEOMETRY for projected/local data with Cartesian math; GEOGRAPHY for global data requiring accurate spherical calculations.17- **Always specify SRID** (Spatial Reference Identifier) when creating geometry columns. Use `4326` (WGS84) for GPS/global data, appropriate local projections for regional data.18…
Excerpt shown under the repository's Apache-2.0 license.
More skills in pg-aiguide
Similar skill repositories
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
