This walks you through the core SQL optimization techniques that actually move the needle on query performance. It covers reading EXPLAIN plans, building the right indexes (including partial and covering indexes), eliminating N+1 queries, and fixing slow pagination with cursor-based approaches. The examples show real before/after query patterns for common problems like correlated subqueries and inefficient JOINs. What I like is that it focuses on systematic debugging rather than random performance tweaks. Use this when you're staring at slow queries in production or designing schemas that need to scale.
npx skills add https://github.com/wshobson/agents --skill sql-optimization-patterns