loop-verifier
Skill4 starsChanged 5 months agoMITView on GitHub
Verify agent work against project gates before declaring it done. Use this skill whenever working in a project with a .loop/GATES.md file, whenever finishing any coding task inside a loop, whenever the user asks "is this actually done", "verify this", "check your work", or before emitting any VERDICT line. Also use it when a task involves tests, refactors, bug fixes, or dependency updates, when deciding whether work should be escalated to a human, and when the user asks to "audit my loop", "check loop readiness", or evaluate their loop setup.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- cobusgreyling/loop-engineeringtheir own version, first seen Aug 13, 2026
- SUDARSHANCHAUDHARI/MyLooptheir own version, first seen Jun 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- cobusgreyling/loop-engineering★ 11ksame name
- SUDARSHANCHAUDHARI/MyLoop★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- loop-engineeringSkill
- loop-memorySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Write this list down BEFORE writing any implementation.
- Distinctive: line 43
FAIL: must name which gate failed and why — that line feeds the retry.
- Distinctive: line 47
Never soften a verdict because effort was high.
- Distinctive: line 60
Verify Loop on edge cases (empty input, boundary values, mutation of caller data, error paths).
- Distinctive: line 78
When the user asks to audit their loop setup or loop readiness, score the project against this checklist and report gaps with concrete …
- Distinctive: line 92
No sprawl: if multiple loops run, check they share STATE.md's "Do not touch" list and don't overlap targets
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Loop Verifier
The checker half of the maker/checker split. Turns "the agent says it's done" into "the gates say it's done." Built on one anti-cheating rule from the research: checks must be derived from the TASK, before or independently of the implementation — an agent that writes its checks after coding tends to write checks that mirror its own mistakes.
The protocol
1. Before implementing: write the checks
From the task description and .loop/GATES.md, produce the concrete check
list for this task:
- Which universal gates apply (they all do) and what they mean here
- Which task-type gates apply (code / bug fix / refactor / docs / dependency)
- The project-specific commands (build, test, lint) that must exit clean
- 3–5 task-specific checks: edge cases, invariants, a worked example with a known expected result
Write this list down BEFORE writing any implementation. This ordering is the whole defense against self-confirming verification.
2. After implementing: run the gates
- Execute every runnable check for real (tests, build, lint). Paste actual output, not a summary of expected output.
- For non-runnable checks, walk each one explicitly: state the check, quote the evidence from the work, mark pass/fail.
- The Decompose audit is always included: every requirement in the task gets a quote from the output that satisfies it. No quote = gap = fail.
3. Verdict rules
- PASS requires: all applicable gates green, all checks walked, no check skipped silently.
- FAIL must name which gate failed and why — that line feeds the retry.
- A check you couldn't run (missing env, no test framework) is reported as UNRUN, and UNRUN on a required gate means the verdict is FAIL, not PASS. Unverifiable is not verified.
- Never soften a verdict because effort was high. The verdict describes the work, not the attempt.
4. Escalation triggers (hand to the human immediately)
- Any action on the GATES.md "Never" list would be required to proceed
- The same gate has failed 3 times for the same root cause
- The task requires changing the gates themselves
- Trust level is L1 and the fix requires applying changes
Verifying by task type
Code change — new behavior gets a new test; run suite before and after; Verify Loop on edge cases (empty input, boundary values, mutation of caller data, error paths).
Bug fix — reproduce first. A fix without a reproduction is a guess. The proof is one test that failed before the fix and passes after.
Refactor — the only gate that matters: identical behavior. Suite green before AND after; public contracts untouched; if no tests exist, write characterization tests first or escalate.
Docs/writing — every factual claim about the code checked against the code. Then the Stranger Review pass from the loop-engineering skill.
Dependency update — read the changelog for breaking changes before updating, not after the build breaks.
Loop setup audit ("audit my loop")
When the user asks to audit their loop setup or loop readiness, score the project against this checklist and report gaps with concrete fixes:
- Brain present:
.loop/GATES.md,LESSONS.md,STATE.mdexist and aren't untouched templates (project-specific gates filled in?) - Gates executable: build/test/lint commands defined and actually run in this environment
- Trust level sane: L2+ only with a populated LESSONS.md showing clean history; flag L3 without an allowlist as a finding
- Memory alive: lessons being both written AND applied (standing rules present after 2+ weeks of use is the health signal); flag files past ~30 entries for compression
- Stop rules: max attempts set; escalation triggers reachable; "Never" list intact
- No sprawl: if multiple loops run, check they share STATE.md's "Do not touch" list and don't overlap targets
Output: a short scorecard (each item pass/gap/fix), worst gap first. This replaces a standalone audit CLI — the checklist is the tool.
Maker/checker note
This skill is strongest when the checker runs in a separate context from the
maker (a fresh subagent, or at minimum a hard persona break) — models judge
their own work leniently and other work accurately. See
docs/maker-checker.md in the repo for the split recipes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

