quality loops
7 loops in this category.
Repair accessibility, highest-impact first
Confirm barriers against an agreed standard, fix the one with the greatest user impact, and rerun the same checks.
Run zero-config stop gate
Run the stop gate condition to judge loop completion; use judge.sh only for cross-model or off-plan evaluation.
Clean up the slop
Review your recent diff for debug code, dead branches, and bad names, then fix with minimal edits until lint and tests pass.
Format until clean
Run the formatter, hand-fix anything it can't auto-fix, and repeat until git diff is empty.
Agent-Loop-Skills bundle — loop until it's better
Six verification-gated loops in one open-standard skill bundle — autoresearch, scientific writing, data analysis, code/SQL/prompt optimization, and red-teaming — portable across Claude Code, Codex, and Cursor. Use the red-teaming loop only against systems you own and are authorized to test.
Fix tests and lint
The classic one-liner goal loop: iterate until every test passes and the linter reports zero problems.
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.