/qa-skills:qa-write-test-casesfrom qa-skills
Generate checklists and manual test cases in TestRail format (`*.test.md`) from Jira tickets, Confluence pages, Figma designs, the live app, or the user prompt alone. Use this skill whenever the user asks to create or write test cases, test scenarios, test plans, checklists (high-level test cases), or QA documentation, for a ticket, a page, a design, a feature, or TestRail.
Ships in qa-skills. 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.
Generates test cases and checklists for software testing from the context the user provides.
References:
When to skip steps:
refs:, and compare them with the story's existing cases. Step 6 still runs.Answers list cases already written → pull those cases fresh, change only what the answers settle, and skip Steps 2 to 4. Step 6 still runs.message-the-qc skill says.Review the checklist (Step 4) and the test cases (Step 6) yourself against Review Checklist. A fixer subagent applies the fixes. Do not show either to the user before its review ends.
Loop until a review finds nothing to fix:
fix findings, the paths of the files they name, the context file, and the Review Checklist. For the checklist, give it the checklist text, and it returns the fixed checklist. It applies only the listed findings.ask findings out of the fixes. Do not act on them.After the third fix, review once more and stop. Show the user only the ask findings and the fix findings still open, not the review or the fixes made. An ask on a fact no source gives, or on an open conflict, is the PO's: record it in the context file's open questions, keep its item ask, and count it instead of asking the QC.
Without subagents, apply the fixes yourself.
Run the gather-context skill for the feature. Its report goes into the checklist message header (Step 4).
Items follow the context file:
domain/ that the context file lists. Cite the rule's ID as its source.ask. A reversed acceptance criterion gets one ask item that checks what both sides keep.ask findings in the context file, as Context File describes.Use the scope the user named: a tier, a number ("around 10"), or a description ("only price and quantity validation, no layout"). Otherwise use ⚖️ Balanced. Do not ask.
| Tier | Covers |
|---|---|
| 🚀 Smoke | Critical path only |
| ⚖️ Balanced | Happy path, alternative flows, key negative and common edge cases |
| 🧨 Exhaustive | Full coverage incl. error states, boundaries, invalid input combinations, empty and default states, and UI/security/perf/i18n where relevant |
Estimate each tier's test count from your Step 1 analysis, never from generic ranges. The checklist message shows the other tiers' counts so the QC can switch. Context too thin to estimate → leave the counts out and say why.
Use the role or focus the user named, such as "security edge cases". Otherwise use ⚙️ default. Do not ask.
When Step 1 found existing cases for the feature and the scope is not smoke, the checklist message names the one role that would add the most beyond them, so the QC can switch to it.
| Role | Description |
|---|---|
| ⚙️ default | balanced approach |
| 🌈 optimist | positive flows, happy path |
| 🤓 nerd | details, dependencies, perfectionist |
| 🔪 psycho | edge cases |
| 🔐 pentest | security |
| 🎨 picasso | ui/ux |
| ⚖️ lawyer | texts, error messages, typos, etc. |
| 🌐 polyglot | localization, translations |
| 📈 performance | performance, slow pages, timeouts; one user's timing, not load |
| 🔧 other | specify your own role |
Create a hierarchical, categorized checklist from the gathered context.
Size it to the tier chosen in Step 2. The tier description lists the categories to cover.
Derive items with the Test Design Techniques that fit the feature, spending them by risk. Leave out what its "Not worth a test" section lists.
Item rules:
ask part (one item with a data table), causes a source groups under one rule, and checkpoints on one timeline.ask, and record the doubt as an open question in the context file.ask item keeps the priority of its impact. When pulled cases use other priority names, use those.[smoke] on the items of the critical path: the happy path of each main flow that one tester can run alone in one session. Smoke and critical items have no ask part; a doubtful check that shares their steps goes into its own item.ask item [ask: <the open question it waits on>], by the name the review or the context file gives that question: the QC sees why it waits.2, 2.3) so the user can refer to them. The numbers stay in the checklist, never in test files.Example:
- 1 LO buy order
- 1.1 🔴 [critical] [smoke] LO buy order at the reference price shows as pending in the order book
- 1.2 🟠 [high] LO buy order accepts only prices from floor to ceiling
- 1.3 🟡 [medium] Quantity not in lots of 100 shows an error
- 2 Cancel a pending order
- 2.1 🔴 [critical] [smoke] Pending order can be cancelled in the continuous session
- 2.2 🟠 [high] Pending order cannot be cancelled during ATC
- 2.3 🟠 [high] [ask: partially matched order] Cancel on a partially matched order
Run Self review on the checklist. Skip it when the user only removed or reworded items.
One message, in this order:
ask items waiting on the PO, and what the QC approves for them: each case checks only what any answer keeps, until the PO answers.❓ Write the test cases from this checklist?
1. ✅ Write the cases
2. ✏️ Type changes: item numbers to drop, items to add, another tier, role, or section
Destination, named in the checklist header: the section where Step 1 found the feature's cases, expanded; otherwise a new section named after the feature.
Write test case files to the ticket's folder (Ticket Folder).
Generation rules:
priority: to the item's priority, and smoke: yes when the item has [smoke].automation: on every test: yes when a script can read the expected result (a value, message, or state), even if the flow waits; no for layout, visual, and judgment checks.platform: on each suite when the product has several platforms. Use the option names the pulled cases use (Mobile, Web). Without pulled cases, use All for behavior every platform shares, else the platform the ticket names.<slug>.test.md after the folder's slug (always the .test.md extension).pull --section <section> --out <ticket folder> it, then add each new test to the pulled file of the subsection it fits. Never overwrite a pulled file.platform:, the project keeps one section tree per feature for all platforms. Add the new platform's tests to those subsections; do not create a section per platform.Format rules:
refs: to the Jira key on every test case that comes from a Jira issue. When the whole file covers one issue, set refs: once on the suite instead.testrail_id: or testrail_section_id: (the TestRail push writes them; keep existing ones when editing), and no custom IDs (TC-001) anywhere.Run Self review on the new test cases. Before each review, run check of the sync-test-cases-with-testrail skill on the files and fix what it reports.
List the test of each ask item under the open question or open conflict it depends on, as Context File describes: the PO's answer finds its cases there.
Report as the message-the-qc skill lays out:
smoke or ask tag. The QC names a case by it when asking for a change.Review the test cases in <files>. Tell me what to change, or say "push" and I push them to <section>.On "push", run the sync-test-cases-with-testrail skill. A new section with several suites needs --parent-section "<feature name>" on that push, so the suites nest under the one section the header named.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tinyc0der/qa-skills --plugin qa-skills14 skills in this plugin
/detect-duplicate-test-casesFind duplicate, near-duplicate, and overlapping manual test cases in TestRail or local `*.test.md` files. Identifies exact matches, semantically similar cases, subsets, and variations that differ only in data. Recommends which cases to keep, merge, or remove. Use when asked to find or clean up duplicate test cases or dedupe a TestRail section. Not for pruning cases that duplicate nothing./gather-contextGather what every source says about a Jira ticket or feature and save it to a context file (`tickets/<KEY>-<slug>/context.md`) with the sources read and not read, existing TestRail cases, conflicts between sources and the side followed, and open questions. Reads the ticket with its history, comments, sub-tasks, and linked issues, plus Confluence, Figma, TestRail, the live app, and the QA workspace. It is the first step of `review-user-story` and `qa-write-test-cases`. Use when the user asks what is known about a ticket or feature, asks to collect, refresh, or re-check its context, or asks for the sources a ticket does not link./improve-test-casesAnalyze and improve existing manual test cases (`*.test.md` in TestRail format, or cases pulled from TestRail) for clarity, structure, and format compliance, then push the fixes back to TestRail. Use when the user asks to improve, clean up, review, standardize, or rewrite existing test cases or a TestRail section.Other plugins' skills for the same job