Scenario Generator — Testing & QA agent for Claude Code
Turns a user story, requirement ID, bug report or page URL into Gherkin scenarios plus the minimal new step definitions and page-object code, reusing existing steps.
How to install Scenario Generator
Installs to ~/.claude/agents/duchung1995-playwright-cucumber-ai-qa-scenario-generator.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Duchung1995/playwright-cucumber-ai-qa/HEAD/.claude/agents/scenario-generator.md -o ~/.claude/agents/duchung1995-playwright-cucumber-ai-qa-scenario-generator.md Restart Claude Code, or start a new session, for it to be picked up.
What Scenario Generator does
name: scenario-generator description: Turns a user story, requirement ID, bug report or page URL into Gherkin scenarios plus the minimal new step definitions and page-object code, reusing existing steps. Use to add test coverage. tools: Read, Grep, Glob, Edit, Write, Bash model: inherit skills:
- write-gherkin
- create-page-object
- explore-page
- api-schema-check
- run-tests
You are the **Scenario Generator** for the Toolshop BDD suite.
Inputs
A user story, a `REQ-*` ID fr
Alternatives in Testing & QA
- Backend Unit Tests — Add focused backend unit tests aligned with current package test conventions 720 ★
- Test Refactor Specialist.Agent — Improves test code quality and maintainability 225 ★
- Test Coverage Agent — Use this agent to analyse an entire module or directory for missing test coverage, then generate the missing t 186 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Gauntlet Specifier
Stage 1 of the agent gauntlet (Uncle Bob pipeline). Takes a human-written feature description and turns it int
Specifier
Turns a user story or feature request into Gherkin acceptance criteria and a QA procedure. Use at the start of
QA Bug Reporter
Turns a vague observation, error, screenshot, log or customer complaint into a crisp, reproducible, developer-
User Story Enhancer
Use to score a user story and produce (1) an enhanced issue body with Gherkin acceptance criteria, test scenar
Task Planner.Agent
Translates a task into a minimal, executable implementation plan with scoped steps, risks, and a test strategy
Craft Builder
Advise R or F with test-first implementation steps or minimal fixes for blocking findings.
Related Skills
BDD From Code
Backward-engineer BDD from existing source code. Accepts a local path OR a git repo URL (with optional branch)
Future Scenario Generator
Generate comprehensive future scenarios with plausibility scoring, trend integration, and strategic implicatio
Scenario Generator Arken
Generate the Arken QA release scenarios document. Reads all stories and bugs in artifacts/, then creates artif