with one click
plan-acceptance
Acceptance criteria extraction, spec traceability per task
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Acceptance criteria extraction, spec traceability per task
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Test failure diagnosis, source code fixes, and regression detection
Environment verification, dependency installation, baseline test verification
Contract-first single-task implementation dispatched by Coder Coordinator
Integration test writing for component boundaries and external dependencies
Unit test writing and execution with coverage threshold enforcement
API reference documentation skill. Produces and updates API endpoint documentation from contract files in .sdd/docs/api-reference.md.
| name | plan-acceptance |
| description | Acceptance criteria extraction, spec traceability per task |
| argument-hint | Invoked by Planner Coordinator - do not call directly |
Phase: 1 (Acceptance) Common contract:
.github/skills/PLAN-SKILL-CONTRACT.mdSpec refs: FR-033, FR-034, FR-035, FR-036
This skill is dispatched by the Planner Coordinator during Phase 1, after plan-decomposition has created the WP file skeletons. It populates acceptance criteria, implementation guidance, test requirements, and ensures full FR traceability.
| # | Input | Description |
|---|---|---|
| 1 | skill_path | Path to this SKILL.md file |
| 2 | plan_dir | Path to .sdd/plans/ directory |
| 3 | contracts_dir | Path to .sdd/plans/contracts/ directory |
| 4 | spec_path | Path to the source spec file |
| 5 | spec_artifacts_dir | Path to spec companion artifacts |
| 6 | research_summary | Key findings from the research phase |
| 7 | target_language | Programming language for contract generation |
| 8 | patterns | Active plan-domain patterns to avoid |
| 9 | phase | Phase indicator (always 1 for this skill) |
spec_path for SHALL obligations, BDD scenarios, and implementation details. Read multiple independent files in parallel via concurrent tool calls.plan_dir (using [CONSISTENCY FIX] marker per FR-027)Create a complete inventory of all spec FRs:
Validation: Every FR MUST be assigned to exactly one task. If an FR has no task, it is a gap. If multiple tasks claim the same FR, resolve the overlap.
For each task in each WP file, replace the acceptance criteria placeholder with concrete, verifiable criteria:
For each FR referenced by the task:
Format:
- **Acceptance criteria**:
- [ ] <Exact SHALL statement from FR-XXX>
- [ ] <Exact SHALL statement from FR-XXX>
- [ ] <Acceptance scenario: Given/When/Then from spec>
- [ ] <Edge case or error path from spec>
For each task that has corresponding BDD scenarios in the spec's test strategy section:
For each task:
For each task, check the referenced FRs for deep business logic that must become acceptance criteria:
[ ] System enforces invariant: <invariant statement>[ ] <field> is computed as <formula>[ ] <event_name> event is emitted on successful <operation>[ ] System rejects <action> within <duration> of previous <action>Business logic criteria prevent the Coder from implementing only the "shell" of a feature while missing the domain rules that make it correct.
For each task, replace the implementation guidance placeholder with actionable developer guidance:
- **Implementation Guidance**:
- Official docs: <URL or reference for the primary library/API used>
- Patterns: <Specific design pattern or approach from the spec/architecture>
- Known pitfalls: <Common mistakes or gotchas for this feature area>
- Files to create/modify: <Specific paths based on the spec's directory structure>
- Error handling: <Exact error codes and expected failure behaviors from spec>
- Spec validation rules: <Copy relevant validation constraints from spec Section 7 Data Model>
- Business rules: <Invariants, decision logic, and computed values from the FRs that this task must enforce>
- Side effects: <Events, notifications, or cache operations triggered by this task's operations>
Source the guidance from:
For each task, set the Test requirements field based on spec analysis:
| FR type | Default test type |
|---|---|
| Business logic, domain rules | unit |
| Cross-module interaction | integration |
| User story acceptance scenarios | BDD |
| Full workflow, deployment verification | E2E |
| Pure scaffolding, config-only | none |
BDD/TDD mandate (FR-035):
Perform a complete traceability check:
If gaps are found:
[GAP] -- the coordinator will decide whether to add a task or escalate[UNTRACED] -- may indicate scope creep; the coordinator should remove it or trace itOutput the traceability summary in each WP file:
## FR Traceability
| FR | Task | Status |
|----|------|--------|
| FR-001 | T01-01 | Covered |
| FR-002 | T01-02 | Covered |
| ... | ... | ... |
Update <plan_dir>/README.md with:
If README was created by plan-decomposition, update the existing sections. Append if sections do not exist.
[CONSISTENCY FIX] marker per FR-027plan_dir