Skip to content
Productivity
Command

/test-scenarios

Generate comprehensive test scenarios from user stories or feature specs — happy paths, edge cases, and error handling

From plugin
pm-skills
28k42 skills42 commands
> /plugin marketplace add phuryn/pm-skills

Command definition

test-scenarios.md
description: Generate comprehensive test scenarios from user stories or feature specs — happy paths, edge cases, and error handling
argument-hint: "<user stories, feature spec, or description>"

/test-scenarios -- Test Scenario Generator

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.

Invocation

/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

Workflow

Step 1: Accept Input

Accept: user stories, acceptance criteria, PRD sections, feature descriptions, or any specification of expected behavior.

Step 2: Generate Test Scenarios

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)

Step 3: Structure Output

## 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.

Step 4: Offer Next Steps

  • "Want me to **generate the test data** for these scenarios?"
  • "Should I **add more edge cases** for any specific scenario?"
  • "Want me to **create the user stories** that these scenarios test?"

Notes

  • Happy paths first, then layer in edge cases — ensure basic flows work before testing boundaries
  • Every acceptance criterion from the original story should map to at least one test scenario
  • Include both positive tests (it works) and negative tests (it fails gracefully)
  • For APIs, include scenarios for rate limiting, timeout, malformed requests, and auth failures
  • Flag scenarios that require specific test environments or third-party service mocking
Read more
@phuryn
Ships withpm-skills

72 PM skills and 42 chained workflows across 9 plugins. Claude Code, Cowork, and more. From discovery to strategy, execution, launch, growth, and shipping AI-built code. Designed for Claude Code and Cowork. Skills compatible with other AI assistants.

Stars on GitHub

Momentum

stars in total
27.8k
Star history of phuryn/pm-skills on GitHub, a chart by star-history.com

Other commands on pm-skills.

derive-tests

derive-tests

Command

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to…

@phuryn@phurynInstall Command
document-app

document-app

Command

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to…

@phuryn@phurynInstall Command
performance-audit-static

performance-audit-stat…

Command

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to…

@phuryn@phurynInstall Command
security-audit-static

security-audit-static

Command

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to…

@phuryn@phurynInstall Command
ship-check

ship-check

Command

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to…

@phuryn@phurynInstall Command
analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command

More commands from other plugins.

again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command