Fixes bugs by first reproducing them with a failing automated test, then finding the root cause, applying the smallest fix and keeping the test as a regression guard. Use when the user reports a bug, an error message or a stack trace.
Nutzen für: A bug can be reproduced with an automated test
Refactors code in small, behaviour-preserving steps with tests run after every step, so the result can be reviewed and rolled back easily. Use when the user wants to clean up, restructure, rename, extract or simplify code without changing what it does.
Nutzen für: Restructuring code without changing behaviour