skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / Data Analysis / SQL Optimization Patterns Skill by @sickn33
The skill is the skills/sql-optimization-patterns folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Diagnose slow SQL with query plans, preserve query results, and verify indexing or query changes against representative data.
Diagnoses slow SQL using query plans, preserves query results while changing queries and verifies indexing or query changes against representative data.
The original SKILL.md is organised into these sections:
Written and maintained by @sickn33. It is published under the MIT license, which allows reuse with attribution. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# 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 - Confirm database engine/version, query parameters, expected rows, data distribution and the permitted environment. Start read-only; obtain authorization before DDL, data changes, configuration changes or maintenance. …
Excerpt only, quoted from the author's repository. Open the repository for the complete file.