/qa-process:test-case-ideation-from-storyfrom qa-process
Transforms user stories, tickets, or specs into a structured markdown test case matrix covering happy, alternate, boundary, and negative paths. Useful for QA breakdown before automation or test management tool import.
Ships in qa-process. 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.
A user story is not a test plan. The "three amigos" hand-off from product to QA needs an intermediate artifact: a human-reviewable test-case matrix that enumerates the cases the story implies, before anyone writes Gherkin or test code. This skill produces that matrix.
The matrix is what manual testers paste into TestRail / Qase / Xray. It is also the contract that the downstream automation engineer reads when picking up the story - gherkin-from-stories (in qa-bdd) needs a stable AC layer, and the AC layer is derived from this matrix, not the other way around.
The PractiTest 2026 State of Testing Report finds 70% of teams already use AI for test-case creation but only 40.7% report achieving "more diverse and complex test cases" (https://www.practitest.com/state-of-testing/) - the dominant failure mode is shallow output (one happy path × three trivial restatements). This skill exists to constrain the output shape so that the matrix is forced through equivalence-partitioning, boundary, and negative-path lenses.
Do not use this skill when:
gherkin-from-stories or manual-test-script-author.Read the user story (and any attached AC, mockups, or rejection notes) and extract:
If any of (1) - (5) is missing from the story, stop and request clarification. A matrix derived from incomplete input will mask the gap rather than surface it. ISTQB's test analysis step is explicit that test conditions must trace to identified test bases; an unclear story is not a test basis.
For each (action, object) pair, generate cases by walking three lenses (equivalence partitioning, boundary value analysis, decision table testing):
For each input parameter, identify the valid and invalid equivalence classes. One representative case per class.
| If parameter is… | Valid classes | Invalid classes |
|---|---|---|
| String with format constraint (email, URL, phone) | Conformant | Empty / wrong format / null / oversized |
| Numeric with range | Min ≤ x ≤ max | x < min, x > max, NaN, negative, zero (if not in range) |
| Enum | Each documented value | Undocumented value, mixed case |
| Reference (foreign key, file path) | Existing | Missing, deleted, belongs-to-other-tenant |
For numeric / length-bounded parameters, add cases at min, min-1, max, max+1. Skip if the parameter is unbounded (free-text comment, etc.).
If the story implies decision logic (role-based access, plan tier, feature flag, A/B variant), add one case per condition combination. Use a decision table to be exhaustive; collapse rows that have the same outcome.
Output is a markdown table. Required columns:
| Field | Notes |
|---|---|
| ID | <story-key>-TC-<n>, e.g. CART-142-TC-03. Stable across iterations. |
| Title | Imperative single sentence: "Adds a product to the cart as an anonymous user". No "should". |
| Tier | smoke / regression / edge / negative. Tier rationale belongs in the next column. |
| Precondition | One sentence; references fixtures by name where possible. |
| Steps | Numbered. Declarative (per Cucumber better-gherkin guidance) - describe behavior, not UI mechanics. |
| Expected | One sentence per observable post-condition. |
| Source claim | Which sentence in the story / AC this case traces to. Forces traceability. |
Story: "As an anonymous shopper, I want to add a product to my cart, so that I can check out without signing in first."
| ID | Title | Tier | Precondition | Steps | Expected | Source claim |
|---|---|---|---|---|---|---|
| CART-142-TC-01 | Adds an in-stock product to an empty cart | smoke | Anonymous session; product SKU-001 in stock | 1. Open product page for SKU-001. 2. Add to cart with default qty. | Cart count = 1; product line shows SKU-001. | Story sentence 1 |
| CART-142-TC-02 | Adds a second product to a cart that already has one | regression | Anonymous session; cart already contains SKU-001 | 1. Open product page for SKU-002. 2. Add to cart. | Cart count = 2; both SKUs present. | Implied by "add" semantics |
| CART-142-TC-03 | Rejects adding an out-of-stock product | negative | Anonymous session; SKU-099 is out of stock | 1. Open product page for SKU-099. 2. Attempt to add to cart. | Add-to-cart control disabled or 409 returned. Cart count unchanged. | Story constraint (implicit) |
| CART-142-TC-04 | Rejects adding when cart is at the per-session limit | boundary | Anonymous session; cart has the maximum number of items per the documented MAX_CART_ITEMS | 1. Open any product page. 2. Attempt to add to cart. | 409 / cart-full message. Cart count unchanged. | Constraint: MAX_CART_ITEMS |
| CART-142-TC-05 | Persists cart across page refresh | regression | Anonymous session; cart has 1 item | 1. Refresh the page. | Cart still shows the same item. | Implied by "without signing in" |
The matrix is the authoring artifact. The next steps in the workflow are:
gherkin-from-stories (in qa-bdd) which converts the rows the team wants to automate into Gherkin scenarios.The matrix is plain markdown. Common integrations:
ID → TestRail ID, Tier → Section, the rest to standard fields.cases/bulk endpoint or the Qase CLI; the markdown table maps row-by-row.docs/test-cases/<story-key>.md for review alongside the implementation PR.| Anti-pattern | Why it fails | Fix |
|---|---|---|
| One row per UI step ("user clicks button", "user types email") | Matrix becomes a script, not a case list. ISTQB calls these procedures, not cases. | One row per case; UI mechanics live in manual-test-script-author (in qa-manual-testing). |
| Five rows that all assert the same happy-path outcome with cosmetic variation | Same equivalence class repeated; doesn't add coverage. | One row per equivalence class (Step 2 Lens 1). |
| No negative cases at all | This is the PractiTest 2026 "test factory" failure mode. | Mandate at least one negative-tier row per story unless the story has no error contract. |
| Source-claim column blank or "Story" | Blocks traceability; if the story changes, you can't tell which rows need re-review. | Cite the specific sentence / AC bullet. |
Cases that depend on implementation choices ("user clicks the React <AddToCartButton> component") | Implementation-coupled cases churn with refactors. | Declarative phrasing per Cucumber better-gherkin. |
| Matrix produced from a story missing actor / postconditions | The matrix masks the gap; downstream sees noise. | Step 1 explicitly halts on missing fields. |
model-based-test-graph-author (in qa-ai-assisted).gherkin-from-stories (BDD path), manual-test-script-author (manual execution path), or ai-test-generator (code generation path).gherkin-from-stories.manual-test-script-author.ai-test-generator. Always pair with a curation and shallow-coverage-review pass downstream.negative-test-generator.boundary-value-generator.evals/account-deletion-aftermath/criteria.json (opens in a new tab)evals/account-deletion-aftermath/task.md (opens in a new tab)evals/booking-window-boundaries/criteria.json (opens in a new tab)evals/booking-window-boundaries/task.md (opens in a new tab)evals/checkout-state-drift/criteria.json (opens in a new tab)evals/checkout-state-drift/task.md (opens in a new tab)evals/claim-upload-classes/criteria.json (opens in a new tab)evals/claim-upload-classes/task.md (opens in a new tab)evals/digest-email-thin-story/criteria.json (opens in a new tab)evals/digest-email-thin-story/task.md (opens in a new tab)evals/folder-share-recipient-classes/criteria.json (opens in a new tab)evals/folder-share-recipient-classes/task.md (opens in a new tab)evals/invoice-locale-classes/criteria.json (opens in a new tab)evals/invoice-locale-classes/task.md (opens in a new tab)evals/onboarding-script-to-cases/criteria.json (opens in a new tab)evals/onboarding-script-to-cases/task.md (opens in a new tab)evals/refund-approval-combinations/criteria.json (opens in a new tab)evals/refund-approval-combinations/task.md (opens in a new tab)evals/search-ac-churn-traceability/criteria.json (opens in a new tab)evals/search-ac-churn-traceability/task.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/attack-surface-test-checklistUse when a pull request, release branch or feature is about to be security tested and needs a targeted test list. Maps the changed code to nine attack surfaces and attaches OWASP ASVS 4.0.3 requirements, Top 10 2021 IDs and WSTG sections, only for surfaces the change touches./definition-of-doneUse for any question or task about a Definition of Done, including what one should include, checking a PR or story against it, and stories marked done that bounce back from QA. Drafts a starter DoD and a per-PR checklist, and audits work line by line against an existing DoD with repository evidence, never on self-attestation./npx claudepluginhub testland/qa --plugin qa-processOther plugins' skills for the same job