Command Palette

Search for a command to run...

Назад к скиллам
скилл № 48188

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от Krusty84★ 36 звёзд на GitHub

Установить Sql Optimizer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

SQL Optimizer

Diagnose why a query is slow before proposing changes.

Workflow

  1. Get the query, the schema of the tables involved, and an EXPLAIN ANALYZE output. Do not guess from the query text alone.
  2. 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.
  3. Propose the smallest fix first — usually a single index. Show the exact CREATE INDEX statement and explain which plan node it eliminates.
  4. Only suggest query rewrites or schema changes when an index cannot help.
  5. Ask the user to re-run EXPLAIN ANALYZE after 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Sql Optimizer с