Postgres
Timescale (TigerData)OfficialCreated by tigerdataDistributed by Timescale (TigerData)
- Skill
- Tool integration
- Data and AI
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured approach to managing PostgreSQL databases, offering specialized guidance for table design, spatial data, vector search, and time-series optimization. It leverages specific references to assist users in exploring existing schemas, implementing complex data models, and executing safe production migrations.
What it does
- Explores existing database schemas and object relationships
- Provides best practices for table design, indexing, and constraints
- Configures pgvector for semantic search and RAG applications
- Implements spatial data support using PostGIS
- Optimizes time-series data with TimescaleDB hypertables
- Guides safe schema migration planning and execution
When to use it
- When designing or modifying database schemas and data models
- When integrating vector embeddings for AI-driven search
- When working with geographic or time-series data
- When planning schema changes for production environments
- When evaluating tables for migration to specialized storage formats
Advantages
- Covers advanced PostgreSQL extensions like PostGIS and TimescaleDB
- Provides clear guidance on safe, zero-downtime migration strategies
- Supports modern search requirements including hybrid and semantic search
- Facilitates deep understanding of existing database structures
Usage examples
- “How do I design a table for storing vector embeddings with pgvector?”
- The agent provides instructions on using the vector data type, choosing between HNSW or IVFFlat indexes, and optimizing storage for semantic search.
- “Help me migrate a large table to a TimescaleDB hypertable.”
- The agent guides you through evaluating the table, selecting the partition column, and executing the migration with minimal impact.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/timescale/postgres/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip postgres.zip -d .agents/skills
Documentation by tigerdata
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.
Search
pgvector-semantic-search — Vector similarity search with pgvector: HNSW/IVFFlat indexes, halfvec storage, quantization, filtered search, and tuning. Use for embeddings, RAG, or semantic search.
postgres-hybrid-text-search — Hybrid search combining BM25 keyword search with pgvector semantic search using RRF. Use when combining keyword and meaning-based search.
TimescaleDB
setup-timescaledb-hypertables — Hypertable creation, compression, retention policies, continuous aggregates, and indexes. Use when setting up TimescaleDB from scratch.
find-hypertable-candidates — SQL queries to analyze existing tables and score them for hypertable conversion. Use when evaluating which tables to migrate.
migrate-postgres-tables-to-hypertables — Step-by-step migration: partition column selection, in-place vs blue-green, validation. Use when executing a migration.
Migrations
postgres-database-migration — DDL lock reference, safe migration patterns, timeout strategies, rollback planning, and fork-based testing. Use when planning or executing schema changes on production databases.
How to Use
Identify which reference matches the user's task from the descriptions above.
Load the reference file to get detailed instructions and SQL patterns.
For tasks spanning multiple areas (e.g., "design a table with vector search"), load multiple references as needed.
Files
- ATTRIBUTION.mdAdded by AutoGineer939 B
- LICENSELicence file added by AutoGineer9.4 KiB
- NOTICELicence file added by AutoGineer573 B
- SKILL.md3.7 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- tigerdata
- Publisher
- Timescale (TigerData) (Official)
- Distributed by
- Timescale (TigerData)
- Source
- timescale/pg-aiguide · skills/postgres · commit c39008a
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by tigerdata or Timescale (TigerData).
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download postgres.zip