Fix tests and lint

The classic one-liner goal loop: iterate until every test passes and the linter reports zero problems.

prompt
→ Claude
/goal all tests pass and lint is clean
claude-code · codex · cursor

Implementation note

The simplest useful goal loop and a great first one to try. Works in any repo with test and lint scripts wired up.

Source: RodmanAi

More quality loops

Repair accessibility, highest-impact first

Confirm barriers against an agreed standard, fix the one with the greatest user impact, and rerun the same checks.

prompt
→ Claude
Check [scope] against [accessibility standard, such as WCAG 2.2 AA] with automated scans and available keyboard, screen-reader, and other manual tests. Confirm each issue, rank it by harm, and fix the highest-impact blocker. Rerun the same checks, affected task, and regression tests. Keep only verified fixes. Stop when no blocker remains, progress stalls, verification is unavailable, or approval is required. Never silence a check or weaken the target. Return issues, fixes, evidence, exceptions, and untested needs.
qualitymedium risk

Karpathy-Style CLAUDE.md Self-Check Protocol for Loops

A self-check protocol embedded in CLAUDE.md that every loop iteration obeys before ending a turn: re-read the goal, diff the changes against it, run the verification command, and state what remains — a ritual that catches drift between iterations.

prompt
→ Claude
Preamble rules embedded in CLAUDE.md that every loop iteration obeys: before ending a turn, re-read the goal, diff your changes against it, run the verification command, and explicitly state what remains — a self-check ritual that catches drift between iterations. (Community template descended from Andrej Karpathy's circulated CLAUDE.md rules.)
qualitymedium risk

Clean up the slop

/goalnew

Review your recent diff for debug code, dead branches, and bad names, then fix with minimal edits until lint and tests pass.

prompt
→ Claude
/goal the recent diff is clean and convention-aligned — review it for debug code, dead branches, and bad names, fix with minimal edits until `npm run lint && npm test` passes; stop after 4 turns
qualitylow risk