acceptance-criteria
Skill1 starsChanged 6 months agoMITView on GitHub
Write, review, or refine acceptance criteria for a feature, task, or user story. Use when defining "done", turning a requirement into testable criteria, choosing between checklist vs Given/When/Then scenarios, classifying hard vs soft errors, specifying prohibitions, or verifying that tests and AC are losslessly convertible in both directions.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- KonstantinVCH/QA-agent-skillstheir own version, first seen Oct 3, 2026
- designedbythanh/ai-skills-library-product-designtheir own version, first seen Oct 1, 2026
- garthcodes/claude-skillstheir own version, first seen Sep 30, 2026
- celestialdust/achilles-skillstheir own version, first seen Sep 10, 2026
- irwebtools/Product-Skillstheir own version, first seen Sep 9, 2026
- Happy-Technologies-LLC/happy-platform-skillstheir own version, first seen Jul 28, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- Happy-Technologies-LLC/happy-platform-skills★ 40same name
- jdm4pku/RE-Skills★ 26same name
- designedbythanh/ai-skills-library-product-design★ 2same name
- garthcodes/claude-skills★ 2same name
- celestialdust/achilles-skills★ 1same name
- dhslegen/digital-delivery-team★ 1same name
- nickwinder/skills★ 1same name
- irwebtools/Product-Skills★ 0same name
- KonstantinVCH/QA-agent-skills★ 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
Distinctive
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 110
Not only what the system does, but also what it must not do:
- Distinctive: line 119
Do not duplicate in every AC.
- Distinctive: line 142
Use the AI to reconstruct AC from them.
“Common” is measured: kept by at least 6 in 10 of the 7 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
Acceptance Criteria Template (Given / When / Then)
AC is a contract between all parties involved in development (manager, developer, QA, AI, user): an unambiguous definition of when the work can be considered done.
The key quality metric for AC: tests can be compiled from them, and AC can be reconstructed from tests (lossless, two-way conversion).
Which format to use
| Format | When to use |
| Checklist | simple low-level tasks with few, obvious rules |
| Scenario-based (Given/When/Then) | features, modules, subsystems, any non-trivial behavior |
Format 1 — Scenario-based
Structure of a single scenario
Scenario: <short name — what we are verifying>
Given <precondition: system state / scope of the rule>
And <additional precondition, if needed>
When <action that triggers the behavior>
Then <expected result — observable, verifiable>
And <additional result / side effect>- Given — the scope of the task: under what conditions the rule applies at all (who, from where, in what state).
- When — the specific action.
- Then — a result that can be verified automatically (HTTP status, message, DB state, event).
Example (password reset)
Scenario: Password reset via a link valid for 30 minutes
Given a registered user with email "user@example.com"
And the user is on the login page
When the user requests a password reset for their email
Then the system sends an email containing a reset link with a token
And the link is valid for exactly 30 minutes
Scenario: Expired reset link is rejected
Given the user received a password reset link
And 31 minutes have passed since the link was issued
When the user opens the link and tries to set a new password
Then the system returns a 400 error (link expired)
And the password is not changed⚠️ Common AI pitfall: "the email expires in 30 min". It is not the email that expires, but the link with the token. State the subject of the rule explicitly.
Format 2 — Checklist
For simple tasks where a scenario would be overkill:
## <Task name>
- [ ] <verifiable statement>
- [ ] field X is required, format: <regex / rule>
- [ ] "Sign in" button is enabled ⇔ both fields (login, password) are filled
- [ ] password is masked with asterisks
- [ ] an invalid email shows the message "<exact text>"Mandatory sections for any AC
1. Preconditions (scope)
Who, in what state, from where. ("only a registered user", "only from the login page".)
2. Dependencies between fields
Describe relationships explicitly:
- If the person has a child → the child's certificate number is required.
- If there is a registered address → the address is required. Otherwise the address may be empty.3. Error classification (critical for AI)
| Type | Allowed? | Example |
| Hard / system | NO, must not occur | crash, data loss, protocol error |
| Soft / business logic | YES, must occur and be handled gracefully | invalid address format → validation message |
If you tell the AI "there must be no errors" without this distinction, it will strip out the needed validation checks.
4. Prohibitions (negative criteria)
Not only what the system does, but also what it must not do:
- An unregistered user MUST NOT be able to request a password reset.
- An expired token MUST NOT allow changing the password.5. References to shared requirements
Do not duplicate in every AC. Extract into shared project documentation and reference it:
Password and security requirements: see docs/architecture/security.mdAC quality checklist
- The scope (Given) is clearly stated — when the rule applies.
- The result (Then) is verifiable (status/message/state), not "convenient / fast".
- Hard and soft errors are distinguished.
- Prohibitions are described, not just permissions.
- Field dependencies are stated explicitly.
- Shared requirements are extracted and linked, not duplicated.
- Tests can be generated from the AC, and the same AC can be reconstructed from the tests.
Verifying via two-way conversion
- Take tests written against a user story (not arbitrary unit/integration tests).
- Use the AI to reconstruct AC from them.
- In a fresh context (so the AI does not remember) — generate tests from those AC.
- Compare: the tests should match.
- A mismatch → either the tests were unclear, or the AC do not extract cleanly. Iterate until conversion is stable in both directions.
Why: humans share an implicit context (team, culture, onboarding). The AI has none — the project's text documents replace onboarding for it.
Blank template to copy
Feature: <feature name>
Scenario: <scenario name>
Given <precondition>
And <...>
When <action>
Then <verifiable result>
And <...>
# Prohibitions
- <what the system must not do>
# Errors
- hard (not allowed): <...>
- soft (expected): <...>
# Shared requirements
- see <link to document>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.

