Skip to content
Back to skills

Fusion Refactor

ASecurity

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

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
toolsgobashrefactoringgit

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill fusion-refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fusion Refactor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fusion Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-fusion-refactor/badge)](https://www.skillsdirectory.com/skills/majiayu000-fusion-refactor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fusion-refactor
description: Compare refactoring approaches and pick the safest path; use when multiple refactor strategies are possible.
---

# 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

```bash
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

```bash
mprocs --config .hive/mprocs.yaml
```

## Output

- Selected refactor strategy and staged plan

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.