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★ 21 звезда на GitHubОб этом скилле
Refactor
Refactor the target given in the arguments: $ARGUMENTS.
- Read the target and every caller of the code you will change.
- Find the tests that cover it and run them first. When none exist, say so before changing anything.
- Apply only behavior preserving changes: remove duplication, inline single use abstractions, rename unclear names, flatten nested conditionals, delete dead code.
- 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic