概要
This Claude Code skill provides a comprehensive framework for transforming slow-running database queries into high-performance operations. It guides developers through the intricacies of SQL optimization, covering critical areas such as interpreting EXPLAIN ANALYZE output, selecting appropriate index types (B-Tree, GIN, GiST), and eliminating N+1 query anti-patterns. Whether you are debugging production bottlenecks, designing scalable schemas, or managing massive datasets via partitioning and materialized views, this skill offers the implementation patterns needed to ensure your database layer remains responsive and cost-effective.