Legacy Code Change Algorithm
Legacy CodeWorking Effectively with Legacy Code
Guide safe modification of legacy code (untested production code) using Feathers' 5-step Legacy Code Change Algorithm. Use this skill whenever a developer needs to change code that lacks test coverage — adding a feature, fixing a bug, refactoring, or optimizing — and wants to avoid regressions. Activates for 'I need to change this code but there are no tests', 'how do I safely modify legacy code', 'inherited codebase', 'untested code', 'legacy system change', 'code without tests', 'refactor without regressions', 'make this code testable', 'cover and modify', 'don't break anything', 'risky change to old code', 'no test coverage', 'adding feature to old code', 'fixing bug in untested code', 'legacy codebase change safely'.
Install
1. Add marketplace
› /plugin marketplace add bookforge-ai/bookforge-skills
2. Install plugin
› /plugin install working-effectively-with-legacy-code@bookforge-skills
3. Use the skill
› /legacy-code-change-algorithm
CC-BY-SA · Open sourceGitHub
What You'll Need
ReadGrepEditBashGlob (optional)
Source Book

Working Effectively with Legacy Code
Michael C. Feathers
View on ClawhHub