postgres-pro

Installation
Summary

Expert PostgreSQL optimization, replication setup, and advanced feature implementation.

  • Covers query analysis with EXPLAIN, index design across B-tree/GIN/GiST/BRIN types, and JSONB storage strategies with containment queries
  • Includes streaming and logical replication setup with lag monitoring via pg_stat_replication
  • Provides VACUUM tuning, autovacuum configuration, bloat detection, and statistics refresh workflows
  • Supports PostgreSQL extensions including PostGIS, pgvector, pg_trgm, and pg_stat_statements for monitoring and analysis
SKILL.md

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
Related skills

More from jeffallan/claude-skills

Installs
3.2K
GitHub Stars
9.0K
First Seen
Jan 20, 2026