What problem does it solve? Slow queries, risky schema migrations, and misconfigured database servers are hard to diagnose without deep PostgreSQL and MySQL expertise. This Skill provides senior-level database engineering guidance grounded in measured evidence rather than guesswork. ## Core Features & Use Cases - Query Optimization: Analyzes EXPLAIN (ANALYZE, BUFFERS) plans before and after changes, rewrites row-by-row logic into set-based SQL, and designs B-tree, GIN, GiST, BRIN, covering, and partial indexes. - Schema Design & Migrations: Covers normalization, constraints, temporal data, audit trails, and zero-downtime expand-migrate-contract deployment patterns with batched backfills. - Administration & Monitoring: Tunes PostgreSQL memory, VACUUM, autovacuum, replication, and partitioning, plus MySQL InnoDB buffer pool, slow query log, and performance_schema alerting. - Use Case: A production orders table scans sequentially on every lookup. The Skill identifies the missing composite index, builds it concurrently, and reports before/after EXPLAIN timings with a monitoring query to confirm the fix holds. ## Quick Start Use the database-pro skill to analyze this slow PostgreSQL query and recommend indexes with before and after EXPLAIN ANALYZE results.