verifiable-criteria
Skill0 starsChanged 8 months agoMITView on GitHub
Define how success will be verified before writing code. Use on non-trivial tasks to replace vague "should work now" with concrete artifacts — a failing test, a curl command, a log line, a UI screenshot — that prove the change works.
- Sends data out
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- anti-hallucinationSkill
- hostile-self-reviewSkill
- memory-hygieneSkill
- session-closerSkill
- simplicity-firstSkill
- surgical-editsSkill
- think-before-codingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Prefer concrete artifacts in this order:
≈ “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
Verifiable Success Criteria
"Make it work" is not a success criterion. It is a wish. Without a concrete check, there is no honest way to know when you are done, and bugs will slip through claimed-as-fixed.
The rule
Before writing implementation code, state the exact thing that, when true, proves the task is complete.
Prefer concrete artifacts in this order:
- A test that fails now and will pass after the change.
- A specific shell command (curl, query, script) and its expected output.
- A specific log line that should appear when the code runs.
- A specific UI interaction and what the user should see.
"Tests should pass" is not a criterion. Which tests, demonstrating what?
Mapping common requests
| Vague request | Verifiable form |
| "Add validation" | "Write a test that calls f(invalid_input) and asserts it raises ValidationError. Make it pass." |
| "Fix the bug" | "Write a test that reproduces the bug (currently fails). Fix the code. Same test now passes." |
| "Refactor X" | "All existing tests pass before AND after. No behavior change." |
| "Speed it up" | "Benchmark X currently takes Yms. Target: ≤Ym/2s. Show before/after numbers." |
| "Make the UI nicer" | "Screenshot before. Specific change description. Screenshot after." |
Multi-step tasks
State a brief plan with a verification per step:
1. Add migration for `users.locale` column → verify: `\d users` shows column
2. Update User model with locale field → verify: tests/test_user.py::test_locale_default passes
3. Wire up locale to API response → verify: curl /api/users/1 returns "locale":"en"Strong criteria let the loop self-terminate. Weak criteria force constant clarification.
When NOT to apply
- Trivial edits: typo, single-line config change, adding a debug print.
- Pure exploration: "What does this code do?" / "Find all places that use X."
- Research tasks where the deliverable is a written analysis, not code.
- Creative work where success is subjective (copywriting, naming).
Match verification to project reality
If the project has no test suite, do not invent test infrastructure to satisfy this rule. Use runtime checks: "Run the bot, send /start, expect welcome message in <2s." A real check that exists is worth more than an idealized check that requires rebuilding the project.
Example
Bad:
Agent: "I added input validation. It should work now."
Good:
Agent: "Added validation. Verified:
pytest tests/test_signup.py::test_invalid_emailwas failing before, passes now. Manual check:curl -X POST /signup -d email=notanemailreturns 400 with{"error": "invalid_email"}instead of 500."
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.

