
Test Cases
Turn a PRD or requirements doc into structured markdown test cases with happy path, edge, error, and state-transition coverage mapped to each requirement.
Overview
Test Cases is an agent skill for the Ship phase that generates comprehensive, requirement-mapped test scenarios from PRD or user requirements.
Install
npx skills add https://github.com/cexll/myclaude --skill test-casesWhat is this skill?
- Requirement-driven cases—mapped to PRD items, not implementation internals
- Coverage mandate: happy path, edge cases, error handling, and state transitions per requirement
- Triggers on generate test cases, create test scenarios, plan QA, or structured test documentation
- Pragmatic philosophy: test what matters, quality over volume
- Output as structured markdown test documentation
Adoption & trust: 874 installs on skills.sh; 2.7k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You have a PRD or feature list but no structured test cases tying requirements to happy paths, edges, errors, and state changes.
Who is it for?
Indie builders with a written spec who need Ship-ready QA plans before coding stabilizes or before a release candidate.
Skip if: Exploratory testing-only workflows with no requirements document, or teams that already maintain living Gherkin suites synced to CI.
When should I use this skill?
User provides a PRD or requirements and asks to generate test cases, create test scenarios, plan QA, or needs structured test documentation in markdown.
What do I get? / Deliverables
You receive markdown test documentation with at least one scenario per requirement, ready for QA execution or automation planning.
- Markdown test case document
- Per-requirement scenario mapping
- Edge, error, and state-transition cases
Recommended Skills
Journey fit
How it compares
Requirement-linked test documentation generator—not a substitute for running automated test frameworks or security scanners.
Common Questions / FAQ
Who is test-cases for?
Solo builders and tiny teams using agent coding assistants who have PRDs or clear requirements and need structured QA coverage without hiring a dedicated QA lead.
When should I use test-cases?
In Ship testing when a feature or MVP is scoped and you need test scenarios, QA planning, or markdown test docs before merge or launch.
Is test-cases safe to install?
Check this page’s Security Audits panel for verification details; the skill generates documentation from inputs you provide and does not require network or secret access by default.
SKILL.md
READMESKILL.md - Test Cases
# Test Cases Generator This skill generates comprehensive, requirement-driven test cases from PRD documents or user requirements. ## Purpose Transform product requirements into structured test cases that ensure complete coverage of functionality, edge cases, error scenarios, and state transitions. The skill follows a pragmatic testing philosophy: test what matters, ensure every requirement has corresponding test coverage, and maintain test quality over quantity. ## When to Use Trigger this skill when: - User provides a PRD or requirements document and requests test cases - User asks to "generate test cases", "create test scenarios", or "plan QA" - User mentions testing coverage for a feature or requirement - User needs structured test documentation in markdown format ## Core Testing Principles Follow these principles when generating test cases: 1. **Requirement-driven, not implementation-driven** - Test cases must map directly to requirements, not implementation details 2. **Complete coverage** - Every requirement must have at least one test case covering: - Happy path (normal use cases) - Edge cases (boundary values, empty inputs, max limits) - Error handling (invalid inputs, failure scenarios, permission errors) - State transitions (if stateful, cover all valid state changes) 3. **Clear and actionable** - Each test case must be executable by a QA engineer without ambiguity 4. **Traceable** - Maintain clear mapping between requirements and test cases ## Workflow ### Step 1: Gather Requirements First, identify the source of requirements: 1. If user provides a file path to a PRD, read it using the Read tool 2. If user describes requirements verbally, capture them 3. If requirements are unclear or incomplete, use AskUserQuestion to clarify: - What are the core user flows? - What are the acceptance criteria? - What are the edge cases or error scenarios to consider? - Are there any state transitions or workflows? - What platforms or environments need testing? ### Step 2: Extract Test Scenarios Analyze requirements and extract test scenarios: 1. **Functional scenarios** - Normal use cases from requirements 2. **Edge case scenarios** - Boundary conditions, empty states, maximum limits 3. **Error scenarios** - Invalid inputs, permission failures, network errors 4. **State transition scenarios** - If the feature involves state, map all transitions For each requirement, identify: - Preconditions (what must be true before testing) - Test steps (actions to perform) - Expected results (what should happen) - Postconditions (state after test completes) ### Step 3: Structure Test Cases Organize test cases using this structure: ```markdown # Test Cases: [Feature Name] ## Overview - **Feature**: [Feature name] - **Requirements Source**: [PRD file path or description] - **Test Coverage**: [Summary of what's covered] - **Last Updated**: [Date] ## Test Case Categories ### 1. Functional Tests Test cases covering normal user flows and core functionality. #### TC-F-001: [Test Case Title] - **Requirement**: [Link to specific requirement] - **Priority**: [High/Medium/Low] - **Preconditions**: - [Condition 1] - [Condition 2] - **Test Steps**: 1. [Step 1] 2. [Step 2] 3. [Step 3] - **Expected Results**: - [Expected result 1] - [Expected result 2] - **Postconditions**: [State after test] ### 2. Edge Case Tests Test cases covering boundary conditions and unusual inputs. #### TC-E-001: [Test Case Title] [Same structure as above] ### 3. Error Handling Tests Test cases covering error scenarios and failure