Command Palette

Search for a command to run...

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

refactor

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

Refactor a file or function to be simpler without changing behavior. Use when the user asks to refactor, simplify or clean up code or runs /code:refactor.

diegopachecoот diegopacheco★ 21 звезда на GitHub

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

Refactor

Refactor the target given in the arguments: $ARGUMENTS.

  1. Read the target and every caller of the code you will change.
  2. Find the tests that cover it and run them first. When none exist, say so before changing anything.
  3. Apply only behavior preserving changes: remove duplication, inline single use abstractions, rename unclear names, flatten nested conditionals, delete dead code.
  4. Run the same tests again and show that they still pass.

Report what changed in at most five bullets and the test result before and after.

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

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

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

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

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

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

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

FAQ

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

Refactor a file or function to be simpler without changing behavior. Use when the user asks to refactor, simplify or clean up code or runs /code:refactor.

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

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

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

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

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

Сравнить refactor с