Safe Legacy Editing Discipline
Legacy CodeWorking Effectively with Legacy Code
Apply 4 editing disciplines when modifying legacy code: Hyperaware Editing, Single-Goal Editing, Preserve Signatures, Lean on the Compiler. Use whenever a developer is about to edit untested code, refactor without a safety net, or is caught in avoidance anti-patterns (Edit-and-Pray, Minimization Freeze, Legacy Code Dilemma paralysis). Activates for 'how do I refactor safely', 'edit legacy code without breaking it', 'preserve behavior during refactor', 'lean on the compiler', 'preserve signatures', 'single-goal editing', 'make safe changes', 'edit and pray', 'cover and modify', 'careful editing', 'refactor without tests', 'break dependencies safely', 'avoid regressions in legacy code'.
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
› /safe-legacy-editing-discipline
CC-BY-SA · Open sourceGitHub
What You'll Need
ReadGrepEditBash (optional)
Source Book

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