202 Spec Design
What this skill is for
Section titled “What this skill is for”202-spec-design writes Gherkin scenarios for a feature. It captures what the system should do in user-visible terms, supports multiple coverage levels (Happy Path Only, Balanced, Comprehensive), and continues existing numbering when a spec file already exists.
Output path: .specflow/features/<fid>-<feature-slug>/specs.feature
When to use it
Section titled “When to use it”- After
201-high-level-design, when behavior needs to be written before code - When you want the feature to be reviewable in user terms before implementation
- When you need a shared testable description of the expected behavior
- When adding coverage to an existing spec file
When NOT to use it
Section titled “When NOT to use it”- Before
201— scenarios without an agreed scope boundary tend to expand in ways that complicate implementation - For a change so small that a plain description in the commit message is sufficient
- When
301will synthesize the spec in memory and you do not want a persisted file
What it produces
Section titled “What it produces”.specflow/features/<fid>-<feature-slug>/specs.featurewith:- Numbered
TS#scenarios (e.g.,TS001,TS002) - Grouped into
TSM#test modules by logical area - Lifecycle tags (
@status_pending) - Path tags (
@happyPath,@errorPath,@edgePath)
- Numbered
Coverage levels
Section titled “Coverage levels”| Level | What it includes |
|---|---|
| Happy Path Only | Primary success flows only — fastest first pass |
| Balanced | Happy paths plus meaningful error and edge cases |
| Comprehensive | Full scenario coverage including less common paths |
Start with Happy Path Only for a fast first pass. Add more coverage in a second pass when the scope is confirmed.
Required inputs
Section titled “Required inputs”- Feature name or existing feature artifact path
- Coverage level: Happy Path Only, Balanced, or Comprehensive
When the feature already has a 201 artifact, 202 should reuse the same .specflow/features/<fid>-<feature-slug>/ folder.
Common prompts
Section titled “Common prompts”Use 202-spec-design for account recovery with happy path coverage only. Use 202-spec-design for invoice approval with balanced coverage. Add comprehensive coverage to the existing invoice approval spec. What usually comes next
Section titled “What usually comes next”203-implementation-design is the optional next step when you want a persisted implementation plan. 204-feature-validation can then review all artifacts together before coding. Otherwise, go directly to 301-spec-implementation.
Practical guidance
Section titled “Practical guidance”- Keep steps user-observable. Avoid implementation details in scenario text.
- Extend an existing scenario when the extra coverage belongs to the same business outcome, instead of creating a near-duplicate.
- The goal is not maximum scenario count — the goal is enough coverage to guide implementation and review without creating noise.
- When updating an existing spec file, continue the existing
TS#numbering rather than restarting.
Common mistakes
Section titled “Common mistakes”- Treating scenarios like unit tests instead of user-observable business outcomes
- Writing every tiny UI action as a separate scenario
- Asking
202to invent a new feature definition that should have been resolved in201 - Treating
202as append-only when an existing scenario should just be extended