/skraft-backlog:planning-review-criteriafrom skraft-backlog
Reviews DISCUSS artefacts (stories, acceptance criteria, sprint plans) against INVEST quality, planning coherence, and Definition of Readiness compliance using 8 formal gates (G1-G8).
Ships in skraft-backlog. 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 review gate of backlog-planner. Applied across 4 lenses (invest, ac-quality, planning-coherence, dor-compliance) covering 8 gates (G1–G8).
A story that passes all 8 gates is approved to enter DESIGN. A story with any blocking finding is rejected and must return to DISCUSS.
The script of backlog-review-lenses takes phase discuss for a sprint of stories, and phase
refine for the proposal on one issue (no coherence lens: there is no sprint to check). Each
lens sees only these inputs:
| Lens agent | Inputs (discuss) | Inputs (refine) | Gates |
|---|---|---|---|
planning-invest-lens | stories file only | proposal + issue text | G1, G2 |
planning-ac-quality-lens | AC drafts only — never the stories file | the proposal's acceptance criteria only | G3, G4 |
planning-coherence-lens | sprint plan section + AC drafts | — | G5, G6 |
planning-dor-lens | stories file + AC drafts | proposal + issue text | G7, G8 |
Each G7 defect names its story in story (in refine, the issue number): two G7 defects on
one story make the verdict REJECTED.
The synthesis in backlog-review-lenses is computed per question, not per lens. This
mapping is declared here rather than derived at review time, because a mapping re-invented on
each pass is a mapping that drifts.
Four lenses and four questions here, but the correspondence is not positional — read it:
| Question | Answered by | Through |
|---|---|---|
| Completeness | dor-compliance lens | G7 — a story missing DoR items is a story DESIGN would have to guess at |
| Business Fit | ac-quality lens | G3, G4 — a criterion naming a Repository has stopped describing the business |
| Quality | invest lens | G1, G2 — INVEST is whether the story holds together as a unit of work |
| Risk | planning-coherence lens | G5, G6 — a cycle or a story spanning sprints is a delivery that fails downstream |
In refine there is no coherence lens: the invest lens answers Risk through G2.
G8 (antipatterns) is checked by the dor-compliance lens but scores against Business Fit: Implement-X and Vague Persona are failures of business expression, not of readiness paperwork.
| Gate | ID | Definition | Pass condition | Severity |
|---|---|---|---|---|
| INVEST compliance | G1 | Each story satisfies all 6 INVEST criteria (Independent, Negotiable, Valuable, Estimable, Small, Testable). | All criteria pass for every story. Any failing criterion is flagged by name. | HIGH |
| Sprint independence | G2 | All stories are independently deliverable. No circular dependencies exist in the sprint. | Dependency graph is a valid DAG. No story waits for a non-existent story. | HIGH |
Checking G1: For each story, verify each INVEST criterion individually. A single failing criterion = G1 fail for that story. Document which criterion and why.
Checking G2: Build an adjacency list from Dependencies fields. Run DFS. Any back-edge = cycle = G2 violation. Report the cycle path.
| Gate | ID | Definition | Pass condition | Severity |
|---|---|---|---|---|
| AC completeness | G3 | Every story has ≥3 ACs. Each AC is in Given/When/Then or bullet-list format. Zero ACs are implementation steps. | 3+ ACs per story, correct format, no implementation prescriptions. | HIGH |
| AC unambiguity | G4 | No AC has two valid interpretations by a domain expert with no code knowledge. | Every AC resolves to a single unambiguous outcome. | BLOCKER |
G3 check steps:
G4 red flags (auto-fail):
200, 201, 422, 404, 500POST, GET, PUT, DELETEEligibilityService, .Check(), DriverRepositoryController, Handler, UseCase, DI container| Gate | ID | Definition | Pass condition | Severity |
|---|---|---|---|---|
| Milestone scope | G5 | Stories fit the milestone theme. No story spans multiple sprint themes without decomposition. | Every story aligns with the milestone's stated theme and time-box. | HIGH |
| Dependency DAG | G6 | No circular dependencies. Delivery sequence respects topological order. | Dependency graph is a DAG. Sequencing is derivable without ambiguity. | BLOCKER |
G5 check: For each story, ask: does this story's outcome belong in the milestone theme? If a story touches a different user journey segment than the milestone theme (e.g., a payment story in the v0.2-eligibility milestone), flag G5.
G6 cycle detection: Build adjacency list. DFS. Any back-edge = BLOCKER. Report the exact cycle: Story-A → Story-B → Story-C → Story-A.
| Gate | ID | Definition | Pass condition | Severity |
|---|---|---|---|---|
| DoR 8-item gate | G7 | Every story passes ALL 8 DoR items: problem statement, specific persona, 3+ domain examples, UAT scenarios, AC derived from UAT, right-sized, technical notes, dependencies. | 8/8 items pass for every story. | BLOCKER |
| Antipattern absence | G8 | Zero CRITICAL antipatterns (Implement-X, Giant Stories, No Examples). Zero HIGH antipatterns (Technical AC, Generic Data, Tests After Code, Vague Persona, Missing Dependencies). | No CRITICAL antipatterns detected. No HIGH antipatterns detected. | BLOCKER (CRITICAL); HIGH (HIGH severity antipatterns) |
G7 minimum verdict impact: If 2+ DoR items fail on the same story → that story's verdict is REJECTED regardless of other findings.
G8 auto-reject triggers:
For each of the 6 INVEST criteria, this rubric defines what a passing story looks like.
| Criterion | Pass condition | Fail conditions | Failure severity | Remediation |
|---|---|---|---|---|
| Independent | Story has no unresolved implicit prerequisites. Any dependency is explicit and listed. | Story references another story's output without listing it as a dependency. Story uses "continuing from..." | HIGH | List dependency explicitly, or split to make story self-contained |
| Negotiable | Story describes observable user behaviour. No implementation technology prescribed. | Story contains class/method names, HTTP contracts, framework prescriptions in the story body (not Technical Notes). | HIGH | Move implementation constraints to Technical Notes |
| Valuable | Delivery of this story alone creates a user-visible or business-visible outcome. | Story describes developer work only (refactoring, test coverage, migrations) with no user-visible outcome. | HIGH | Wrap technical work in user-visible consequence, or remove from DISCUSS |
| Estimable | Team can size the story in ≤5 minutes with high confidence. ACs and Technical Notes are present. | Story has no ACs. Story has major unknowns with no Technical Notes. Team disagrees on scope boundaries. | HIGH | Write ACs first; add spike story for unknowns; clarify scope |
| Small | Effort is XS, S, or M. L is acceptable with tight ACs. XL is always a failure. | Effort estimate is XL. Story has 6+ ACs. Story touches 3+ distinct user actions. | HIGH (L with loose scope); BLOCKER (XL) | Apply splitting pattern. XL must be split before DoR can be claimed. |
| Testable | At least 3 ACs in G/W/T or bullet format derived from domain examples. | No ACs written. ACs describe code quality, not user outcomes. AC says "works correctly". | HIGH | Add domain examples first; derive ACs from each example |
Apply to every AC in every ac-draft-{story}.md file:
| Rule | Description |
|---|---|
| One trigger per AC | A Given/When/Then AC has exactly ONE When step. Multiple Whens = multiple ACs. |
| Observable outcome | The Then step describes what the USER sees or experiences, never what happens inside the system. |
| Domain vocabulary only | Every noun and verb in a G/W/T step must be understandable by a domain expert with no code knowledge. |
| Independent testability | Each AC is independently verifiable. Two ACs do not test the same scenario. |
| Traceability | Each AC traces to a domain example or UAT scenario. ACs without a source are fabrications. |
| Measurable conditions | Quantitative ACs include thresholds: "within 2 seconds", "at least 3 attempts", not "quickly" or "several". |
| DoR Item | Minimum severity if missing | Minimum verdict if missing |
|---|---|---|
| 1. Problem statement (Implement-X detected) | BLOCKER | REJECTED |
| 2. Specific persona (Vague Persona detected) | HIGH | NEEDS_REWORK |
| 3. 3+ domain examples (0 examples) | BLOCKER | REJECTED |
| 3. 3+ domain examples (1-2 examples) | HIGH | NEEDS_REWORK |
| 4. UAT scenarios | HIGH | NEEDS_REWORK |
| 5. AC derived from UAT | HIGH | NEEDS_REWORK |
| 6. Right-sized (XL estimate) | BLOCKER (XL) / HIGH (L loose) | REJECTED (XL) / NEEDS_REWORK (L) |
| 7. Technical notes | HIGH if integration exists | NEEDS_REWORK |
| 8. Dependencies (undeclared dependency found) | HIGH | NEEDS_REWORK |
G7 aggregate rule: If a story has 2+ missing DoR items of any severity → minimum verdict is REJECTED.
| Antipattern | ID | Severity | Lens | Minimum verdict impact |
|---|---|---|---|---|
| Implement-X | AP-DISCUSS-01 | CRITICAL | dor-compliance | REJECTED |
| No Examples | AP-DISCUSS-05 | CRITICAL | dor-compliance | REJECTED |
| Giant Stories | AP-DISCUSS-04 | CRITICAL | invest | REJECTED |
| Technical AC | AP-DISCUSS-03 | HIGH | ac-quality | NEEDS_REWORK |
| Generic Data | AP-DISCUSS-02 | HIGH | dor-compliance | NEEDS_REWORK |
| Tests After Code | AP-DISCUSS-06 | HIGH | ac-quality | NEEDS_REWORK |
| Vague Persona | AP-DISCUSS-07 | HIGH | dor-compliance | NEEDS_REWORK |
| Missing Dependencies | AP-DISCUSS-08 | HIGH | planning-coherence | NEEDS_REWORK |
Patterns in sprint plans that signal a failing review, independent of individual story quality:
| Red flag | Impact | Minimum verdict |
|---|---|---|
| All stories are Must Have with no Should/Could Haves | Sprint has no flexibility to cut when overloaded | NEEDS_REWORK (G5) |
| Total story-days > sustainable capacity | Sprint is overloaded; engineers will cut corners | NEEDS_REWORK (G5) |
| Two or more XL stories in the same sprint | At least one XL was not split before planning | REJECTED (G1 — Not Small) |
| Circular dependency in sprint | Sprint cannot be delivered in topological order | REJECTED (G6 — BLOCKER) |
| A story depends on a story not in the sprint with no "already done" confirmation | Story B may start before Story A ships | NEEDS_REWORK (G2) |
| Condition | Verdict |
|---|---|
| ≥1 BLOCKER finding across any lens | REJECTED |
| ≥1 HIGH finding, 0 BLOCKER | NEEDS_REWORK |
| MEDIUM findings only | NEEDS_REWORK |
| LOW findings only | APPROVED with recommendations |
| No findings | APPROVED |
Confidence levels:
high: All required artefacts present; all lenses fully appliedmedium: Context artefacts (triage report) missing; some inferences madelow: Required artefacts partially missing; lenses applied on incomplete dataWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sebastiendegodez/skraft-plugin --plugin skraft-backlog8 skills in this plugin
/backlog-review-lensesUse when a triage report, a sprint proposal, refined stories or a refinement proposal for one issue must pass an independent review before it is handed on: dispatching each review lens with only its own inputs, collecting their results and turning them into a verdict with the bundled script. Not for reviewing code, designs or acceptance tests./discovery-review-criteriaUse when reviewing DISCOVER artefacts (triage reports, sprint proposals) for completeness, prioritization quality, and duplicate handling. Contains gate definitions G1-G6 and scoring rubric for the lenses of the backlog-discoverer review gate./github-issue-searchUse when finding GitHub issues to work on, exploring a backlog by labels, milestones or assignees, finding issues related to changed files, or writing a triage label or a refinement comment on an existing issue. Covers issue discovery queries, pagination and ranking, and the write route for each host: safe outputs in a GitHub Agentic Workflows run, MCP, or gh. Not for publishing pipeline reports or PR comments./issue-refinementUse when transforming raw issues or feature requests into well-structured user stories with acceptance criteria. Covers user story format, INVEST criteria, acceptance criteria patterns, story splitting techniques, DoR 8-item gate, and 8 antipatterns to detect./issue-triageUse when triaging GitHub issues by assigning labels, priority, effort estimates, or detecting duplicates. Covers triage methodology, label taxonomy, priority frameworks, effort sizing, and sprint proposal construction./refinement-proposalUse when reviewing one GitHub issue and proposing its refinement as a comment: Definition of Ready check, Fibonacci size and capacity estimate, ready or needs-refinement verdict, a proposed story with domain examples and acceptance criteria, what is vague or non-compliant in the current criteria, checked against a PRD or BRD under docs/ when the issue links one. Runs from the /skraft-refine command or a GitHub Agentic Workflow. Not for refining a whole sprint or triaging a backlog.Other plugins' skills for the same job