Test Before Refactoring
Add tests before refactoring code that lacks coverage
CLAUDE.md
Add tests before refactoring code that lacks coverage. The tests verify current behavior so you can refactor with confidence. Without them, you won’t know if you broke something.
Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.