Command Palette

Search for a command to run...

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

improve

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

Simplifies existing code without changing behavior. Flattens shallow wrappers, removes duplication and dead code, consolidates fragmented helpers, and…

owainlewisот owainlewis★ 447 звёзд на GitHub

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

Improve

Make code easier to understand and change without altering what it does. Reduce the layers a reader must trace and the hidden state they must remember.

Process

  1. Identify the target from the request, current diff, or recently changed code.
  2. Read the target, its tests, and relevant callers. State the behavior that must not change.
  3. Choose the mode from the scope:
    • Focused target (diff, function, or a few files): make targeted edits directly.
    • Broad target (whole module, package, or codebase): report the top 3 to 5 highest-leverage simplifications with tradeoffs and confirm which to apply before editing.
  4. Before editing, add focused characterization tests if the preserved behavior lacks coverage, run them against the unchanged code, and commit that test-only change. If automated tests cannot exercise the behavior, explain why and give other evidence.
  5. Delete first: remove dead code, unused parameters, and redundant checks before reshaping what remains.
  6. Simplify with clear structural goals:
    • Flatten shallow wrappers and pass-through layers that add indirection without hiding real complexity.
    • Consolidate fragmented single-use helpers or files back into one cohesive module.
    • Pull complexity downward so callers see a smaller, clearer interface.
    • Replace flag soup, hidden mutable state, and premature abstractions with direct, readable code.
  7. Preserve public interfaces, data shapes, errors, and user-visible behavior unless the user explicitly asks to change them.
  8. Run the tests and checks covering every behavior the refactor can affect.

Return

In plain, simplified technical English, state what became simpler, what behavior stayed the same, and which checks prove it. Name any behavior that remains unverified.

Boundaries

  • Do not add product scope or absorb unrelated cleanup.
  • Prefer a few clear edits over a broad rewrite.
  • Preserve behavior even when a redesign would be easier.

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

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

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

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

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

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

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

Вложенные файлы

agents/openai.yaml

FAQ

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

Simplifies existing code without changing behavior. Flattens shallow wrappers, removes duplication and dead code, consolidates fragmented helpers, and clarifies data flow. Use on a diff, file, module, or codebase.

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

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

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

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

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

Сравнить improve с