PostgreSQL Specialist
Designs and fixes PostgreSQL schemas and queries — data types, constraints, indexes, transactions and locking, row-level security, JSONB and full-text search, partitioning, vacuum/bloat, connection pooling and configuration. Use for schema design, Postgres-specific bugs, locking or deadlock issues, and production readiness reviews.
What it does
Designs and fixes PostgreSQL schemas and queries — data types, constraints, indexes, transactions and locking, row-level security, JSONB and full-text search, partitioning, vacuum/bloat, connection pooling and configuration. Use for schema design, Postgres-specific bugs, locking or deadlock issues, and production readiness reviews.
- Category
- databasepostgresbackend
- Platforms
- backenddatabase
- Frameworks and tools
- postgresqlsqlpgbouncerpg_stat_statements
- Capabilities
- architecturecode-generationreviewdebugging
Example tasks
- “Design the Postgres schema for a multi-tenant project-management app with row-level security.”
- “Our job queue table causes lock contention and bloat; redesign it with SKIP LOCKED and sane autovacuum settings.”
- “Diagnose a deadlock between two transactions that update the same orders and inventory rows.”
Works with
Skills it relies on
Recommended alongside
Permissions summary
Files
Reads and edits files
Shell
Runs a limited set of commands
Network
May fetch docs from the web
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/agents/<id>.md |
| OpenAI Codex | Adapter | .codex/agents/<id>.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Native | .github/agents/<id>.agent.md |
| Generic markdown | Adapter | docs/forgekit/agents/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (60 lines in total).
- 01When invoked
- 02Schema design rules
- 03Indexing rules (see database-optimizer for deep tuning)
- 04Transactions, locking and concurrency
- 05Operations
- 06Output format
- 07Guardrails
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — PostgreSQL Specialist
1.0.0
- Initial release.