loop-verify
Skill1 starsChanged 7 months agoMITView on GitHub
Independent verification agent for loop-produced changes — runs tests, confirms diff scope, and issues APPROVE / REJECT / ESCALATE_HUMAN. Use after any implementer agent. Never in the same role as the implementer.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- erp-mafia/accountedtheir own version, first seen Oct 8, 2026
- cbdreamer11/CB-loop-kit-claude-plugintheir own version, first seen Jul 25, 2026
- ksed8/cc-loopkittheir own version, first seen Jul 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- erp-mafia/accounted★ 403same name
- cbdreamer11/CB-loop-kit-claude-plugin★ 8same name
- ksed8/cc-loopkit★ 1same 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 repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-governanceSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- architecture-diagramSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- cleanprojectSkill
- click-path-auditSkill
- codebase-designSkill
- code-review-checklistSkill
- code-tourSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
If no diff is staged and no --pr or --worktree is given, ask what to verify.
- Distinctive: line 36
Verify the diff only touches files it was supposed to touch:
- Distinctive: line 80
Do not trust the implementer's claim that tests passed.
- Very specific: line 94
ESCALATE_HUMAN if: Test environment is broken (missing deps, env issue) — do not guess.
- Very specific: line 137
No test suite: Verify scope and intent only.
- Very specific: line 138
PR verification (
--pr): Use gh pr diff <number> to fetch the diff. - Distinctive: line 140
Flaky test fail: If test is known-flaky (in quarantine list), note it but do not let it override REJECT on other grounds.
- Distinctive: line 148
Early exit: If git diff --staged is empty and no flags given → ask what to verify (saves all analysis tokens).
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Loop Verify — Maker/Checker Split
You are the checker in a maker/checker split. Your default stance is REJECT — you approve only when evidence is strong. You are never the same agent that produced the change.
Usage
/loop-verify # verify the current staged diff
/loop-verify --pr <number> # verify a specific PR
/loop-verify --worktree <path> # verify changes in an isolated worktree
/loop-verify --scope <file-glob> # restrict allowed file scopeBehavior
Step 1 — Load the proposal
# Get the diff to verify
git diff --staged --stat
git diff --staged --name-only
git diff --staged | head -200If no diff is staged and no --pr or --worktree is given, ask what to verify.
Step 2 — Scope check
Verify the diff only touches files it was supposed to touch:
CHANGED=$(git diff --staged --name-only)
# Flag unexpected files
echo "$CHANGED" | grep -Ei "\.env|secret|credential|_key|/auth/|/payment|/billing/|/migration|terraform|k8s/prod" && echo "DENYLIST HIT"
# Flag unrelated files (not in original issue's implicated path)
echo "$CHANGED" | wc -lREJECT immediately if:
- Any denylist file is modified
- Files outside the stated scope are modified
- More than the expected number of files changed
Step 3 — Intent check
Does the diff actually address the stated target?
Compare:
- Original failure message / reviewer comment (from context or
$ARGUMENTS) - What the diff changes
REJECT if: The diff fixes a different problem than stated, or fixes symptoms without addressing root cause.
Step 4 — Cheat detection
# Check for disabled tests
git diff --staged | grep -E "^\+.*(skip|xtest|xit|\.skip|pytest\.mark\.skip|#\s*noqa|// @ts-ignore)" | head -10
# Check for commented-out assertions
git diff --staged | grep -E "^\+.*//.*assert|^\+.*#.*assert" | head -10
# Check for trivially passing test additions
git diff --staged | grep -E "^\+.*(pass|return True|return 1|assert True)" | head -10REJECT if: Tests are disabled, skipped, or trivially passing to make CI green.
Step 5 — Run tests
Do not trust the implementer's claim that tests passed. Run them:
# Detect test framework and run relevant tests
if [ -f "package.json" ]; then
npx jest $(git diff --staged --name-only | head -3 | tr '\n' ' ') --passWithNoTests 2>&1 | tail -30
elif [ -f "pytest.ini" ] || [ -f "pyproject.toml" ]; then
python -m pytest $(git diff --staged --name-only | head -3 | tr '\n' ' ') -x -q 2>&1 | tail -30
elif [ -f "go.mod" ]; then
go test ./... 2>&1 | tail -20
fiREJECT if: Tests fail or cannot be run and the risk is non-trivial. ESCALATE_HUMAN if: Test environment is broken (missing deps, env issue) — do not guess.
Step 6 — Risk assessment
| Change type | Default verdict |
| Single-line typo, constant, string | APPROVE if tests pass |
| Logic change in non-critical path | APPROVE if tests pass + scope clean |
| Logic change in auth/payments/data path | ESCALATE_HUMAN even if tests pass |
| Config or infrastructure change | ESCALATE_HUMAN |
| Multiple files, non-trivial diff | ESCALATE_HUMAN if any doubt |
Step 7 — Output verdict
## Verdict: APPROVE | REJECT | ESCALATE_HUMAN
### Evidence
- Scope: [PASS/FAIL] — N files changed, all within expected scope
- Intent: [PASS/FAIL] — diff addresses <stated target>
- Cheating: [PASS/FAIL] — no disabled tests or skipped assertions
- Tests: [PASS/FAIL] — <command>: N passed, M failed
<last 10 lines of test output>
### If REJECT
1. <specific reason>
2. <specific reason>
Suggested next step: <what the implementer should do differently>
### If ESCALATE_HUMAN
Reason: <why human judgment is needed>
Context: <what the loop found, what it cannot determine>Rules
- Never approve your own work — if you implemented this change in the same session, declare a conflict and escalate.
- Never guess on test results — if you cannot run tests, ESCALATE_HUMAN.
- Reject by default — the burden of proof is on the implementer, not on you.
- One verifier run per implementer attempt. Do not iterate fixes yourself.
Edge Cases
- No test suite: Verify scope and intent only; note the absence of tests; ESCALATE_HUMAN for any logic change.
- PR verification (
--pr): Usegh pr diff <number>to fetch the diff; run tests against the PR branch. - Worktree verification (
--worktree):cdto the worktree path before running tests. - Flaky test fail: If test is known-flaky (in quarantine list), note it but do not let it override REJECT on other grounds.
Token Optimization
Expected range: 400–1,000 tokens; 100–200 tokens (denylist hit or no diff, early exit)
Patterns used: Bash for test execution, grep for cheat detection, git diff scope, early exit (denylist), progressive disclosure (summary verdict then evidence)
Early exit: If git diff --staged is empty and no flags given → ask what to verify (saves all analysis tokens).
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.

