improve
БесплатноБез исполняемых скриптовНе проверенSimplifies existing code without changing behavior. Flattens shallow wrappers, removes duplication and dead code, consolidates fragmented helpers, and…
от 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
- Identify the target from the request, current diff, or recently changed code.
- Read the target, its tests, and relevant callers. State the behavior that must not change.
- 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.
- 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.
- Delete first: remove dead code, unused parameters, and redundant checks before reshaping what remains.
- 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.
- Preserve public interfaces, data shapes, errors, and user-visible behavior unless the user explicitly asks to change them.
- 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
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic