fusion-refactor

Compare code refactoring strategies in isolated worktrees by risk, test impact, and migration cost.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/rdfitted/Claude-Code-Setup --skill fusion-refactor
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: fusion-refactor
Source: https://github.com/rdfitted/Claude-Code-Setup/tree/main/.codex/skills/fusion-refactor
Command: npx skills add https://github.com/rdfitted/Claude-Code-Setup --skill fusion-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexity and risk associated with refactoring code by providing a structured way to compare multiple refactoring strategies and select the safest one.

Core Features & Use Cases

  • Multi-Strategy Refactoring: Explores different refactoring approaches concurrently.
  • Risk Assessment: Compares strategies based on risk, test impact, and migration cost.
  • Use Case: When faced with a large, complex module that needs refactoring, this Skill can generate three distinct refactoring plans (e.g., incremental, module-by-module, large rewrite) and help you choose the one with the lowest risk and disruption.

Quick Start

Use the fusion-refactor skill to compare refactoring approaches for the current codebase, focusing on minimizing risk.

Frequently Asked Questions about fusion-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare refactoring strategies to find the safest code migration path?▼

You can compare refactoring strategies by orchestrating parallel worker threads in isolated git worktrees to evaluate risk, test impact, and migration cost concurrently.

What is the safest way to refactor a large, complex module?▼

The safest way to refactor a large module is to generate distinct plans like incremental, module-by-module, or large rewrite, and compare their risk and disruption levels before implementation.

How does parallel worktree refactoring work for risk assessment?▼

Parallel worktree refactoring works by spawning concurrent worker threads, each exploring a different refactoring approach in an isolated git worktree, culminating in a comparative risk analysis.

Can I evaluate incremental refactoring versus a full rewrite using git worktrees?▼

Yes, you can evaluate incremental refactoring against a full rewrite by assigning each strategy to a separate isolated git worktree and comparing their respective migration costs and test impacts.

Do I need mprocs to run parallel code refactoring tasks?▼

Using mprocs is suitable for orchestrating parallel code refactoring tasks, allowing you to manage multiple worker threads exploring different strategies simultaneously within isolated environments.