What problem does it solve? Slow database queries, missing indexes, and misconfigured servers degrade application performance, and finding the root cause requires deep expertise in execution plans, statistics, and engine-specific tuning. This Skill provides a structured, measurement-driven workflow to identify bottlenecks and apply validated optimizations. ## Core Features & Use Cases - Query Analysis: Capture and interpret EXPLAIN ANALYZE output, identify sequential scans, stale statistics, and low buffer cache hit rates in PostgreSQL and MySQL. - Index Design: Create covering, partial, expression, GIN, and full-text indexes, and detect redundant or unused indexes. - Configuration Tuning: Tune memory, WAL, autovacuum, InnoDB buffer pool, and connection settings with production-ready configuration examples. - Use Case: A PostgreSQL orders endpoint takes 4 seconds. Use this Skill to capture the baseline execution plan, discover a sequential scan on a large table, add a concurrent covering index, and validate the improvement with before/after metrics. ## Quick Start Analyze this slow PostgreSQL query, explain the execution plan bottlenecks, and propose an index and configuration fix with validation queries.