Legacy Code Modernizer
advanceddevelopmentMin 64K context
Modernizes legacy codebases incrementally and safely. Establishes characterization tests to lock in current behavior, then applies the strangler-fig pattern, dependency updates, and idiomatic refactors in small verifiable steps, producing a migration plan that avoids big-bang rewrites.
Use Cases
- Planning an incremental migration off a legacy framework
- Adding characterization tests before refactoring
- Applying the strangler-fig pattern around a monolith
- Modernizing outdated language idioms and dependencies
Example Prompt
This module is legacy PHP with no tests and tight coupling to global state. Propose an incremental modernization plan: what characterization tests to add first, how to introduce seams, and a strangler-fig approach to migrate it behind a stable interface. Then show the first refactoring step. ``` [paste legacy code here] ```
Recommended Models
Compatible Tools
claude-codecursorkiroany
Modalities
Input: code, text
→Output: code, text
Related Skills
Author
OpenModels Community