What problem does it solve?
This Skill helps teams find and remediate database performance bottlenecks by guiding a methodical workflow for capturing baselines, analyzing execution plans, designing indexes, and validating changes to reduce query latency and I/O impact.
Core Features & Use Cases
- Baseline and analysis: Capture EXPLAIN ANALYZE outputs and key metrics to identify the slowest queries and the root causes.
- Index and schema design: Recommend single-column, composite, partial, and covering indexes plus CREATE INDEX CONCURRENTLY patterns to avoid locks.
- N+1 detection and query rewrites: Identify ORM-driven N+1 patterns and provide JOIN-based rewrites or batch strategies to eliminate them.
- Use Case: For a Telegram bot that frequently joins members, group_members, and groups tables, use this Skill to produce an execution plan, propose a covering index and a single-query rewrite, and validate the before/after timing delta.
Quick Start
Run an EXPLAIN ANALYZE on the slow query and provide the execution plan plus schema/index metadata to receive prioritized index and rewrite recommendations.