refactoring-design
БесплатноБез исполняемых скриптовНе проверенUse when designing a refactor after diagnosis - selects patterns, defines composition and DI seams, and produces a test-ready refactor design spec
от withzombies★ 81 звезда на GitHubОб этом скилле
2. Define the Target Design
Specify:
- Components/classes/modules and responsibilities
- Composition boundaries and ownership
- Data flow and error flow
3. Choose Refactor Patterns
Use the mapping in references/patterns-and-choices.md to select refactor patterns that address the diagnosed smells.
4. Define DI Seams
State:
- What dependencies become interfaces
- How they are injected (constructor, factory, parameter)
- What default implementations are used
5. Encode Invariants
Use references/type-driven-design.md to:
- Make invalid states unrepresentable
- Parse at boundaries, not throughout the core
- Define explicit error types for failure modes
6. Test Strategy
Design tests that use DI:
- Happy path tests for each component
- Error path tests for each dependency failure
- Concurrency/IPC tests where applicable
7. Produce Refactor Design Spec (Required Format)
Use this exact structure:
## Target Design
- Components:
- Responsibilities:
- Composition boundaries:
- Data flow:
- Error flow:
## Pattern Mapping
| Smell/Trap | Pattern/Refactor | Rationale |
## Dependency Injection Plan
- Interfaces:
- Injection points:
- Default implementations:
## Invariants and Types
- Invalid states to eliminate:
- Boundary parsing plan:
- Error type strategy:
## Test Strategy
- Happy path tests:
- Error path tests:
- Concurrency/IPC tests:
## Sequencing
1.
2.
3.
## Non-goals
-
Установить refactoring-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл refactoring-design?
Use when designing a refactor after diagnosis - selects patterns, defines composition and DI seams, and produces a test-ready refactor design spec
Как установить скилл refactoring-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл refactoring-design запускает скрипты?
Нет, скилл состоит только из инструкций (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