
Postgres Pro
This is what you reach for when you're knee-deep in PostgreSQL performance issues or setting up replication. It walks you through the full cycle: EXPLAIN ANALYZE to find bottlenecks, creating the right indexes (B-tree, GIN, GiST, BRIN), verifying the planner actually uses them, then monitoring with pg_stat views. The coverage is solid on JSONB operations, VACUUM tuning for high-churn tables, and both streaming and logical replication setup. What I appreciate is the emphasis on verification at every step, especially the "must use EXPLAIN before and after" rule and CREATE INDEX CONCURRENTLY to avoid production locks. The reference guides break out by topic (performance, JSONB, extensions, maintenance) so you're not wading through everything at once.
- skills.sh installs
- 8.2K
- GitHub stars
- 12.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add jeffallan/claude-skills --skill postgres-pro --agent claude-codeInstalls into .claude/skills of the current project.
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
- Analyze performance — Run
EXPLAIN (ANALYZE, BUFFERS)to identify bottlenecks - Design indexes — Choose B-tree, GIN, GiST, or BRIN based on workload; verify with
EXPLAINbefore deploying - Optimize queries — Rewrite inefficient queries, run
ANALYZEto refresh statistics - Setup replication — Streaming or logical based on requirements; monitor lag continuously
- Monitor and maintain — Track VACUUM, bloat, and autovacuum via
pg_statviews; verify improvements after each change
End-to-End Example: Slow Query → Fix → Verification
Sponsors
Details
- Repository
- github.com/jeffallan/claude-skills
- Categories
- Backend & APIs, DevOps & CI/CD, Documentation, Debugging, Databases
More from jeffallan/claude-skills
All 66- Embedded Systems7.1K
- Websocket Engineer7.1K
- Code Reviewer6.9K
- Api Designer6.9K
- Game Developer6.9K
- Sql Pro6.8K
- Rust Engineer6.7K
- Security Reviewer6.5K
- Fastapi Expert6.4K
- Javascript Pro6.4K
- Database Optimizer6.3K
- Java Architect6.2K
- Nestjs Expert6.2K
- Pandas Pro6.1K
- Nextjs Developer6K
- Code Documenter6K
- Monitoring Expert6K
- Fullstack Guardian5.9K
- Prompt Engineer5.9K
- React Expert5.8K
- Terraform Engineer5.7K
- Test Master5.7K
- Cpp Pro5.6K
- Playwright Expert5.6K