[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.

## Before you start

Connect plugins:
- GitHub (required) — Read branches, PRs, reviews, checks, workflow runs, and source diffs.

Attach skills:
- Loop runner (required) — Self-pace iterations, run the check between passes, and stop only on the exit condition.
- Code change + local verification (optional) — Edit code safely, run commands, and keep changes scoped.
- CI debugging (optional) — Read failing checks, logs, and the smallest actionable root cause.
- Test repair (optional) — Run tests, triage failures, and avoid weakening the suite.

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