.claude/skills/postgresql-patterns/SKILL.md
PostgreSQL and PostGIS patterns for schema design, spatial queries, query optimization, indexing, and zero-downtime migrations. Use when writing SQL, creating tables, optimizing queries, or writing migration files.
npx skillsauth add sdn0303/terrasight postgresql-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Production PostgreSQL + PostGIS guidance for this project. Each reference file covers a specific domain — open only the ones relevant to your task.
EXPLAIN ANALYZE every query before
production deployment.WHERE id > :last_id LIMIT n.
OFFSET prohibited for large datasets.SELECT * — columns specified explicitly?EXPLAIN ANALYZE?CREATE INDEX CONCURRENTLY for production indexes?SET lock_timeout = '5s' before DDL?NOT NULL by default, nullable only with explicit reason?# Run migration dry-run
sqlx migrate run --dry-run
# Check for unused indexes
SELECT indexrelname, idx_scan FROM pg_stat_user_indexes WHERE idx_scan = 0;
development
Rust coding rules for Axum/Tokio/SQLx backends in services/backend. 179 rules split into 14 category files covering ownership, error handling, async, API design, and more. Use when writing, reviewing, or refactoring Rust code, designing error types, async flows, or public APIs.
development
Mapbox GL JS v3 development patterns for real estate data visualization. Use when working with Mapbox maps, Standard Style configuration, layer slots, 3D lighting, expressions, react-map-gl/mapbox integration, or migrating from MapLibre GL JS.
development
MapLibre GL JS + PostGIS integration patterns for real estate data visualization. Use when working on map layers, spatial queries, GeoJSON data pipelines, or 3D extrusion effects.
development
Frontend development rules for Next.js 16, React 19, TanStack Query, Zustand, Zod, Tailwind v4, and shadcn/ui in services/frontend. Use when writing, reviewing, or refactoring React components, data fetching hooks, state management, forms, or UI styling.