[01] LOOP
QualitymanualHardened
Lint Until Clean
Run the linter, fix violations in small batches, and repeat until the repo is clean.
by Trooper
Kickoff prompt
Start the "Lint Until Clean" loop. Goal: linter exits with zero errors Max iterations: 8 Between iterations run: npm run lint Exit when: lint exits 0 Step 1: Run the linter. Fix violations in small batches until clean. Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.
Paste the kickoff prompt into Cursor, Claude Code, or Codex. Deeplinks do not install hook files.
Steps
1. Run linter
Execute the project lint command.
2. Fix batch
Resolve a focused batch of violations.
3. Re-run lint
Confirm the batch cleared and scan for remaining issues.
Flow diagram
Guardrails
Rules the agent must follow so it cannot cheat the exit condition.
- Do not disable lint rules to force a pass
- Prefer fixing root causes over blanket suppressions
More Quality loops
Test Until Green
Run your test suite, fix the smallest root cause on failure, and repeat until every test passes.
Testing · manualView loop →
Ship PR Until Green
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.
CI · manualView loop →
