/done-gate:done-gate [install | status]from done-gate
Free Claude Code hook that stops a coding agent from saying "done", "fixed" or "all tests pass" without proof. After a code edit, the agent cannot end its turn until a real test command has run and passed after its last change; piped, masked or failing runs do not count. Use when you want Claude Code to prove its work before it reports success, or when an agent keeps claiming tests pass without running them.
Ships in done-gate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your agent says "done, all tests pass". Done Gate checks the commands that actually ran, not the agent's words. No passing test run after the last edit means no "done": the agent is told exactly what to run, runs it, fixes what fails, and only then finishes.
python3 --version, then python --version, then py -3 --version (Windows).
Use the first that works as <PY>.<DIR> = the absolute path of this skill's folder (where this SKILL.md is)..claude/settings.json) or every project (~/.claude/settings.json)?assets/hooks-settings.json into that file, replacing <PY> and <DIR>. Merge, never
overwrite: keep every existing setting and hook; append these three entries./hooks).tail/grep, masked with || true, or with 0 tests collected does not count.test_commands, ignore_paths, allow, a lower max_blocks) lives
only in the user's ~/.claude/proof-of-done.json, globally or under projects. A repository's
.proof-of-done.json can only tighten it: a higher max_blocks and "integrity": true.Do what the message says: run the real test command, read the result, fix the code (never the tests), re-run, then report with evidence: the command, its exit code and the summary line. Never edit the hook's state, disable hooks, or run a different command that "looks green".
The paid Proof-of-Done adds a test-integrity guard (blocks deleted, skipped or weakened tests,
lowered coverage thresholds and softened CI); drop its test_integrity.py next to done_gate.py
and it switches on. The Claude Code Guardrails kit adds Safety Guard (blocks recursive deletes,
git reset --hard, force pushes when they would destroy work) and Fake Package Blocker.
Both on Agensi: https://www.agensi.io/creators/cesar-pereiro
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ces107/agent-forge --plugin done-gate