Loops: Testing & quality
Reusable prompts and workflows for coding agents.
Build Until Green
Run the production build, fix compile and bundling errors, and loop until the build succeeds.
Coverage Until Threshold
Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.
Format Until Clean
Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.
Flaky Test Triage
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.
Pre-Commit Guard
Hook that runs tests before git commit commands to block commits when the suite is red.
Autoloop TDD
Test-first loop: write a failing test, implement the minimum code to pass, refactor, and repeat.
Independent Verifier Pass
When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implementer's rationale.
Post-Merge Regression Guard
Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.
Lint and Typecheck Fix
Run lint and typecheck, fix reported issues, and loop until the codebase is clean.
Post-Edit Test Guard
Hook-based loop that runs related tests after file edits to catch regressions early.
Test Until Green
Run your test suite, fix the smallest root cause on failure, and repeat until every test passes.
Visual Regression Until Match
Run Playwright or Percy visual snapshots on UI changes; fix unintended diffs until baselines match intentionally.
E2E Until Green
Run end-to-end tests, fix UI and integration failures, and loop until the E2E suite passes.