Sql Optimization Patterns
Diagnose slow SQL with query plans, verifying every index or rewrite against representative data first.
- CCM score
- 53 of 100
- skills.sh installs
- 334
- GitHub stars
- 50.5K
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers diagnosing slow queries, reading EXPLAIN plans, designing schemas, implementing indexes, and resolving N+1 query problems
- Requires confirming database engine, version, expected row counts, and data distribution before any analysis begins
- Enforces read-only work by default and requires authorization before DDL, data changes, configuration changes, or maintenance
- Warns that EXPLAIN ANALYZE executes the statement, so side effects from functions and triggers can persist despite a rollback
Install
$ npx -y skills add sickn33/agentic-awesome-skills --skill sql-optimization-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SQL Optimization Patterns
Diagnose slow SQL with query plans, preserve query results, and verify indexing or query changes against representative data.
Use this skill when
- Debugging slow-running queries
- Designing performant database schemas
- Optimizing application response times
- Reducing database load and costs
- Improving scalability for growing datasets
- Analyzing EXPLAIN query plans
- Implementing efficient indexes
- Resolving N+1 query problems
Do not use this skill when
- The task is unrelated to sql optimization patterns
- You need a different domain or tool outside this scope
Instructions
Details
- Repository
- github.com/sickn33/agentic-awesome-skills
- Category
- Databases
- First seen
- Jun 3, 2026
Questions
What does the sql-optimization-patterns skill do?
sql-optimization-patterns helps an agent diagnose slow SQL by reading query plans, preserving query results, and verifying indexing or query changes against representative data. It is meant for debugging slow queries, analyzing EXPLAIN plans, implementing efficient indexes and resolving N+1 query problems.
How do I install the sql-optimization-patterns skill?
Run npx -y skills add sickn33/agentic-awesome-skills --skill sql-optimization-patterns -y in a project to install sql-optimization-patterns. Once installed, the agent can follow its instructions for slow query diagnosis.
Where does sql-optimization-patterns stand in the Databases category?
sql-optimization-patterns is listed in the Databases category on Claude Marketplaces, next to supabase-postgres-best-practices, prisma-client-api, prisma-database-setup, prisma-cli and prisma-postgres. Its own focus is EXPLAIN plan analysis and verifying changes against result sets before performance claims.
Does sql-optimization-patterns change my database?
sql-optimization-patterns starts read-only and asks for authorization before any DDL, data changes, configuration changes or maintenance. Its EXPLAIN ANALYZE step executes the statement, so it should run on approved representative data.
More from sickn33/agentic-awesome-skills
All 682- Tdd Orchestrator334
- C4 Architecture C4 Architecture333
- Voice Ai Engine Development332
- Data Storytelling328
- Django Pro328
- Seo Authority Builder327
- Conductor Status325
- Dotnet Architect325
- Kpi Dashboard Design324
- Dotnet Backend323
- Csharp Pro322
- Langchain Architecture322
- Internal Comms Anthropic321
- Database Cloud Optimization Cost Optimize320
- Bash Defensive Patterns319
- Comprehensive Review Full Review319
- Error Debugging Multi Agent Review319
- Computer Vision Expert317
- Context Management Context Save317
- Data Engineering Data Driven Feature317
- Error Debugging Error Analysis317
- Deployment Engineer314
- Uv Package Manager314
- Ml Engineer312
Similar to Sql Optimization Patterns
More Databasessql-prosickn33/agentic-awesome-skills367 installsExpert SQL guidance for query tuning, data modeling, and cloud and hybrid OLTP/OLAP databases.
database-query-optimizationaj-geddes/useful-ai-prompts594 installsPractical query tuning guide that uses EXPLAIN ANALYZE, indexing, and optimization checklists to cut response times.
sql-optimizationgithub/awesome-copilot16.4K installsUniversal SQL tuning guide covering query rewrites, indexing, pagination, and execution plan analysis across major engines.
supabase-postgres-best-practicessickn33/agentic-awesome-skills217 installsComprehensive Postgres performance guide from Supabase covering queries, schema, connections, and RLS.
sql-query-optimizationaj-geddes/useful-ai-prompts529 installsAnalyze and tune slow PostgreSQL and MySQL queries using plans, indexes, and rewrites.
sql-query-optimizerpatricio0312rev/skills298 installsCatalog guide for query tuning covering EXPLAIN analysis, index design, query rewrites, and benchmarking.