autorenew

SKILL DETAIL

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.

StatusStable
TypeAtomic Skill
DomainSoftware testing
SDLCTest design
Good forQA
LanguageChinese / English
EvalsEvals ✓
Synced2026-09-15

Why this Skill

It turns this Skill's method into a quality input that can be executed, reviewed, and reused.

  • Need an output that can be used directly for execution, review, or follow-up.
  • 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.
  • Do not pretend completeness when scope/context is missing.

When to use

Use this Skill
  • 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.
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.

Input

Minimum Input
  • The current task scope, objective, and subject under review.
Recommended Input
  • 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.md and 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.
Optional Context
  • For format conversion or helper checks: prefer existing scripts/ over reinventing.
  • For evaluating/regressing this skill: use evals/ with skill-up.

Output

The output follows this Skill's method and makes facts, assumptions, risks, and next steps explicit.

Judge the output value before installing

  1. 01Followed the main prompt's output structure
  2. 02Minimum coverage focus: scope, case priority, preconditions, test data, steps, expected results, positive scenarios, negative scenarios, source_role, and requirement traceability ... (details in main prompt)
  3. 03Produced one unified suite; merged equivalent role candidates while retaining every contributing role
  4. 04Covered the minimum checklist, or explained omissions
View full output structure
  1. 05High-risk items have explicit priority
  2. 06Did not invent details the user did not provide
  3. 07Assumptions and gaps are marked

How It Works

  1. 01Read and follow the main prompt listed under Progressive disclosure (coverage, structure, quality bar).
  2. 02Add only project context that changes the result: scope, environment, constraints, risks, dependencies, expected deliverable, and optional role scenario candidates with source_role.
  3. 03Identify equivalent candidates by requirement trace, trigger, action, and observable outcome before generating one unified suite.
  4. 04If input is incomplete, return a usable first draft and explicitly mark assumptions and gaps.
  5. 05Default to Markdown; switch formats only when the user asks.

Install & Quick Start

Install command / SHELL
npx skills add \
  https://github.com/naodeng/awesome-qa-skills/tree/main/skills/en/testing-types/test-case-writing
  -g
test-case-writing.prompt
@skill test-case-writing

Using the current project context, produce an actionable result following this Skill.

Additional context:
[Paste project context or requirement]