refactor
БесплатноБез исполняемых скриптовНе проверенSafe refactoring with dependency awareness. Use when restructuring, renaming, moving, extracting, or consolidating code.
от JordanCoin★ 722 звезды на GitHubОб этом скилле
Safe Refactoring with Code Intelligence
Before refactoring
- Run
codemap --deps .to understand the dependency graph - Identify hub files in the refactoring scope: they need extra care
- Run
codemap --diffto see what's already changed on this branch
Refactoring checklist
- All tests pass before starting
- Hub files identified and dependents listed
- Public API changes planned (additive preferred)
- Import paths updated if moving files
- No circular dependencies introduced
Safe rename pattern
- Add the new name alongside the old (alias/wrapper)
- Update all callers to use the new name
- Remove the old name
- Run full test suite
Safe move pattern
- Create the new file with the same API
- Re-export from the old location (temporary)
- Update all importers to use the new path
- Remove the old file and re-export
After refactoring
- Run
codemap --deps .again to verify the graph is clean - Run
codemap --importers <moved-file>to check nothing is broken - Full test suite must pass
Установить refactor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл refactor?
Safe refactoring with dependency awareness. Use when restructuring, renaming, moving, extracting, or consolidating code.
Как установить скилл 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