Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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), без исполняемых скриптов.

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

Сравнить sql-correlated-subquery-rewrite с