Help us improve
Share bugs, ideas, or general feedback.
From billy-milligan
Optimizes PostgreSQL queries via EXPLAIN ANALYZE and pg_stat_statements, designs indexes (B-tree, GIN, GiST, BRIN, partial/composite), implements RLS for multi-tenancy, covers window functions, CTEs, advisory locks, LISTEN/NOTIFY, and PgBouncer pooling.
npx claudepluginhub rnavarych/alpha-engineer --plugin billy-milliganHow this skill is triggered — by the user, by Claude, or both
Slash command
/billy-milligan:postgres-deepThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Optimizing slow queries with EXPLAIN ANALYZE
Provides PostgreSQL optimization guidance including index strategies, query plan analysis, table partitioning, JSONB operations, and connection pooling with pgbouncer.
Guides PostgreSQL operations: schema design, index selection (B-tree/GIN/GiST/BRIN), query tuning (EXPLAIN ANALYZE), backups (pg_dump/pg_basebackup), replication, vacuum tuning, monitoring (pg_stat_statements), RLS, extensions (PostGIS/timescaledb).
Provides PostgreSQL references for SQL queries, psql commands, psycopg/asyncpg code, indexes, JSONB patterns, EXPLAIN analysis, PL/pgSQL, roles, RLS, and query tuning.
Share bugs, ideas, or general feedback.
(user_id, created_at DESC) beats two separate indexes for paginated user queriesWHERE status = 'pending' on a 10M row table with 1000 pending rows = tiny, fast indexreferences/query-optimization.md — EXPLAIN ANALYZE interpretation, node types, warning signs, stale statistics, work_mem, CTEsreferences/query-anti-patterns.md — N+1 queries, missing FK indexes, over-fetching, OFFSET pagination, NOT IN gotcha, DISTINCT misusereferences/indexing-strategies.md — B-tree, GIN, GiST, BRIN index types; composite and covering indexes; index type decision treereferences/index-tuning.md — partial indexes, expression indexes, index maintenance, unused/bloated index detection, CONCURRENTLYreferences/partitioning.md — range/list/hash partitioning, when to partition, partition pruning, partitioned table constraintsreferences/partition-management.md — partition maintenance, DETACH/DROP/ATTACH, pg_partman automation, anti-patternsreferences/connection-pooling.md — PgBouncer setup, pool modes (session/transaction/statement), pool sizing, application configreferences/connection-diagnostics.md — SHOW POOLS, pg_stat_activity monitoring, connection troubleshooting runbook, Kubernetes deployscripts/analyze-slow-queries.sh — query pg_stat_statements for top consumers and low cache-hit queries