A solid reference collection for PostgreSQL work that covers the main complexity areas: table design, vector search with pgvector, hybrid BM25+semantic search, PostGIS spatial queries, and TimescaleDB hypertables. The skill is organized around loading specific references as needed rather than dumping everything at once. The TimescaleDB section is especially practical, with separate guides for setting up fresh hypertables, identifying migration candidates in existing databases, and executing the actual migration. If you're building anything with embeddings or time-series data on Postgres, this consolidates the patterns you'd otherwise be piecing together from docs and blog posts.

skills.sh installs
1.4K
GitHub stars
1.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add timescale/pg-aiguide --skill postgres --agent claude-code

Installs into .claude/skills of the current project.

Files

PostgreSQL Expert Skills

This skill provides comprehensive PostgreSQL expertise through specialized references. Load the appropriate reference based on the task.

Available References

Existing Databases

  • schema-exploration — Read-only, question-driven exploration of schemas, tables, views, routines, triggers, RLS, and extensions using pg_catalog. Use to understand an existing database before designing changes or writing queries.

Table Design

  • design-postgres-tables — Data types, constraints, indexes, JSONB patterns, partitioning, and PostgreSQL best practices. Use for any general table/schema design task.
  • design-postgis-tables — PostGIS spatial table design: geometry vs geography types, SRIDs, spatial indexing, and location-based query patterns. Use when the task involves geographic or spatial data.

Sponsors

Details

Repository
github.com/timescale/pg-aiguide
Categories
Backend & APIs, AI & Agent Building, Productivity & Planning, Marketing & SEO, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from timescale/pg-aiguide

All 8
1merill avatarmsgraphmerill/msgraphUp-to-date Microsoft Graph API knowledge for AI agents. Search 27,700+ Graph APIs, endpoint docs, resource schemas, and community samples — all locally, no netw1.4Kskills.sh installs
2jezweb avatarmcp-builderjezweb/claude-skillsBuild MCP servers in Python with FastMCP. Define tools / resources / prompts, build the server, test locally, deploy to FastMCP Cloud or Docker. Use whenever th1.4Kskills.sh installs
3ruvnet avatarsecurity-auditruvnet/rufloComprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enfo1.4Kskills.sh installs
4mcollina avataroauthmcollina/skillsImplements OAuth 2.0/2.1 authorization flows in Fastify applications — configures authorization code with PKCE, client credentials, device flow, refresh token r1.4Kskills.sh installs
5knowsuchagency avatarmcp2cliknowsuchagency/mcp2cliTurn any MCP server, OpenAPI spec, or GraphQL endpoint into a CLI. Use this skill when the user wants to interact with an MCP server, OpenAPI/REST API, or Graph1.4Kskills.sh installs
6jezweb avatarshopify-productsjezweb/claude-skillsCreate and manage Shopify products via the Admin GraphQL API or CSV import. Workflow: gather data, choose method, execute, verify. Use whenever the user wants t1.4Kskills.sh installs