architect-refactor

Map dependencies and generate step-by-step migration plans for codebase refactors.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/Capataina/agent-skills --skill architect-refactor-capataina
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architect-refactor
Source: https://github.com/Capataina/agent-skills/tree/main/architect-refactor
Command: npx skills add https://github.com/Capataina/agent-skills --skill architect-refactor-capataina

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Collaborative planning for large refactors: it helps you design safe, incremental migration plans by mapping dependencies, identifying impact, and clarifying the steps needed to preserve behavior.

Core Features & Use Cases

  • Dependency mapping across the codebase to identify callers, consumers, and affected modules.
  • Step-by-step migration plan that sequences changes safely, with risk and testing considerations.
  • Guided collaboration workflow for architecture decisions, documentation of rationale, and generated artifacts to drive implementation.

Quick Start

Provide a refactor name to begin a guided planning session and generate a step-by-step migration plan.

Frequently Asked Questions about architect-refactor

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

FAQPage Schema
How do I plan a safe codebase migration without breaking existing behavior?

To plan a safe codebase migration, you map module dependencies and sequence changes incrementally to preserve behavior. This process clarifies the blast radius, identifies required test coverage, and produces a step-by-step plan to guide teams through phase-based changes safely.

What is the best way to map the blast radius of a large refactor?

Mapping the blast radius of a large refactor involves analyzing the dependency graph across the codebase to identify callers, consumers, and affected modules. This dependency mapping clarifies impact and guides the sequencing of phase-based changes to mitigate risk.

How do I create a step-by-step migration plan for sizable codebase refactors?

Creating a step-by-step migration plan for sizable codebase refactors involves mapping dependencies, assessing test coverage, and evaluating risk to sequence changes safely. It enforces explicit sequencing and behavioral preservation to guide teams through incremental phase-based updates.

Can I use this approach to guide collaborative architecture decisions during a refactor?

Yes, you can guide collaborative architecture decisions during a refactor by using a workflow that documents rationale and generates artifacts. This approach enforces decision documentation and produces architecture.md and decisions.md files to drive implementation.

What documentation artifacts do I need for a structured code migration plan?

For a structured code migration plan, you need artifacts like architecture.md and decisions.md to document decisions and rationale. These documentation artifacts drive implementation by enforcing the explicit sequencing and behavioral preservation required for safe refactoring.

When should I avoid incremental refactoring for codebase migrations?

You should avoid incremental refactoring when you cannot guarantee behavioral preservation or assess test coverage across the dependency graph. Large refactors require explicit sequencing and risk evaluation; without mapping the blast radius, phase-based changes become unsafe.