sql-optimization-patterns
Skill4 starsChanged 10 days agoMITView on GitHub
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
23 other projects use a version of this, 11 of them edited.
Adopted by
Most recently taken up by
- Rain-kl/OpenFlareedited, first seen Nov 30, 2026
- gromov0737/skillsedited, first seen Nov 29, 2026
- alexj11324/Mikkaedited, first seen Nov 29, 2026
- aspectly-labs/Mikkaedited, first seen Nov 22, 2026
- AtilaMedeiros/skillsword for word, first seen Nov 16, 2026
- KPISTOLAS/claude-skillsedited, first seen Nov 16, 2026
Used with
Projects with it also use team-composition-analysis, similarity-search-patterns and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xfstudioSkillteam-composition-analysis
This skill should be used when the user asks to "plan team
Also in 6 projects that use this
xfstudioSkillsimilarity-search-patterns
Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.
Also in 7 projects that use this
- +9 more from xfstudio
Other versions23 projects use a version of this.
Word for word · 3
- xfstudio/skills★ 9100% same
- ai4brands-design/claude-skills★ 2100% same
- AtilaMedeiros/skills★ 1100% same
Edited · 11
- Rain-kl/OpenFlare★ 30510% same
- alexj11324/Mikka★ 9010% same
- aspectly-labs/Mikka★ 9010% same
- KumailQazi/krmaazha-binance-mcp★ 410% same
- Ghosteken/agent-harness★ 269% same
- gromov0737/skills★ 287% same
- roshankodi/agent-skills★ 210% same
- enes9103/my-claude-agents-skills★ 010% same
- kitloomlk-stack/nextjs-supabase-kit★ 010% same
- KPISTOLAS/claude-skills★ 010% same
1 more not listed
Wrote their own version · 9
- tranhieutt/software_development_department★ 71same name
- kumaran-is/claude-code-onboarding★ 35same name
- AJBcoding/claude-skill-eval★ 4same name
- scops/sql-optimization-patterns★ 4same name
- CodeWithBehnam/cc-docs★ 2same name
- karim-bhalwani/agent-skills-collection★ 0same name
- ramybarsoum/claude-skills★ 0same name
- Samueladewole/claude-skills★ 0same name
- Tgoldi/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository676 other files it gives its agents.
- .agents/skills/composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/react-best-practices/AGENTS.mdAGENTS.md
- .agents/skills/react-native-skills/AGENTS.mdAGENTS.md
- .agents/skills/react-view-transitions/AGENTS.mdAGENTS.md
- .agents/skills/vercel-optimize/AGENTS.mdAGENTS.md
- 21st-dev-componentsSkill
- AnthropologistSkill
- GeographerSkill
- HistorianSkill
- NarratologistSkill
- PsychologistSkill
- StatisticianSkill
- Accounts Payable AgentSkill
- aeo-answer-engine-optimizationSkill
- agent-adaptive-coordinatorSkill
- agent-agentic-paymentsSkill
- agent-agentSkill
- agent-analyze-code-qualitySkill
- agent-app-storeSkill
- agent-architectureSkill
- agent-arch-system-designSkill
- agent-authenticationSkill
- agent-automation-smart-agentSkill
- agent-base-template-generatorSkill
- agent-benchmark-suiteSkill
- agent-byzantine-coordinatorSkill
- agent-challengesSkill
- agent-code-analyzerSkill
- agent-code-goal-plannerSkill
- agent-code-review-swarmSkill
- agent-coderSkill
- agent-collective-intelligence-coordinatorSkill
- agent-consensus-coordinatorSkill
- agent-coordinationSkill
- agent-coordinator-swarm-initSkill
- agent-crdt-synchronizerSkill
- agent-data-ml-modelSkill
- AgentDB Advanced FeaturesSkill
- AgentDB Learning PluginsSkill
- AgentDB Memory PatternsSkill
- AgentDB Performance OptimizationSkill
- AgentDB Vector SearchSkill
- agent-dev-backend-apiSkill
- agent-docs-api-openapiSkill
- agent-github-modesSkill
- agent-github-pr-managerSkill
- agent-goal-plannerSkill
- agent-gossip-coordinatorSkill
- agent-hierarchical-coordinatorSkill
- Agentic Identity & Trust ArchitectSkill
- agentic-jujutsuSkill
- agent-implementer-sparc-coderSkill
- agent-issue-trackerSkill
- agent-load-balancerSkill
- agent-matrix-optimizerSkill
- agent-memory-and-contextSkill
- agent-memory-coordinatorSkill
- agent-mesh-coordinatorSkill
- agent-migration-planSkill
- agent-multi-repo-swarmSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If detailed examples are required, open resources/implementation-playbook.md.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SQL Optimization Patterns
Transform slow database queries into lightning-fast operations through systematic optimization, proper indexing, and query plan analysis.
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
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

