done-prover
Skill0 starsChanged 7 months agoMITView on GitHub
Verify Claude's claim that tests are passing. Use this skill when the user wants to know whether a recent "all tests pass" or "feature complete" statement was honest, or when the user mentions Claude lied about completion. Reads the most recent test output from the conversation transcript and surfaces any discrepancy between what Claude claimed and what the test runner actually reported. Auto-triggered by a Stop hook whenever Claude makes a test-pass claim in its final message.
In this repository9 other files it gives its agents.
- amnesia-fixSkill
- compact-guardSkill
- onboardSkill
- safe-shellSkill
- skill-budgetSkill
- skill-doctorSkill
- subagent-brokerSkill
- token-x-raySkill
- unclearSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Very specific: line 32
If a claim is found, scans recent tool_result entries for the actual test output Claude already ran
- Distinctive: line 34
If the test output shows failures, the hook blocks the stop and surfaces a verdict to the conversation
- Distinctive: line 37
If no claim is found, or no test output is in scope, the hook exits silently.
- Very specific: line 53
Read .papercuts/proofs/ (most recent file).
- Distinctive: line 54
Stop hook generated is saved here.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
done-prover — verify Claude's "done"
What this prevents
"Tests pass because they test structure and mock implementations rather than actual functionality." — common pattern in #5052
Claude Code can declare "all 47 tests pass" when 2 actually failed, 1 was skipped, and the integration suite never ran. This skill catches that.
How it works
A Stop hook (hooks/verify-claims.sh) fires at the end of every
assistant turn. It:
- Reads the final assistant message from the transcript
- Looks for completion-claim phrases ("all tests pass", "everything green", "X tests passing", etc.)
- If a claim is found, scans recent
tool_resultentries for the actual test output Claude already ran - If the test output shows failures, the hook blocks the stop and surfaces a verdict to the conversation
If no claim is found, or no test output is in scope, the hook exits silently. It never re-runs tests on its own — it only verifies the output Claude already saw.
When you (the model) should invoke this skill manually
The Stop hook handles auto-invocation. You should manually invoke this skill if the user:
- Asks "did Claude actually test that?"
- Says "verify the last claim"
- Mentions Claude lied about completion
- Asks for a proof artifact of a recent test run
Verification procedure (when manually invoked)
- Read
.papercuts/proofs/(most recent file). Each verdict the Stop hook generated is saved here. If empty, tell the user no recent claim has been verified yet. - List the most recent 3 verdicts with timestamps.
- For each, show:
- The claim that was made (verbatim from the assistant message)
- The discrepancy that was detected
- The path to the original test output
Verdict format
The hook (and any manual invocation) emits this exact format:
─── done-prover: verdict ───
Claim: "<verbatim phrase from assistant>"
Evidence: <path to tool_result that was checked>
Reported by Claude:
<Claude's count, e.g. "all 47 tests pass">
Actual test output:
✓ <passed>
✗ <failed>
◌ <skipped>
Discrepancy:
<one-sentence summary>
─────────────────────────────What this skill does NOT do
- It does not re-run tests. It only verifies the output Claude already saw, which is faster and matches what the user observed.
- It does not block normal "done" claims (e.g. "I finished the refactor"). It only blocks claims about TEST RESULTS.
- It does not handle every test framework's output format
perfectly. It looks for common failure signals (
FAIL,ERROR,failed:,\d+ failed). False negatives are possible; false positives are designed to be rare.
Configuration
Optional .papercuts/config.json:
{
"done_prover": {
"claim_phrases": ["all tests pass", "all green", "..."],
"failure_patterns": ["FAIL", "ERROR", "\\d+ failed"],
"verdict_dir": ".papercuts/proofs"
}
}Defaults are sensible. Most users never need to touch this.
Trust, then verify
This skill is the "verify" half of the project's voice. Every claim the assistant makes that something is done gets a receipt.
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.

