/skraft:acceptance-review-criteriafrom skraft
Reviews DISTILL artefacts (Gherkin scenarios, test plans, implementation plans) for quality, completeness, and alignment using formal gate definitions and a scoring rubric across four lenses.
Ships in skraft. 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.
Formal gate definitions and verdict rubric for the acceptance-designer-reviewer. Applied across 4 lenses (coverage, business-alignment, testability, boundary-enforcement).
| Gate | ID | Definition | Pass condition | Fail severity |
|---|---|---|---|---|
| AC–Scenario bijection | G1 | Every AC in ac-draft-{story}.md maps to ≥1 scenario. No scenario exists without a traceable AC. | All ACs covered, no orphan scenarios. | BLOCKER |
| Edge case representation | G2 | Boundary conditions and negative cases from the domain examples in the story are represented as scenarios. | ≥1 edge case or boundary condition scenario per business rule. | HIGH |
Checking G1:
ac-draft-{story}.md*.feature| Gate | ID | Definition | Pass condition | Fail severity |
|---|---|---|---|---|
| Business vocabulary | G3 | All nouns, verbs, and adjectives in Given/When/Then steps appear in the domain vocabulary of the stories or the business lexicon. No class names, method names, HTTP verbs, or framework names. | Zero technical identifiers in .feature files. | HIGH |
| No technical jargon | G4 | Given/When/Then steps contain zero implementation details: no HTTP status codes, no ORM terms, no database language, no DI container references. | Zero implementation leaks. | BLOCKER |
G4 red flags (auto-fail):
POST, GET, HTTP 200, HTTP 422Repository, Service, Handler, Controller, UseCasenull, true, false as business values (unless they are genuine domain terms)| Gate | ID | Definition | Pass condition | Fail severity |
|---|---|---|---|---|
| Step unambiguity | G5 | Every step can be implemented without asking the designer for clarification. The step's meaning is unambiguous within the domain vocabulary. | Every step maps uniquely to a domain action or state. | HIGH |
| Implementation plan completeness | G6 | Every scenario listed in the .feature files has a corresponding entry in impl-plan-{story}.md with a file path and a use case boundary. | Bijection feature scenarios ↔ impl-plan entries. | HIGH |
| Inner-loop boundary presence | G11 | For every use case named in the coverage matrix that is NEW to this story (not reused from a prior story), the outer acceptance test enters at the Application layer (<Context>.UnitTest, per clean-architecture-testing) — not solely via an Integration/HTTP test — and an Application/UseCase-level test file for it physically exists in the repo, referenced from impl-plan-{story}.md. | Every NEW use case has a real <Context>.UnitTest acceptance test file on disk; no NEW use case is covered only by <Context>.IntegrationTest. | BLOCKER |
Checking G5: For each step, ask "could two engineers implement this differently and both be correct?" If yes, the step is ambiguous.
Checking G11:
search/codebase) for a test file matching it under tests/**/*.UnitTest/**.tests/**/*.IntegrationTest/** → BLOCKER: the outer loop skipped the Application-layer inner circle (outside-in-tdd Concentric Circle Expansion Phase 1) and jumped straight to the API/Infrastructure circle.| Gate | ID | Definition | Pass condition | Fail severity |
|---|---|---|---|---|
| Layer boundary compliance | G7 | Each row in the coverage matrix targets an Application layer use case named in contracts-{story}.md. No scenario targets an Infrastructure adapter directly as its primary entry point. | All coverage matrix entries reference a use case boundary from the contracts. | BLOCKER |
| Walking skeleton coverage | G8 | At least one walking skeleton scenario per major feature flow is identified in the test plan (tagged @smoke or marked Walking Skeleton in the matrix). | ≥1 walking skeleton entry per feature flow. | HIGH |
| Visual AC evidence | G9 | Every @visual scenario has ≥1 Playwright E2E spec in tests/e2e/ per impl-plan-{story}.md. jsdom/unit entry invalid. | Bijection @visual scenarios ↔ Playwright E2E spec entries. | HIGH |
| Comparable contract consistency | G10 | When impl-plan-{story}.md plans a component (hook/adapter/client) that is comparable to one already implemented for a similar responsibility in a prior story, its planned state/return/error convention matches the existing component's, unless the plan notes an explicit, justified divergence. | Every comparable pair of planned components shares its convention, or the divergence is explicitly noted and justified in the impl-plan. | HIGH |
Checking G9:
@visual in the .feature filestests/e2e/ spec entries in impl-plan-{story}.md@visual scenario maps to ≥1 E2E spec performing a real measurement (boundingBox(), computed colour/style)@visual scenario whose only planned coverage is a unit/jsdom testChecking G10:
impl-plan-{story}.md and the interface it wraps.impl-plan-*.md files (other stories in the same or prior milestones) for a consumer wrapping a comparable interface (same shape class: list query, single-item query, command with optimistic update, ...).impl-plan-{story}.md names it and states either "same convention as {prior}" or cites the contracts-{story}.md divergence note.| Severity | Definition | Impact |
|---|---|---|
| BLOCKER | Fundamental correctness violation. The artefact cannot be used by DELIVER as-is. | Always triggers rejected verdict. |
| HIGH | Significant quality gap. Increases implementation risk or causes rework in DELIVER. | Triggers changes_requested unless no other severity exists. |
| MEDIUM | Quality improvement. Can be implemented but suboptimal. | Triggers changes_requested. |
| LOW | Style or consistency issue. Does not affect DELIVER. | approved with recommendation. |
| Condition | Verdict |
|---|---|
| ≥1 BLOCKER in ANY lens | rejected |
| ≥1 HIGH, 0 BLOCKER (across ALL lenses) | changes_requested |
| MEDIUM only (across ALL lenses) | changes_requested |
| LOW only, or all lenses pass | approved |
Confidence:
high — all artefacts present, clear findings, no ambiguitymedium — some artefacts missing, or findings require interpretationlow — critical artefacts missing, review is incompleteWhen 3 lenses pass and 1 fails:
dissentchanges_requested or rejected.approved with recommendation.Example dissent entry:
dissent: "business-alignment-lens flagged 'driver ID' in step text (G3 HIGH).
Overridden: 'driver ID' is a genuine domain term used consistently in the story
vocabulary. Not a technical identifier. Verdict remains approved."
| Score | Meaning |
|---|---|
pass | All gates in this lens pass. No findings. |
fail | ≥1 gate in this lens has a finding. |
Each finding includes:
gate — G1 through G11severity — BLOCKER / HIGH / MEDIUM / LOWfinding — plain-language description of the problemlocation — file path and line/scenario referencesuggestion — (optional) how to fix itWhat SKILL.md sets; muted values are Claude Code's defaults
44 skills in this plugin
/adr-eligibility-gateUse when deciding WHETHER a candidate architectural choice deserves an architecture decision record, before any record is drafted: a story enters DESIGN with a list of candidate choices, a reviewer flags ADR inflation, or someone asks "should I write an ADR for X?", "how many ADRs does this story need?", "is this ADR-worthy?", "this feels like too many ADRs", "disambiguate baseline from decision". Runs a baseline-vs-decision gate over each candidate and returns ELIGIBLE or NOT ELIGIBLE with the baseline, convention or architecture test that already covers it. Do NOT use when the decision is already settled and the user asks for the record to be written, when the request is about the ADR template, status transitions, superseding or lifecycle, or when the question is which pattern to adopt — those belong to architecture-decisions and architecture-patterns.
/adversarial-review-lensesUse when reviewing a phase artifact — a discovery brief, a plan, a design, an acceptance specification, or a slice reported as delivered — and the review has to end in a defensible pass-or-block verdict rather than a list of remarks. Covers judging whether the artifact covers everything that fed into it, whether it matches the business intent, whether it holds together internally, and what it puts at risk downstream, then weighing those into a single call. Not for routine code review of an ordinary change.npx claudepluginhub sebastiendegodez/skraft-plugin --plugin skraftOther plugins' skills for the same job