Characterization Test Writing
Legacy CodeWorking Effectively with Legacy Code
Write tests that pin down the actual current behavior of untested legacy code as a safety net for change. Use whenever a developer needs to create a regression safety net before modifying code — 'I don't know what tests to write', 'what should I test in legacy code', 'how do I write tests for code I didn't write', 'tests to preserve behavior', 'golden tests', 'snapshot tests for old code', 'characterization test', 'cover before modify'. Activates for 'legacy code testing', 'untested code', 'write tests before changing', 'regression safety net', 'behavior-preservation tests', 'pin down behavior'.
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
› /characterization-test-writing
CC-BY-SA · Open sourceGitHub
What You'll Need
ReadEditBashGrep (optional)
Source Book

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