Command Palette

Search for a command to run...

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

refactor

БесплатноБез исполняемых скриптовНе проверен

Safe refactoring with dependency awareness. Use when restructuring, renaming, moving, extracting, or consolidating code.

JordanCoinот JordanCoin★ 722 звезды на GitHub

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

Safe Refactoring with Code Intelligence

Before refactoring

  1. Run codemap --deps . to understand the dependency graph
  2. Identify hub files in the refactoring scope: they need extra care
  3. Run codemap --diff to see what's already changed on this branch

Refactoring checklist

  • All tests pass before starting
  • Hub files identified and dependents listed
  • Public API changes planned (additive preferred)
  • Import paths updated if moving files
  • No circular dependencies introduced

Safe rename pattern

  1. Add the new name alongside the old (alias/wrapper)
  2. Update all callers to use the new name
  3. Remove the old name
  4. Run full test suite

Safe move pattern

  1. Create the new file with the same API
  2. Re-export from the old location (temporary)
  3. Update all importers to use the new path
  4. Remove the old file and re-export

After refactoring

  • Run codemap --deps . again to verify the graph is clean
  • Run codemap --importers <moved-file> to check nothing is broken
  • Full test suite must pass

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

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

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

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

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл refactor?

Safe refactoring with dependency awareness. Use when restructuring, renaming, moving, extracting, or consolidating code.

Как установить скилл refactor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл refactor запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить refactor с