Generate comprehensive test scenarios from user stories or feature specs — happy paths, edge cases, and error handling
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-pm-skills-fa82edce5503 ,按照其中的说明把「test-scenarios」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Turn user stories or feature descriptions into comprehensive test scenarios that QA can execute immediately. Covers happy paths, edge cases, error handling, and cross-browser/device considerations.
/test-scenarios [paste user stories or acceptance criteria]
/test-scenarios [upload a PRD or feature spec]
/test-scenarios User can reset their password via email link
Accept: user stories, acceptance criteria, PRD sections, feature descriptions, or any specification of expected behavior.
Apply the test-scenarios skill:
For each user story or requirement, generate:
Happy Path Scenarios: The expected user flow works correctly Edge Cases: Boundary conditions, unusual inputs, concurrent operations Error Scenarios: What happens when things go wrong Security Scenarios: If applicable (auth, permissions, data access) Performance Scenarios: If applicable (load, timeout, large data)
## Test Scenarios: [Feature]
**Source**: [user stories / PRD / description]
**Total scenarios**: [count]
**Coverage**: [happy path / edge cases / errors / security / performance]
### Scenario 1: [Title]
**Tests**: [which story or requirement]
**Preconditions**: [setup needed]
**User role**: [who is performing this]
| Step | Action | Expected Result |
|------|--------|----------------|
| 1 | [user action] | [expected system response] |
| 2 | [user action] | [expected system response] |
**Postconditions**: [state after completion]
**Priority**: [Critical / High / Medium / Low]
---
[Repeat for each scenario]
### Coverage Matrix
| Requirement | Happy Path | Edge Cases | Error Handling | Notes |
|------------|-----------|-----------|---------------|-------|
### Test Data Requirements
[What test data is needed to execute these scenarios]
Save as markdown.