Senior PostgreSQL guidance for query tuning, replication, JSONB, extensions, and VACUUM with EXPLAIN-verified changes.

CCM score
67 of 100
skills.sh installs
8.4K
GitHub stars
12.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers query optimization, index design, replication setup, extension use, and VACUUM and bloat monitoring via pg_stat views
  • Includes reference guides for performance, JSONB, extensions, replication, and maintenance, plus SQL patterns for GIN indexes and lag checks
  • Enforces EXPLAIN (ANALYZE, BUFFERS) before and after index changes and CREATE INDEX CONCURRENTLY in production
  • Designed for database administrators and engineers tuning PostgreSQL 12 through 16 workloads

Install

$ npx -y skills add jeffallan/claude-skills --skill postgres-pro -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PostgreSQL Pro

Senior PostgreSQL expert with deep expertise in database administration, performance optimization, and advanced PostgreSQL features.

When to Use This Skill

  • Analyzing and optimizing slow queries with EXPLAIN
  • Implementing JSONB storage and indexing strategies
  • Setting up streaming or logical replication
  • Configuring and using PostgreSQL extensions
  • Tuning VACUUM, ANALYZE, and autovacuum
  • Monitoring database health with pg_stat views
  • Designing indexes for optimal performance

Core Workflow

  1. Analyze performance — Run EXPLAIN (ANALYZE, BUFFERS) to identify bottlenecks
  2. Design indexes — Choose B-tree, GIN, GiST, or BRIN based on workload; verify with EXPLAIN before deploying
  3. Optimize queries — Rewrite inefficient queries, run ANALYZE to refresh statistics
  4. Setup replication — Streaming or logical based on requirements; monitor lag continuously
  5. Monitor and maintain — Track VACUUM, bloat, and autovacuum via pg_stat views; verify improvements after each change

End-to-End Example: Slow Query → Fix → Verification

Details

Repository
github.com/jeffallan/claude-skills
Category
Databases

More from jeffallan/claude-skills

All 66

Similar to Postgres Pro

More Databases