← ClaudeAtlas

testbook-generatelisted

Generate the atomic Gherkin test book from prioritized test conditions - stable scenario IDs, coverage matrix, negative-ratio check, confidence marking - or regenerate by scenario-level diff when the US evolved, preserving human edits. Use when asked to write test cases or scenarios from a specification, to produce a test book or feature files, or to refresh an existing one after the requirement changed without losing hand-written edits. Sixth step of the QAIA journey.
QAIA-Project/QAIA · ★ 0 · Testing & QA · score 64
Install: claude install-skill QAIA-Project/QAIA
# testbook-generate — the test book Follow the shared contract in `../README.md`. Prerequisites: `03-design.md` and `04-priorities.md` (else offer the missing step). Output directory: `.qaia/testbooks/<US-ID>/`. ## Generation rules (non negotiable) - **Gherkin, English keywords — always, whatever the project language**: `Feature / Background / Scenario / Scenario Outline / Given / When / Then / And / But`. Only the **prose inside a step** follows the project language. A French project still writes `Scenario:`, never `Scénario:`. This clause is explicit because the previous wording was not: a model given this skill emitted `Scénario:` and `Etant donné`, producing an unparsable file, having read "project language" as covering the keywords too. The ambiguity was ours. - **Atomic** — one scenario verifies exactly one behavior. No UI-step chains covering several cases. **Exactly one `When` (the action) per scenario; outcomes live only in `Then`** — never bury the action in a `Given` or the outcome in the `When`. `Background` is for shared *state* setup only. `Scenario Outline` + `Examples` covers partitions or boundaries of the *same* behavior, **merged only when all example rows share the same priority and confidence** — otherwise split. - **Journey exception**: at most one end-to-end scenario per US (use-case technique), tagged `@smoke`, single journey-level `Then`, excluded from atomicity accounting — see `istqb-design`. - **Preconditions are declarat