/postgres-skills:postgres-best-practicesfrom postgres-skills
Provides Postgres best practices covering schema design, indexing, query optimization, migrations, and common pitfalls. Use when writing SQL, designing schemas, or optimizing queries.
Ships in postgres-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guidelines and best practices for working with Postgres, covering schema design, indexing, query optimization, and common pitfalls.
This skill covers PostgreSQL 14 through 18. Version-specific features are tagged (e.g., [PG15+], [PG18+]); environment-dependent examples identify required privileges, extensions, or multi-node setup.
PostgreSQL provides 5 years of support per major version. Always run the latest minor release.
| Version | Initial Release | End of Life |
|---|---|---|
| 18 | September 2025 | November 2030 |
| 17 | September 2024 | November 2029 |
| 16 | September 2023 | November 2028 |
| 15 | October 2022 | November 2027 |
| 14 | September 2021 | November 2026 |
Source: postgresql.org/support/versioning
| Area | Resource | When to Use |
|---|---|---|
| Schema Design | references/schema-design.md | Designing tables, choosing data types, normalizing, partitioning |
| Indexing | references/indexing.md | Choosing index types, composite indexes, partial/covering indexes |
| Query Optimization | references/query-optimization.md | Reading EXPLAIN ANALYZE, fixing bottlenecks, planner tuning |
| Query Patterns | references/query-patterns.md | CTEs, window functions, lateral joins, UPSERT, JSONB, anti-patterns |
| Performance Diagnostics | references/performance-diagnostics.md | pg_stat views, lock analysis, VACUUM, connection management |
| Logical Replication | references/logical-replication.md | Pub/sub replication, live migrations, CDC |
| Hot Standby | references/hot-standby.md | Streaming replication, read replicas, failover |
| Transaction Isolation | references/transaction-isolation.md | Isolation levels, lost updates, serialization failures, retry logic |
| Backup & Restore | references/backup-restore.md | pg_dump/pg_restore, pg_basebackup, PITR, recovery |
| Security & Roles | references/security-roles.md | Privileges, RLS, pg_hba.conf, authentication, SSL |
| Bulk Data Loading | references/bulk-loading.md | COPY patterns, ETL staging, optimizing large loads, batch ops |
| Connection Pooling | references/connection-pooling.md | PgBouncer config, pool modes, prepared statements, sizing |
| Major Version Upgrades | references/major-version-upgrades.md | pg_upgrade, logical replication migration, pre/post checklists |
references/backup-restore.md (opens in a new tab)references/bulk-loading.md (opens in a new tab)references/connection-pooling.md (opens in a new tab)references/hot-standby.md (opens in a new tab)references/indexing.md (opens in a new tab)references/logical-replication.md (opens in a new tab)references/major-version-upgrades.md (opens in a new tab)references/performance-diagnostics.md (opens in a new tab)references/query-optimization.md (opens in a new tab)references/query-patterns.md (opens in a new tab)references/schema-design.md (opens in a new tab)references/security-roles.md (opens in a new tab)references/transaction-isolation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub neondatabase/postgres-skills --plugin postgres-best-practices2 plugins in one repository ship this exact skill · first indexed Aug 26, 2026
Other plugins' skills for the same job