mysql-index-audit
Statically audit a codebase's MySQL indexes against the queries that use them. Use when checking for leftmost-prefix violations, partially used composite…
от Integralist★ 31 звезда на GitHub
Установить mysql-index-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Static code audit only—never connect to a database. Every static finding is a
signal, not proof: mark each verify with EXPLAIN, and end with the SQL
commands to verify against the database.
Scope: --target=<path|glob> audits the given path/glob, or the whole repo
if omitted. --diff audits branch-changed files against main/master;
--uncommitted audits git diff --name-only HEAD plus untracked files.
Before auditing: Read AUDIT-REFERENCE.md for inventory rules (including ORM column-order gotchas) and MySQL-specific classification rules.
- Inventory indexes and queries. Record each index (
table,name,ordered_columns[],unique?,file:line) and query site (table, predicates + operators,ORDER BY,SELECT,file:line). On large repos, run index and query inventories concurrently as read-only subagents per SUBAGENT-STEERABILITY.md. Never guess on dynamic WHERE clauses or materialized CTEs—list them under Needs manual EXPLAIN. - Classify and rank by real impact. Match every query against its table's indexes and rank findings High / Medium / Low by expected scan/write impact (a missing index or index killer on a hot query can be High, while a low-traffic partial composite may be Medium).
- Report. For each finding give index columns +
file:line, query +file:line, classification, impact, and concrete fix (noting verify withEXPLAIN). Include Needs manual EXPLAIN and a Verify with EXPLAIN SQL block (EXPLAIN,EXPLAIN ANALYZE, slow query log check).
[!IMPORTANT] Before suggesting any query rewrite, verify it preserves filtering, row sets, ordering, limits, and deduplication. Flag unproven equivalence; never disguise a behaviour change as an optimization.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/AUDIT-REFERENCE.md
FAQ
Что делает скилл mysql-index-audit?
Statically audit a codebase's MySQL indexes against the queries that use them. Use when checking for leftmost-prefix violations, partially used composite indexes, index killers such as leading wildcards or function-wrapped columns, or redundant and missing indexes.
Как установить скилл mysql-index-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mysql-index-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…