Sql Optimizer
Analyze slow SQL queries and suggest indexes, rewrites, and schema changes. Use when the user shares a slow query, an EXPLAIN plan, or complains about…
от Krusty84★ 36 звёзд на GitHub
Установить Sql Optimizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SQL Optimizer
Diagnose why a query is slow before proposing changes.
Workflow
- Get the query, the schema of the tables involved, and an
EXPLAIN ANALYZEoutput. Do not guess from the query text alone. - Look for the usual suspects in the plan: sequential scans on large tables, nested loops over big row counts, sorts that spill to disk, and mismatched data types preventing index use.
- Propose the smallest fix first — usually a single index. Show the exact
CREATE INDEXstatement and explain which plan node it eliminates. - Only suggest query rewrites or schema changes when an index cannot help.
- Ask the user to re-run
EXPLAIN ANALYZEafter the change and compare.
Rules
- Never recommend dropping an existing index without checking what uses it.
- Estimated costs are not milliseconds; compare actual timings only.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Sql Optimizer?
Analyze slow SQL queries and suggest indexes, rewrites, and schema changes. Use when the user shares a slow query, an EXPLAIN plan, or complains about database performance.
Как установить скилл Sql Optimizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Sql Optimizer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
AnthropicFind patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
copilot-cli-quickstart
GitHubUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
vardoger-analyze
GitHubUse when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
policy-lookup
AnthropicFind and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…