Use when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, extension usage, VACUUM tuning, performance monitoring.
98
100%
Does it follow best practices?
Impact
97%
1.02xAverage score across 6 eval scenarios
Passed
No known issues
Query optimization with EXPLAIN and index strategy
EXPLAIN full options
66%
66%
Expression index for LOWER()
100%
100%
Partial index for status filter
100%
100%
Correct index type rationale
100%
100%
No SELECT * in rewrites
100%
100%
ANALYZE after bulk migration
100%
100%
Increased statistics target
100%
100%
Monitoring query provided
100%
100%
Performance impact comment
100%
100%
Index on join column
100%
100%
No index without analysis
100%
100%
JSONB schema design and indexing
JSONB not JSON
100%
100%
GIN index created
100%
100%
jsonb_path_ops used
0%
100%
Generated column for status
100%
100%
Containment operator (@>) used
100%
100%
No BLOBs in database
100%
100%
No JSON type justification absent
100%
100%
Status field separate index
100%
100%
Index type comment/rationale
100%
100%
No huge arrays warning
0%
0%
No SELECT * in queries
100%
100%
Database health monitoring and maintenance
pg_stat_statements query
100%
100%
Cache hit ratio check
100%
100%
Dead tuple monitoring
100%
100%
Replication lag query
100%
100%
XID wraparound check
100%
100%
Idle-in-transaction detection
100%
100%
REINDEX CONCURRENTLY
100%
100%
Per-table autovacuum tuning
100%
100%
No global autovacuum disable
100%
100%
UUID type for api_keys
100%
100%
UUID type comment
100%
100%
Streaming replication setup and lag monitoring
wal_level = replica
100%
100%
WAL archiving configured
100%
100%
Replication slot created
100%
80%
pg_basebackup -R flag
100%
100%
pg_basebackup -X stream
100%
100%
Slot name in pg_basebackup
100%
100%
primary_conninfo in standby config
100%
100%
pg_stat_replication lag query
100%
100%
Standby lag query
100%
100%
Lag alert threshold
100%
100%
Replication slot monitoring
100%
100%
pgvector and pg_trgm extension setup for search
pgvector extension enabled
100%
100%
HNSW index used
100%
100%
Cosine distance operator class
100%
100%
Cosine distance in search query
100%
100%
pg_trgm extension enabled
100%
100%
Trigram GIN index
100%
100%
Fuzzy similarity query
100%
100%
maintenance_work_mem before bulk import
100%
100%
ANALYZE after bulk import
100%
100%
random_page_cost for SSD
100%
100%
effective_io_concurrency for SSD
100%
100%
Connection pooling, SQL injection prevention, and non-locking index creation
pgBouncer pool_mode = transaction
100%
100%
pgBouncer max_client_conn
100%
100%
pgBouncer default_pool_size
0%
100%
Parameterized customer lookup
100%
100%
Parameterized order update
100%
100%
Parameterized date range query
100%
100%
No SELECT * in safe_queries
100%
100%
CREATE INDEX CONCURRENTLY for all indexes
100%
100%
Partial index for pending transactions
100%
100%
EXPLAIN before index creation
100%
100%
EXPLAIN after index creation
100%
100%
5b76101
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.