# test-and-fix > Run tests, fix failures, iterate until all pass. Use after code changes. - Author: Mahdi Khan - Repository: mahdi-khaannn/agentic-templates - Version: 20260207144042 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/mahdi-khaannn/agentic-templates - Web: https://mule.run/skillshub/@@mahdi-khaannn/agentic-templates~test-and-fix:20260207144042 --- --- name: test-and-fix description: | Run tests, fix failures, iterate until all pass. Use after code changes. --- # Test and Fix Loop 1. Run tests → 2. Analyze failures → 3. Fix root cause → 4. Re-run 5. Repeat (max 5 iterations) → 6. Verify no regressions → 7. Type check Rules: Never delete tests. Write regression tests. Fix root causes.