c/agents › command
0votes

Definition of done block for agent context files

SnippetLow risk
submitted by CommandVault editors to c/agents

Paste into CLAUDE.md or AGENTS.md so agents stop declaring victory before the work is verified.

Snippet · 4 variables
## Definition of done
A task is done only when all of these are true:
- [ ] `{{lint_command}}` and `{{typecheck_command}}` pass with no new warnings.
- [ ] `{{test_command}}` passes; new behavior has a test.
- [ ] You ran the change for real ({{how_to_run}}) and checked for errors.
- [ ] No debug logs, commented-out code or TODOs left behind.
- [ ] Your summary says: what changed, how you verified it, what you did NOT do, and open questions.

If you can't verify something, say so plainly instead of guessing.
0 commentsreport

Use this file with your AI tool

Each tool reads project instructions from a different file name. Fill in the blanks above, then save it where your tool looks.

One command
npx commandvault add definition-of-done-block-for-agent-context-files-41e7512b --tool claude
Save as CLAUDE.md
## Definition of done
A task is done only when all of these are true:
- [ ] `{{lint_command}}` and `{{typecheck_command}}` pass with no new warnings.
- [ ] `{{test_command}}` passes; new behavior has a test.
- [ ] You ran the change for real ({{how_to_run}}) and checked for errors.
- [ ] No debug logs, commented-out code or TODOs left behind.
- [ ] Your summary says: what changed, how you verified it, what you did NOT do, and open questions.

If you can't verify something, say so plainly instead of guessing.

Use it: Claude Code loads it at the start of every session. Check with /context (Memory files).

Claude Code can also read an existing AGENTS.md; see its memory docs.

From Claude Code's docs , checked Oct 17, 2026.

Try it here

Fill in {{lint_command}}, {{typecheck_command}}, {{test_command}}, {{how_to_run}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.