# Test scenarios

> Test scenarios is an open-source agent skill for developer tools. Turn user stories into step-by-step QA test scenarios. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/phuryn/pm-skills/tree/main/pm-execution/skills/test-scenarios
- **Repository:** https://github.com/phuryn/pm-skills
- **GitHub stars:** 28,088
- **License:** MIT
- **Skill name:** test-scenarios
- **Collection:** https://github.com/phuryn/pm-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-21

## About

This skill takes a user story with its acceptance criteria and produces test scenarios that a QA engineer can run. Each scenario states an objective, the starting conditions, the user role, numbered test steps with observable results, and the expected outcomes.

The agent works through a fixed sequence: review the story, define objectives, set up starting state, pick roles, write steps, define outcomes and add edge cases such as invalid inputs and boundary conditions. A worked example for a 'Recently viewed' product section shows the expected level of detail.

Inputs are a product name, the user story text and any extra testing context or constraints.

## When your agent uses it

> Create comprehensive test scenarios from user stories with test objectives, starting conditions, user roles, step-by-step actions, and expected outcomes. Use when writing QA test cases, creating test plans, defining acceptance tests, or preparing for feature validation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/phuryn/pm-skills/tree/HEAD/pm-execution/skills/test-scenarios)
- [License: MIT](https://github.com/phuryn/pm-skills/tree/HEAD/pm-execution/skills/test-scenarios)

## Features

- **Fixed scenario template:** Every scenario carries an objective, starting conditions, user role, test steps and expected outcomes.
- **Eight-step process:** Moves from reading the story to producing scenarios ready for QA execution.
- **Edge case coverage:** Prompts for invalid inputs and boundary conditions alongside the main flow.
- **Worked example:** Includes a complete e-commerce scenario to show the expected format.
- **Simple inputs:** Takes a product name, user story and optional context.

## Good for

- Write QA test cases from a user story
- Draft a test plan for a feature before release
- Define acceptance tests for a story's criteria
- Prepare feature validation scenarios for a QA team

## Install

### Claude Code

This skill ships in the `pm-execution` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add phuryn/pm-skills
/plugin install pm-execution@pm-skills
```

Or copy only this skill to `~/.claude/skills/test-scenarios`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/test-scenarios &&
cp -R "$tmp/pm-execution/skills/test-scenarios" ~/.claude/skills/test-scenarios &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/test-scenarios` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/test-scenarios` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/test-scenarios &&
cp -R "$tmp/pm-execution/skills/test-scenarios" ~/.agents/skills/test-scenarios &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/test-scenarios` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/test-scenarios` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/test-scenarios &&
cp -R "$tmp/pm-execution/skills/test-scenarios" ~/.cursor/skills/test-scenarios &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/test-scenarios` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/phuryn/pm-skills.git --path pm-execution/skills/test-scenarios
```

Or copy the folder to `~/.gemini/skills/test-scenarios` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/test-scenarios`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/test-scenarios &&
cp -R "$tmp/pm-execution/skills/test-scenarios" ~/.copilot/skills/test-scenarios &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/test-scenarios` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/phuryn/pm-skills.git
```

Then copy `pm-skills/pm-execution/skills/test-scenarios` into your agent's skills folder as `test-scenarios`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What inputs does Test scenarios need?

A product or system name, the user story with its acceptance criteria, and optional testing context or constraints.

### What does each scenario contain?

A scenario name, test objective, starting conditions, user role, numbered test steps and expected outcomes.

### Does Test scenarios cover edge cases?

Yes, the process includes a step for invalid inputs and boundary conditions.

### How do I install Test scenarios in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/test-scenarios to use it in all your projects, or to .claude/skills/test-scenarios in one project. Or install the pm-execution plugin, which includes it: /plugin marketplace add phuryn/pm-skills, then /plugin install pm-execution@pm-skills.

### Does Test scenarios run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Test scenarios?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Test scenarios?

The closest alternatives to Test scenarios are User stories, Job stories, Gen specs as issues, Brainstorm experiments existing and Identify assumptions existing.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [User stories](https://ai-powered.com/skills/user-stories): User stories is an open-source agent skill for productivity.
- [Job stories](https://ai-powered.com/skills/job-stories): Job stories is an open-source agent skill for productivity.
- [Gen specs as issues](https://ai-powered.com/skills/gen-specs-as-issues): Gen specs as issues is an open-source agent skill for developer tools.
- [Brainstorm experiments existing](https://ai-powered.com/skills/brainstorm-experiments-existing): Brainstorm experiments existing is an open-source agent skill for productivity.
- [Identify assumptions existing](https://ai-powered.com/skills/identify-assumptions-existing): Identify assumptions existing is an open-source agent skill for productivity.
- [Interview script](https://ai-powered.com/skills/interview-script): Interview script is an open-source agent skill for productivity.
- [Prd](https://ai-powered.com/skills/prd): Prd is an open-source agent skill for productivity.
- [Brainstorm experiments new](https://ai-powered.com/skills/brainstorm-experiments-new): Brainstorm experiments new is an open-source agent skill for productivity.

---
Source: https://ai-powered.com/skills/test-scenarios
