Skip to content
Back to skills

Test Case Writing

ASecurity

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.

  • 313 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentsgotestinggit

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add naodeng/awesome-qa-skills --skill test-case-writing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Case Writing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Case Writing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/naodeng-test-case-writing/badge)](https://www.skillsdirectory.com/skills/naodeng-test-case-writing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-case-writing
description: 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.
license: PolyForm-Noncommercial-1.0.0
metadata:
  version: "1.0.0"
  compatibility: ""
  author: "Awesome QA Skills contributors"
  language: "en"
  category: "testing-types"
  source: "https://github.com/naodeng/awesome-qa-skills"
  license-url: "https://polyformproject.org/licenses/noncommercial/1.0.0"
---

# 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

1. Read and follow the main prompt listed under Progressive disclosure (coverage, structure, quality bar).
2. Add only project context that changes the result: scope, environment, constraints, risks, dependencies, expected deliverable, and optional role scenario candidates with `source_role`.
3. Identify equivalent candidates by requirement trace, trigger, action, and observable outcome before generating one unified suite.
4. If input is incomplete, return a usable first draft and explicitly mark assumptions and gaps.
5. 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-plus` when 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 or `Trace` already 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.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.
- 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.

Files in this skill

  • README.md815 B
  • SKILL.md4.3 KB
  • agents/openai.yaml465 B
  • evals/cases/basic-success.yaml606 B
  • evals/cases/edge-incomplete-input.yaml575 B
  • evals/cases/edge-risk-priority.yaml544 B
  • evals/cases/edge-role-source-deduplication.yaml2.4 KB
  • evals/cases/review-role-merge-split-trace.yaml4.1 KB
  • evals/eval.yaml664 B
  • evals/graders/review-role-merge-split-trace.py3.1 KB
  • output-formats.md401 B
  • output-templates/template-csv.csv206 B
  • output-templates/template-excel.tsv358 B
  • output-templates/template-json.json393 B
  • output-templates/template-markdown.md250 B
  • output-templates/template-word.md302 B
  • output-templates/template-xmind.md317 B
  • prompts/test-case-writing.md4.3 KB
  • quick-start.md2.1 KB
  • references/local/FAQ.md533 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.