Test Case Writing
Use this skill when you need to create high-quality test cases with normal, exception, and boundary scenarios; triggers include test case writing and test design.
Specification
- Skill ID
- naodeng/awesome-qa-skills/test-case-writing
- Publisher
- naodeng
- Repository
- awesome-qa-skills
- Installs
- 0
- Files
- 36
- Synced
- Sep 23, 2026
How to use it
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
naodeng/awesome-qa-skills/test-case-writingInstalls these files- README.md
- SKILL.md
- agents/openai.yaml
- evals/cases/basic-success.yaml
- evals/cases/edge-incomplete-input.yaml
- evals/cases/edge-risk-priority.yaml
- evals/cases/edge-role-source-deduplication.yaml
- evals/eval.yaml
- output-formats.md
- output-templates/template-csv.csv
- output-templates/template-excel.tsv
- output-templates/template-json.json
- output-templates/template-markdown.md
- output-templates/template-word.md
- output-templates/template-xmind.md
- prompts/test-case-writing.md
- quick-start.md
- references/local/FAQ.md
- scripts/batch_convert_templates.py
- scripts/convert_formats.py
- scripts/convert_output_formats.py
- scripts/convert_to_csv.py
- scripts/convert_to_excel.py
- scripts/convert_to_json.py
- scripts/convert_to_markdown.py
- scripts/convert_to_word.py
- scripts/convert_to_xmind.py
- scripts/parse_csv.py
- scripts/parse_excel.py
- scripts/parse_formats.py
- scripts/parse_json.py
- scripts/parse_markdown.py
- scripts/parse_output_formats.py
- scripts/parse_pdf.py
- scripts/parse_word.py
- scripts/parse_xmind.py
What this skill tells the agent
Test Case Writing (English)
Chinese version: See the corresponding Chinese skill.
When to Use
- Need help with test case writing in a real project context.
- Need an output that can be used directly for execution, review, or follow-up.
- Need to merge scenario candidates from several roles into one traceable test suite without role-based duplication.
Workflow
- Read and follow the main prompt listed under Progressive disclosure (coverage, structure, quality bar).
- Add only project context that changes the result: scope, environment, constraints, risks, dependencies, expected deliverable, and optional role scenario candidates with
source_role. - Identify equivalent candidates by requirement trace, trigger, action, and observable outcome before generating one unified suite.
- If input is incomplete, return a usable first draft and explicitly mark assumptions and gaps.
- Default to Markdown; switch formats only when the user asks.
Core Constraints
- Prioritize by risk / business impact — do not treat everything equally.
- Separate confirmed facts from current assumptions.
- Do not invent endpoints, fields, environments, or root causes the user did not provide.
- Keep output executable: concrete scenarios, clear priority, clear next steps.
- Do not generate suites per role. Equivalent candidates become one case that lists every contributing
source_role, requirement/acceptance trace, and risk tag. - Split cases only when differences in trigger, execution method, or observable outcome materially change execution; wording differences never justify duplicates.
Routing Boundary with the Plus Skill
- This Skill remains the lightweight/default authoring path. It can consume already-formed role scenario candidates and unify them with source and requirement traceability.
- Choose
testcase-writer-pluswhen the task requires conflict and provenance reconciliation across heterogeneous sources, a formal traceability matrix as a standalone deliverable, or higher coverage gates such as positive+negative+boundary coverage for high-risk paths plus data setup and cleanup. Do not switch merely for the base case fields orTracealready required here. Keep the two Skills independent; do not merge or rename them.
Progressive Disclosure
- Before producing output, read and follow
prompts/test-case-writing.md(minimum coverage, output structure, quality bar). - When Excel/CSV/JSON/Word is requested: read
output-formats.mdand honor the format. - When a ready-made template fits: use matching files under
output-templates/. - For deep framework/troubleshoot/schema notes: read only the relevant file(s) under
references/, do not load the whole directory. - For format conversion or helper checks: prefer existing
scripts/over reinventing. - For evaluating/regressing this skill: use
evals/with skill-up.
Pre-delivery Checklist
- [ ] Followed the main prompt's output structure
- [ ] Minimum coverage focus: scope, case priority, preconditions, test data, steps, expected results, positive scenarios, negative scenarios,
source_role, and requirement traceability ... (details in main prompt) - [ ] Produced one unified suite; merged equivalent role candidates while retaining every contributing role
- [ ] Covered the minimum checklist, or explained omissions
- [ ] High-risk items have explicit priority
- [ ] Did not invent details the user did not provide
- [ ] Assumptions and gaps are marked
Common Pitfalls
- Do not pretend completeness when scope/context is missing.
- Do not treat every item as equally important.
- Do not skip assumptions and information gaps.
- Do not copy the same scenario into Product, QA, UI/UX, or Technical suites, and do not drop minority sources during a merge.
- Do not dump generic theory unrelated to the current toolchain.
Use this skill in a project
Open any RiverX project, search the Skills panel for naodeng/awesome-qa-skills/test-case-writing, and install it in one click.
