scripted-verification
Skill2 starsChanged 17 days agoMITView on GitHub
Use when you are about to read logs, screenshots, diffs, timings, or benchmark numbers to decide whether something passed; when writing a "check", "verify", "retest", or "looks right" brief for another agent; when a manual check sits in AGENTS.md, a PR template, or a review comment; when about to sleep, wait, or poll for a result; or when re-checking a commit or re-running an A/B that was already judged. Turn the check into a deterministic script that prints PASS, FAIL, or UNSURE with exit codes and keeps the full evidence on disk for review.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- act-within-scopeSkill
- build-filesSkill
- codingSkill
- context-managementSkill
- create-verification-skillSkill
- domain-modelingSkill
- encode-lessonsSkill
- experience-firstSkill
- eyes-onSkill
- fluxSkill
- frontend-designSkill
- gitSkill
- grill-with-docsSkill
- in-your-own-wordsSkill
- lint-rulesSkill
- maintain-verification-skillSkill
- security-auditSkill
- skill-evaluationSkill
- test-auditSkill
- test-behavior-not-implementationSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Stop and script the check when you notice yourself:
- Very specific: line 46
Write the full evidence (screenshots, diffs, raw numbers, logs) to --out or a debug directory.
- Very specific: line 48
Use UNSURE for anything that is not a clean pass or fail: the borderline band and states the script cannot decide.
- Distinctive: line 52
Every verdict stays reviewable: the evidence must show why the script decided what it did.
- Distinctive: line 62
Do not lock references or goldens until the state is stable.
- Distinctive: line 67
Run cheap checks first and skip the agent when one fails:
- Distinctive: line 76
Wait with CI, webhooks, file watchers, or a cheap script loop.
- Distinctive: line 89
Use targeted reads: the failing section or the verdict, not whole files or logs.
- Distinctive: line 91
Write a precise brief: the goal, the inputs, the done criteria, and the exact command to run.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Scripted Verification
Agents are expensive judges. Every step re-sends the whole context, so an agent that re-reads results in prose pays for that context on every step. One audit found the largest cost was agents re-judging the same kind of result: about 29 runs in a day, some for 25 to 40 minutes at high effort, at 110K to 134K tokens per step. A script makes that judgement once, for free, every time.
When To Reach For This
Stop and script the check when you notice yourself:
- about to read logs, screenshots, diffs, or numbers to decide pass or fail, especially the same comparison against the same baseline as last time;
- writing a "check X", "verify X", "retest", or "make it look right" brief for another agent;
- following a manual check from AGENTS.md, a PR template, or a review comment;
- about to sleep, wait, or poll until a run, build, or resource finishes;
- re-checking a commit, or a commit whose inputs did not change, that already has a verdict;
- launching a costly check that fails for a cheap reason: merge conflicts, a busy shared resource, or missing arguments;
- arguing whether a borderline number is noise. Measure the noise floor instead.
Script Any Check That Runs More Than Once
The second time an agent judges the same kind of result, write a script.
- Print one verdict line:
PASS,FAIL, orUNSURE, with the evidence path. Use distinct exit codes:0pass,1fail,2unsure,3the check itself broke. - Write the full evidence (screenshots, diffs, raw numbers, logs) to
--outor a debug directory. Do not print it. - Use
UNSUREfor anything that is not a clean pass or fail: the borderline band and states the script cannot decide. Do not force a guess. - Agents read the verdict line. On
UNSURE, an agent reviews the saved evidence first. Involve a person only when that review still cannot decide. - Every verdict stays reviewable: the evidence must show why the script decided what it did.
Skeleton: scripts/verdict-skeleton.sh.
Set Thresholds From Measured Noise
- Measure the noise floor first: run the check several times on an unchanged
state and record the spread. Set the threshold above it, with an
UNSUREband between noise and a clear failure. - Do not lock references or goldens until the state is stable. A golden taken during churn turns every later run into noise.
Pre-Check Before Launching An Agent
Run cheap checks first and skip the agent when one fails:
- the branch has merge conflicts;
- a shared resource (GPU, machine, lock) is busy;
- the commit was already judged. Cache verdicts by commit and inputs, and reuse the cached verdict.
Watch Events Instead Of Polling Agents
Wait with CI, webhooks, file watchers, or a cheap script loop. Never keep an agent idling in a wait loop; wake one only when there is a result to act on.
Earn Trust
- A new check starts on probation: review its verdicts against the evidence.
- It graduates to trusted after a run of correct verdicts.
- Any miss, false pass, or false fail becomes a new test case for the check.
Brief Agents Tightly
- Give short, focused tasks. Start a fresh agent per task instead of growing one long context.
- Use targeted reads: the failing section or the verdict, not whole files or logs.
- Write a precise brief: the goal, the inputs, the done criteria, and the exact command to run.
Related
context-managementfor targeted reads and handoffs.create-verification-skillfor driving an app and collecting evidence.lint-rulesandencode-lessonsfor turning a repeated judgement into a guard.test-auditfor whether a check should exist at all.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

