fix-and-test
Installation
SKILL.md
Fix and Test
Run a fix-test loop: identify failing tests, fix them, re-run tests, repeat until green.
Use this when the codebase is already in a failing state and the goal is recovery.
Do not use this for greenfield feature delivery (use tdd) or structural cleanup of already-green code (use refactor).
What to do
- If the user provided an argument, use it as the test command (for example
npm test -- auth). Otherwise usenpm test. - Run the command and triage existing failures.
- Fix production code first; only edit tests when they are demonstrably wrong.
- Re-run the same command and iterate until green (max 5 passes).
- Once scoped tests are green, run full
npm testbefore declaring done.