postgis-skill

Extract PostGIS best practices and usage patterns for geospatial SQL queries.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/HuynhSang2005/delivery-app --skill postgis-skill-huynhsang2005
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgis-skill
Source: https://github.com/HuynhSang2005/delivery-app/tree/main/.agents/skills/postgis-skill
Command: npx skills add https://github.com/HuynhSang2005/delivery-app --skill postgis-skill-huynhsang2005

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostGIS-focused SQL tips, tricks, and gotchas to help developers write robust geospatial queries, improve performance, and maintain clean spatial data in Postgres.

Core Features & Use Cases

  • Consolidated guidance on common PostGIS pitfalls and best practices for geometry, geography, and topology.
  • Practical tips for query optimization, indexing, and data modeling in geospatial workloads.
  • Use Case: accelerate debugging and optimization of spatial queries in large datasets.

Quick Start

Run a quick query to inspect geometry type and SRID of a sample table to validate your spatial setup.

Frequently Asked Questions about postgis-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize geospatial SQL queries in PostGIS for large datasets?

PostGIS geospatial queries on large datasets require specific indexing strategies and query optimization patterns. This Skill extracts documented best practices to accelerate spatial query debugging and improve performance.

What are common PostGIS pitfalls when working with geometry and geography types?

Common PostGIS pitfalls involve mishandling geometry, geography, and topology types during spatial data modeling. This Skill consolidates guidance on these traps to help developers maintain clean spatial data and write robust geospatial queries.

How do I validate my PostGIS spatial setup and inspect geometry type and SRID?

To validate your PostGIS spatial setup, run a quick query to inspect the geometry type and SRID of a sample table. This verifies your spatial configuration before executing complex geospatial workloads.

When do I need to use PostGIS topology for spatial data modeling?

PostGIS topology is needed when maintaining clean spatial relationships and validating geometries in complex data models. This Skill provides practical workflows and tips for handling topology alongside geometry and geography types.

Does this PostGIS Skill require any specific dependencies or components?

This PostGIS Skill requires no external dependencies or components to function. It serves as a standalone reference for extracting geospatial SQL best practices, usage patterns, and safety considerations.