test-cases

Generate pairwise test-case sets from PRD and scene lists as Markdown.

4|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/CaufieldZ/pm-workspace-public --skill test-cases-caufieldz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-cases
Source: https://github.com/CaufieldZ/pm-workspace-public/tree/main/.claude/skills/test-cases
Command: npx skills add https://github.com/CaufieldZ/pm-workspace-public --skill test-cases-caufieldz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

当产品团队需要从 PRD 和场景清单快速生成完整的测试用例集时,此 Skill 提供自动化的成对覆盖和层级组织,显著减少人工笛卡尔积和重复工作。

Core Features & Use Cases

  • 读取 scene-list.md、PRD 3.x 需求及 behavior-spec,生成覆盖所有二元参数对的候选集合与测试场景。
  • 支持约束条件,排除不可行的参数组合,确保输出可执行且符合业务规则。
  • 使用成对覆盖(Pairwise)生成测试用例,输出符合测试用例模板的 Markdown 文档,便于交付与审核。
  • 提供可复用的 Python 脚本(pairwise_gen.py),帮助自动化生成并导出结果。

Quick Start

运行脚本以从参数集合生成成对覆盖的测试用例并输出 Markdown 表格。

Frequently Asked Questions about test-cases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate test cases from a PRD to streamline QA workflows?

To auto-generate test cases from a PRD, this Skill reads PRD requirements, scene lists, and behavior specs to produce comprehensive test sets. It applies pairwise coverage to multi-dimensional inputs and exports results as Markdown deliverables ready for repository integration.

What is pairwise coverage and how does it filter invalid test combinations?

Pairwise coverage is a testing technique that ensures all binary parameter pairs are tested without exhaustive Cartesian products. This Skill applies constraints to filter invalid combinations across PRD and behavior-spec inputs, ensuring generated test scenarios remain executable and compliant with business rules.

How do I generate test scenarios from scene lists and behavior specs?

Generating test scenarios from scene lists involves reading scene-list.md and behavior-spec files alongside PRD requirements. The Skill outputs candidate sets covering all binary parameter pairs as structured Markdown documents, streamlining manual test case creation and review processes.

Can I use Python scripts to automate pairwise test case generation for Markdown outputs?

Yes, you can use Python scripts to automate pairwise test case generation. The Skill provides a reusable pairwise_gen.py script that processes parameter sets, applies constraints, and exports the generated test cases directly into Markdown tables for project delivery.

Does this test case generation tool work without external dependencies?

Yes, the test case generation tool works without external dependencies. It operates standalone using provided Python scripts and reference components to parse PRD inputs and generate pairwise coverage matrices without requiring additional libraries or frameworks.

What are the limitations of using pairwise coverage for multi-dimensional test inputs?

A limitation of pairwise coverage is that it focuses on binary parameter pairs, potentially missing higher-order interaction defects. However, this Skill mitigates risks by applying constraints to filter invalid combinations, ensuring the generated test sets align with specific PRD and behavior-spec business rules.