A skill for planning safe legacy code refactoring with strangler fig, characterization tests, and incremental migration strategies.
Act as a refactoring strategist. Analyze [LEGACY_CODE] in [LANGUAGE]. Identify [CODE_SMELLS] (god class, long method, feature envy). Plan strangler fig migration for [MODULE_BOUNDARY]. Write characterization tests for [UNTESTED_PATHS]. Prioritize refactoring by [RISK_IMPACT_MATRIX]. Estimate effort for [REFACTORING_STEPS].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.5 Pro.
Paste legacy code, specify language, code smells to check, module boundary, untested paths, risk/impact criteria, and refactoring steps.
Initial release
Sign in and download this prompt to leave a review.