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
25k42 skills42 commands
Install
$ npx -y skills add phuryn/pm-skills --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/test-scenarios

Context preview

What this command does when you run it.

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

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
Ships withpm-skills

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

Get the whole plugin, auto-invoked
Stats
24,983
Stars
2
Views
2,679
Forks
Maintained
Maintenance
MIT
License
1mo ago
Last commit
5mo ago
Created

Repo: phuryn/pm-skills