sql-correlated-subquery-rewrite
БесплатноБез исполняемых скриптовНе проверенOptimize a SQL query over a large unindexed table by collapsing repeated correlated subqueries or per-group "top-N" lookups into a single computation, then…
от RUC-NLPIR★ 472 звезды на GitHubОб этом скилле
Inspect once, then write. Do a single quick pass over schema/index/count facts
(e.g. CREATE TABLE, indexes, row counts), then stop deliberating and write a
first candidate rewrite to the target file immediately. Do not loop in hidden
thinking between inspection and emitting the solution.
Collapse repeated per-group subqueries. When the input query re-derives the same
top-N-per-group value more than once through identical
GROUP BY ... ORDER BY ... LIMIT 1 logic, compute it once per group using a CTE
or window function (e.g. ROW_NUMBER() OVER (PARTITION BY ... ORDER BY ...)),
and reference that single result everywhere it is used.
Validate equivalence. After writing, run the rewrite and diff its output against the original query's output; correct any discrepancy before finishing.
Установить sql-correlated-subquery-rewrite в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sql-correlated-subquery-rewrite?
Optimize a SQL query over a large unindexed table by collapsing repeated correlated subqueries or per-group "top-N" lookups into a single computation, then verify output equivalence. Trigger when the task needs one rewritten SQL deliverable and schema inspection shows no indexes.
Как установить скилл sql-correlated-subquery-rewrite?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sql-correlated-subquery-rewrite запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic