$ skilldirectory
— zsh — registry.skilldirectory.dev
skill library blog

home / Data Analysis / SQL Optimization Patterns Skill by @sickn33

SQL Optimization Patterns Skill by @sickn33

FREE
github stars★ 48,690updatedSep 2026repo@sickn33
$git clone https://github.com/sickn33/agentic-awesome-skills

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.

Read the opening of the original SKILL.md
# 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.