# /legacy-modernizer: Modernize legacy systems in small, reversible steps

Source: https://trendhub.net/skills/jeffallan-claude-skills/legacy-modernizer
Skill folder: https://github.com/Jeffallan/claude-skills/tree/main/plugin/skills/legacy-modernizer
Pack: Jeffallan's Claude Skills (https://trendhub.net/skills/jeffallan-claude-skills)
Works with: Claude Code (plugin marketplace)

Legacy Modernizer plans and carries out incremental migrations instead of rewrites. The agent maps dependencies and risks, designs phases that each have a rollback trigger and owner, builds characterization tests against current behaviour, then routes traffic through a facade behind feature flags in gradual steps, retiring old code only after the new path proves stable.

## When to use it

- You need to break up a monolith or replace one service without downtime.
- A framework or language upgrade touches code with few tests.
- Technical debt has to be reduced while the system stays in production.

## How it works

1. **Assess**: Produces a dependency map and risk register and confirms all integrations and data contracts are documented.
2. **Plan phases**: Designs an incremental roadmap and gives every phase a named owner and a condition that triggers rollback.
3. **Build a safety net**: Writes characterization tests and monitoring and confirms they pass on the untouched legacy system.
4. **Migrate gradually**: Routes requests through a facade with feature flags and raises traffic in steps while watching errors and latency.
5. **Retire carefully**: Removes the old path only after the new one has run at full traffic for at least one release cycle.

## What it steers the agent away from

- Big-bang rewrites.
- Deploying a change with no way to roll it back.
- Removing legacy code before its replacement is proven.

## What it can touch

Edits code to add facades, adapters, flags and tests, and proposes monitoring configuration.

## Pairs well with

- `/devops-engineer`
- `/spec-miner`
- `/test-master`

## Questions

### What is the strangler fig pattern?

Placing a facade in front of the old system and moving functionality behind it piece by piece until the old system can be removed.

### How much test coverage does it expect first?

It targets 80 percent or more coverage of existing behaviour before refactoring begins.
