Claude-skill-registry fusion-refactor

Compare refactoring approaches and pick the safest path; use when multiple refactor strategies are possible.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/fusion-refactor" ~/.claude/skills/majiayu000-claude-skill-registry-fusion-refactor && rm -rf "$T"
manifest: skills/data/fusion-refactor/SKILL.md
source content

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

  1. Verify
    git
    and
    mprocs
    .
  2. Create session variables and worktrees.
  3. Write
    tasks.json
    , worker prompts, and queen prompt.
  4. 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