refactor-legacy-code

Refactor legacy code atomically using the Strangler Fig pattern.

Updated Dec 31, 2025
One-click install
npx skills add https://github.com/JackSmack1971/claude-code-learning-flywheel --skill refactor-legacy-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-legacy-code
Source: https://github.com/JackSmack1971/claude-code-learning-flywheel/tree/main/.claude/skills/refactor-legacy-code
Command: npx skills add https://github.com/JackSmack1971/claude-code-learning-flywheel --skill refactor-legacy-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents Big Bang rewrites by guiding atomic refactoring through the Strangler Fig pattern.

Core Features & Use Cases

  • Atomic steps: extract methods, introduce parameter objects, replace conditional logic
  • Strangler Fig migration: route traffic gradually to new implementation
  • Use Case: Migrate an authentication module over time without downtime

Quick Start

Establish baseline tests, identify code smells, and apply one atomic refactoring at a time, using Strangler Fig approach to migrate to new implementation.