/sdlc-documentation:02-acceptance-criteriafrom sdlc-documentation
Formalizes deterministic Given-When-Then acceptance criteria for existing user stories. Produces an acceptance-criteria catalogue with traceable sources and test oracles.
Ships in sdlc-documentation. 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.
Read when SKILL.md points to them.
Acceptance-criteria catalogue is the next lifecycle deliverable.user-story-generation when that neighbouring route owns the decision or deliverable.| Artefact | Source or provider | Required? | Behaviour when missing |
|---|---|---|---|
| Approved user stories, business rules, quality thresholds, and error cases | Product owner, requirements baseline, and domain references | Yes | Stop the affected step, name the missing source, and return only a qualified gap record. |
Acceptance-criteria catalogue.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Acceptance-criteria catalogue | Developers, testers, product owner, and traceability owners | Required sections are populated, source links resolve, and every material requirement or decision has an observable review or test oracle. |
| Evidence | Reviewer | Acceptance condition |
|---|---|---|
Source, decision, trace, and validation record for Acceptance-criteria catalogue | Requirements quality reviewer | Inputs used, decisions made, checks run, failures, and unassessed items are explicit. |
Read and search are required. Editing is allowed only when the request authorises creation or repair of the named requirements artefact. Publishing, production mutation, destructive action, spending, and certification require explicit authority.
Fallback: if a required file, reviewer, standard source, network check, renderer, or execution capability is unavailable, return the narrowest useful qualified result and mark the affected check not assessed; never convert an unassessed check into a pass.
| Choice or condition | Action | Failure or risk avoided |
|---|---|---|
| A criterion uses subjective language or lacks an observable result | Rewrite it with explicit precondition, stimulus, result, and boundary. | Disputes caused by non-deterministic acceptance. |
| Required inputs and test oracles are complete | Continue through the existing workflow and record evidence. | A deliverable whose acceptance cannot be reproduced. |
| A mandatory source or owner is missing | Stop the affected branch and issue a qualified gap record. | Fabricated context or unauthorised decisions. |
Acceptance-criteria catalogue and its acceptance checks.Acceptance-criteria catalogue from assumed context. Fix: cite the project source or mark the scope blocked.user-story-generation without routing the decision. Fix: hand off the named input and preserve trace links.not assessed and state the release consequence.Resumable execution contract: use for stable criterion identity, revision-bound verification evidence, applicable interrupted/error/denied states, and downstream handoff.
Scenario quality rules: load when writing or reviewing Given-When-Then criteria, NFR ranges, or post-delivery scenario filing.
Document numbering requirements: load for stories that issue, void or replay numbered documents; reuse its section 9 criteria.
Run this skill after user stories are generated. It transforms each user story produced by 01-user-story-generation into formal acceptance criteria using the Gherkin (Given-When-Then) format. Every criterion shall be deterministic and independently verifiable, ensuring that test engineers can derive binary pass/fail outcomes without ambiguity. The skill enforces IEEE 29148-2018 Section 6.4.5 traceability between stakeholder intent and testable conditions.
Execute this skill after 01-user-story-generation has produced projects/<ProjectName>/<phase>/<document>/user_stories.md. Each user story in that file shall already follow the "As a / I want / So that" format. This skill shall not run until the upstream file exists and contains at least one valid story identifier (US-XXX).
projects/<ProjectName>/<phase>/<document>/user_stories.md (required), projects/<ProjectName>/_context/quality_standards.md (optional, for NFR criteria)projects/<ProjectName>/<phase>/<document>/acceptance_criteria.md| File | Source | Purpose | Required? |
|---|---|---|---|
user_stories.md | projects/<ProjectName>/<phase>/<document>/ | User stories with "As a / I want / So that" triads | Yes |
quality_standards.md | projects/<ProjectName>/_context/ | NFR targets for performance, security, and reliability thresholds | No |
| File | Destination | Contents |
|---|---|---|
acceptance_criteria.md | projects/<ProjectName>/<phase>/<document>/ | Gherkin-format acceptance criteria cross-referenced to story IDs |
projects/<ProjectName>/<phase>/<document>/user_stories.md and log the file path to confirm the read succeeded.Given [precondition], When [action], Then [expected result]. Criteria shall cover:
Source: ECC's
intent-driven-developmentskill (upstream repository github.com/affaan-m/ECC), AC format.
Add a Must not field alongside Given/When/Then wherever a criterion has an observable prohibited side effect — most security and data-isolation requirements live in this field and have nowhere else to go in a plain Given/When/Then template. State it as an assertion of absence, not a vague warning:
AC-001: Export generates file with correct headers
- Given: authenticated user, at least one data row visible
- When: user clicks "Export CSV"
- Then: browser downloads file with columns [id, name, created_at]
- Must not: expose internal fields or rows belonging to other users
- Verification: automated integration test + manual schema spot-check
Omit the Must not line only when a criterion genuinely has no side
effect worth constraining (e.g., a pure read with no cross-tenant or
cross-record exposure risk) — do not pad every criterion with a boilerplate
"must not fail" line. When in doubt whether a side effect is worth naming,
name it; an unnecessary Must not line costs nothing, a missing one
hides a security requirement inside a generic template with no slot for it.
4. Append NFR criteria. If projects/<ProjectName>/_context/quality_standards.md exists, read it and append non-functional acceptance criteria with measurable thresholds (response time, throughput, encryption standard, etc.) to each relevant story.
5. Flag untestable stories. If a story cannot yield deterministic, binary pass/fail criteria, tag it with [AC-FAIL] and append a remediation note identifying the missing or ambiguous element.
6. Write output. Write projects/<ProjectName>/<phase>/<document>/acceptance_criteria.md with each story's criteria grouped under its US-XXX identifier, including cross-references back to the originating story and epic.
The generated acceptance_criteria.md shall follow this structure:
# Acceptance Criteria: [Project Name]
**Generated:** [Date]
**Source:** user_stories.md
**Standard:** IEEE 29148-2018 Sec 6.4.5, Gherkin/BDD Format
---
## US-001: [Story Title]
**Epic:** [Epic Name]
**Story:** As a [role], I want to [action], So that [value]
### Functional Criteria
- [ ] **AC-001.1:** Given [precondition], When [action], Then [expected result]
- Must not: [prohibited side effect, when applicable]
- [ ] **AC-001.2:** Given [error condition], When [action], Then [error handling result]
- Must not: [prohibited side effect, when applicable]
- [ ] **AC-001.3:** Given [boundary condition], When [action], Then [boundary result]
- Must not: [prohibited side effect, when applicable]
### NFR Criteria (if applicable)
- [ ] **AC-001.NFR-1:** Given [load condition], When [action], Then [measurable threshold]
---
## US-002: [Story Title]
[... repeat per story ...]
---
## Summary
| Metric | Value |
|--------|-------|
| Stories Processed | N |
| Total Criteria Generated | N |
| NFR Criteria | N |
| Failures Flagged ([AC-FAIL]) | N |
Before finalizing the output:
user_stories.md has a corresponding criteria section in acceptance_criteria.md[AC-FAIL] and include remediation notes01-user-story-generation -- provides user_stories.md05-testing-documentation/ -- acceptance criteria become test cases; 03-story-mapping -- maps criteria coverage across the backlogThis skill implements:
logic.prompt -- Direct AI execution instructions for this skillREADME.md -- Objective summary and quick-start guideLast Updated: 2026-02-28 Skill Version: 1.0.0
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job