Command Palette

Search for a command to run...

Назад к скиллам
скилл № 85005

refactor-code

Improve code structure and readability

БесплатноБез исполняемых скриптов
Yuan-lab-LLMот Yuan-lab-LLM★ 17 звёзд на GitHub

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

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

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

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

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

Refactor Code

Purpose

Improve code structure and readability

Routing

  • Use when: Use when user asks to improve maintainability, readability, modularity, or error handling in code.
  • Do not use when: Don't use for behavior-only fixes where refactor risk is unnecessary.
  • Outputs: Refactor changes, rationale, and minimal review checklist for behavior-sensitive sections.
  • Success criteria: Preserves behavior while improving structure and readability.

Trigger Examples

Positive

  • Use the refactor-code skill for this request.
  • Help me with refactor code.
  • Use when user asks to improve maintainability, readability, modularity, or error handling in code.
  • Refactor Code: provide an actionable result.

Negative

  • Don't use for behavior-only fixes where refactor risk is unnecessary.
  • Do not use refactor-code for unrelated requests.
  • This request is outside refactor code scope.
  • This is conceptual discussion only; no tool workflow is needed.

Parameters

Name Type Required Description
path string Yes Path to the file to refactor
focus select Yes What to focus on

Runtime Prompt

  • Current runtime prompt length: 235 characters.
  • Runtime prompt is defined directly in ../refactor-code.json.

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

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

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

FAQ

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

Improve code structure and readability

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

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

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

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

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

Сравнить refactor-code с