agentleFS
yuusakuriyuusakuri/agent-skills/skills/deliver-acceptance-criteria/SKILL.md

deliver-acceptance-criteria

Skill2 starsChanged 10 days agoMITView on GitHub

Generates structured Given/When/Then acceptance criteria for a user story or feature slice, covering the happy path, key failure scenarios, and non-functional expectations in testable form. Use when turning requirements into verifiable scenarios for engineering handoff and QA sign-off. For a dedicated catalog of boundary conditions, error states, and recovery paths across a feature, use deliver-edge-cases; to write the stories themselves, use user-stories.

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After a user story, PRD section, or feature slice is defined

    line 20
  2. Distinctive:

    When a team needs clear pass/fail conditions for implementation

    line 21
  3. Distinctive:

    When writing QA-ready criteria for sprint planning or handoff

    line 22
  4. Distinctive:

    When a story has edge cases, error paths, or non-functional expectations that should be explicit

    line 23
  5. Distinctive:

    When asked to create acceptance criteria, follow these steps:

    line 34
  6. Distinctive:

    Start with the primary success flow, then add edge cases and error states that are likely or costly if missed.

    line 40
  7. Very specific:

    Use Given/When/Then language only.

    line 43
  8. Distinctive:

    Add criteria for performance, accessibility, security, reliability, or auditability when they matter to the story.

    line 49
  9. Distinctive:

    Ensure a reviewer can pass or fail each criterion without interpretation.

    line 55
  10. Very specific:

    Use references/TEMPLATE.md as the output format.

    line 59
  11. Very specific:

    Use explicit Given/When/Then statements for each criterion

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- PM-Skills | https://github.com/product-on-purpose/pm-skills | Apache 2.0 -->

Acceptance Criteria

Acceptance criteria define the observable behavior that must be true for a story or feature to be considered done. This skill turns feature context into concise, testable Given/When/Then scenarios that engineers and QA can verify without guessing intent.

When to Use

  • After a user story, PRD section, or feature slice is defined
  • When a team needs clear pass/fail conditions for implementation
  • When writing QA-ready criteria for sprint planning or handoff
  • When a story has edge cases, error paths, or non-functional expectations that should be explicit

When NOT to Use

  • You need the user stories themselves -> use user-stories; this skill deepens a story that already exists
  • You need systematic failure coverage across a whole feature -> use deliver-edge-cases; this skill stays story-scoped
  • There is no story or slice to bind criteria to yet -> use deliver-prd or user-stories first
  • You are defining success metrics for an experiment, not done-ness for a story -> use measure-experiment-design

Instructions

When asked to create acceptance criteria, follow these steps:

  1. Confirm the story or feature scope Identify the exact slice of work. If the scope is unclear, ask for the user story, PRD section, or feature description before drafting criteria.
  2. Separate the happy path from exceptions Start with the primary success flow, then add edge cases and error states that are likely or costly if missed.
  3. Write each criterion as an observable scenario Use Given/When/Then language only. Keep each criterion independently testable and avoid implementation details.
  4. Cover recovery and failure behavior Describe what the user sees or can do when validation fails, a dependency is unavailable, or a save action cannot complete.
  5. Include non-functional expectations Add criteria for performance, accessibility, security, reliability, or auditability when they matter to the story.
  6. Avoid duplication and overlap Each criterion should test one outcome. If two criteria describe the same behavior, merge or split them until the intent is clear.
  7. Review for testability Ensure a reviewer can pass or fail each criterion without interpretation. If a statement is subjective, rewrite it into a measurable outcome.

Output Contract

Use references/TEMPLATE.md as the output format. A complete response should:

  • Restate the feature or story context
  • Group criteria into happy path, edge cases, error states, and non-functional criteria
  • Use explicit Given/When/Then statements for each criterion
  • Note assumptions or open questions when context is incomplete

Quality Checklist

Before finalizing, verify:

  • The criteria map to a specific story or feature slice
  • The happy path is covered first
  • Edge cases are explicit, not implied
  • Error states include user-visible recovery behavior
  • Non-functional criteria are included when relevant
  • Each criterion is testable and has one clear outcome
  • No implementation details leak into the acceptance criteria

Examples

See references/EXAMPLE.md for a completed example based on a realistic e-commerce checkout flow.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.