verify-before-done
Skill54 starsChanged 6 months agoMITView on GitHub
Proves work with tests, diffs, and logs before sign-off.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- joaoguirunas/team-ostheir own version, first seen Sep 26, 2026
- MirzaMotoTech/agent-craft-for-hermestheir own version, first seen Sep 7, 2026
- DomenicMoran/verified-donetheir own version, first seen Aug 2, 2026
- EdgeF-4/claude-code-guardrailstheir own version, first seen Jul 13, 2026
- yuchi-chang/no-capetheir own version, first seen Jun 30, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- joaoguirunas/team-os★ 3same name
- DomenicMoran/verified-done★ 2same name
- yuchi-chang/no-cape★ 2same name
- EdgeF-4/claude-code-guardrails★ 1same name
- MirzaMotoTech/agent-craft-for-hermes★ 0same 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 repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- architecture-sketchingSkill
- autonomous-bug-fixSkill
- behavioral-foundationSkill
- brainstormingSkill
- codebase-onboardingSkill
- code-reviewSkill
- debuggingSkill
- demand-eleganceSkill
- derive-nfr-from-driverSkill
- derive-security-from-riskSkill
- dispatching-parallel-agentsSkill
- durable-workSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- plan-before-codeSkill
- pr-workflowSkill
- receiving-code-reviewSkill
- refactoringSkill
- requesting-code-reviewSkill
- requirements-elicitationSkill
- safety-guardrailsSkill
- security-auditSkill
- self-improvementSkill
- subagent-strategySkill
- test-writingSkill
- traceability-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- template-skillSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 9 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Before flipping any step in tasks/todo.md from - [ ] to - [x].
- Distinctive: line 19
Before opening a pull request.
- Distinctive: line 20
After any fix or feature implementation.
- Distinctive: line 21
After performance work, migrations, or changes whose success depends on runtime behavior.
- Distinctive: line 65
Write one falsifiable sentence describing success before running checks.
- Distinctive: line 73
If no meaningful baseline exists, state why.
- Very specific: line 77
Run via the powershell tool — not "it compiles", not "the unit test I wrote".
- Distinctive: line 79
If the area you changed has no tests, write one as part of the task.
- Distinctive: line 91
Use the matching surface:
- Very specific: line 138
Only a VERIFIED block permits flipping the step to - [x].
- Distinctive: line 148
DO NOT: test only the happy path. Edge cases are where bugs live.
- Distinctive: line 151
DO NOT: treat unit tests as proof that a user-visible or runtime problem is gone.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Verify Before Done Skill
Refuses to mark a task complete without concrete evidence from both automated checks and the real artifact or user-facing surface. Produces an explicit VERIFIED, NOT VERIFIED, or INCONCLUSIVE verdict. Does NOT replace scripts/verify.sh — it tells the agent when to run it and what evidence the gate cannot supply.
When to Use
- Before flipping any step in
tasks/todo.mdfrom- [ ]to- [x]. - Before opening a pull request.
- After any fix or feature implementation.
- After performance work, migrations, or changes whose success depends on runtime behavior.
- Any time the agent is about to say "done" or "ready" without evidence.
Prerequisites
- A test runner installed for the stack (pytest, vitest, go test, etc.).
scripts/verify.sh(orscripts/run-checks.ps1on Windows) executable.- The
powershelltool to invoke runners andgit. gitavailable so diffs can be inspected.
How to Run
1. State the success predicate and capture a baseline when behavior is changing.
2. Run the project's tests and the dojo gate via the `powershell` tool.
3. Exercise the real artifact or user-facing surface.
4. Inspect the diff and working tree.
5. Record evidence and assign a verdict.
6. Mark the step complete only when the verdict is `VERIFIED`.Quick Reference
| Check | Command (run via powershell) | Pass criterion |
| Tests pass | pytest / npm test / go test ./... / dotnet test / mvn test | exit 0, no failures reported |
| Dojo gate | bash scripts/verify.sh --check | exit 0 |
| Real artifact | Matching browser, CLI, API, package, migration, or runtime check | observed result satisfies the stated predicate |
| Baseline comparison | Same measurement before and after the change | result moves from failing/old state to expected state |
| Diff summary | git diff main --stat | matches plan in tasks/todo.md |
| No regressions | git diff main -- <touched paths> | only intended changes |
| Clean tree | git status --porcelain | empty output (or expected untracked) |
| Evidence captured | edit tasks/todo.md | Verification Results block added |
| Verdict | Meaning | Completion allowed? |
VERIFIED | Evidence proves the success predicate on the real artifact. | Yes |
NOT VERIFIED | Evidence proves the result is wrong or regressed. | No |
INCONCLUSIVE | The check was unavailable, used the wrong surface, or could not distinguish success from failure. | No |
Procedure
Step 1: State the Predicate and Baseline
Write one falsifiable sentence describing success before running checks. For a bug, capture the failing behavior first. For performance work, record the original measurement. For a migration, record the pre-change state and the expected post-change invariant.
Examples:
- "Submitting an expired token returns HTTP 401."
- "The p95 latency for this fixture is below 200 ms."
- "Running the migration twice leaves the schema and data unchanged."
If no meaningful baseline exists, state why. Do not invent one after seeing the result.
Step 2: Run the Full Test Suite
Run via the powershell tool — not "it compiles", not "the unit test I wrote". The full suite catches regressions in adjacent code.
If the area you changed has no tests, write one as part of the task. An untested change is unverified by definition.
Step 3: Run the Dojo Gate
bash scripts/verify.sh --checkThis wraps the spec/plan/actions/tests checks in CI parity mode. If it fails locally, it will fail in CI.
Step 4: Exercise the Real Artifact
Use the matching surface:
| Change | Required runtime evidence |
| Browser or desktop UI | Drive the affected flow and capture the observed state or screenshot. |
| CLI or TUI | Run the command with representative inputs and inspect exit code and output. |
| API | Send a representative request and inspect status, headers, and response body. |
| Package or library | Exercise the public entry point from a consumer-shaped test or example. |
| Migration | Run forward, validate invariants, and test the supported retry or rollback path. |
| Performance | Repeat the same measurement method used for the baseline. |
Tests prove code paths. The real-surface check proves the reported problem or requested outcome. A check on the wrong surface is INCONCLUSIVE, not a pass.
Step 5: Diff Against Main
git diff main --stat
git diff mainThe change set must match the plan in tasks/todo.md. Unexpected files in the diff are a red flag — either the plan is stale or you've leaked scope.
Step 6: Clean Tree Check
git status --porcelainOutput must be empty (or contain only deliberately-untracked files). Debug prints, leftover scratch files, and stray .tmp artifacts all surface here.
Step 7: Record Evidence and Verdict
Append to tasks/todo.md under the current task:
### Verification Results
- Predicate: Expired tokens return HTTP 401.
- Verdict: VERIFIED
- Baseline: expired token returned HTTP 500 before the fix
- [x] Tests: 47 passed, 0 failed (`pytest tests/`)
- [x] Dojo gate: `verify.sh --check` PASS
- [x] Real artifact: API request returned HTTP 401 with expected body
- [x] Diff: 3 files changed, +84/-12 (matches plan)
- [x] Clean tree
- [x] Evidence: <paste relevant test output, log snippet, or screenshot ref>Only a VERIFIED block permits flipping the step to - [x]. Record NOT VERIFIED and INCONCLUSIVE honestly, then keep working or report the blocker.
Step 8: Staff-Engineer Sniff Test
Final question: "Would a senior reviewer approve this on the evidence alone?" If no, add the missing evidence before claiming done.
Pitfalls
- DO NOT say "done" without a Verification Results block. Verbal claims don't count.
- DO NOT skip tests because "it's a small change." Small changes cause big outages.
- DO NOT test only the happy path. Edge cases are where bugs live.
- DO NOT ignore flaky tests. A flaky test is a test that sometimes catches bugs — fix it, don't ignore it.
- DO NOT trust "it compiles." Compilation is the lowest possible bar.
- DO NOT treat unit tests as proof that a user-visible or runtime problem is gone.
- DO NOT convert an unavailable or wrong-surface check into a pass. Use
INCONCLUSIVE. - DO NOT change the measurement method between baseline and result.
- DO NOT mark a step done before
scripts/verify.sh --checkexits 0.
Verification
- Test suite ran to completion with exit 0.
scripts/verify.sh --check(orrun-checks.ps1 -Check) passed.- The real artifact or user-facing surface satisfies the stated predicate.
- Baseline and result used the same measurement method when comparison applies.
git diff main --statmatches the plan.git status --porcelainis empty.tasks/todo.mdhas a Verification Results block with an explicit verdict.
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.

