Agent skill
fusion-refactor
Compare refactoring approaches and pick the safest path; use when multiple refactor strategies are possible.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/fusion-refactor
SKILL.md
Fusion Refactor
Overview
Use an F-thread: three workers propose different refactor strategies in separate worktrees. The queen selects the safest path.
Inputs
- Refactor goal and constraints
Workflow
- Verify
gitandmprocs. - Create session variables and worktrees.
- Write
tasks.json, worker prompts, and queen prompt. - Launch mprocs.
Worktree Commands
git worktree add "{WORKTREE_ROOT}/impl-a" -b fusion/{SESSION_ID}/impl-a
git worktree add "{WORKTREE_ROOT}/impl-b" -b fusion/{SESSION_ID}/impl-b
git worktree add "{WORKTREE_ROOT}/impl-c" -b fusion/{SESSION_ID}/impl-c
Worker Prompt Outline
- Worker A: incremental refactor
- Worker B: module-by-module
- Worker C: larger rewrite with safeguards
Queen Prompt Outline
- Compare risk, test impact, and migration cost
mprocs Launch
mprocs --config .hive/mprocs.yaml
Output
- Selected refactor strategy and staged plan
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?