Generate test scenario coverage from a feature spec — happy paths, edge cases, error handling, accessibility, security, and performance — with a coverage analyzer that flags gaps. Use to define what to test before QA writes the test plan.
Independent GitHub snapshot · Automated classification · Original documentation governs
name: test-scenarios
description: >
Generate test scenario coverage from a feature spec — happy paths, edge
cases, error handling, accessibility, security, and performance — with a
coverage analyzer that flags gaps. Use to define what to test before QA
writes the test plan.
license: MIT + Commons Clause
metadata:
version: 1.0.0
author: borghei
category: project-management
domain: execution
updated: 2026-05-27
python-tools: test_scenario_generator.py
tech-stack: test-scenarios, qa, edge-cases, acceptance-criteria
Test Scenarios
Generate complete scenario coverage from a feature spec before tests
are written. Closes the gap between "we built it" and "it survives
production."
When to use this skill
After PRD approval but before engineering implementation
During sprint planning to size testing effort
During code review to verify test coverage
During QA planning to scope test pass
During bug-bash prep
After a production incident to validate scenario gaps
The 7 scenario categories
For every feature, generate scenarios across:
Happy paths — primary user goals achieved cleanly
Edge cases — boundary conditions, unusual inputs
Error handling — what users see when things go wrong
Localization (RTL, long-string, currency, date format)
Cross-platform (browsers, devices, OS versions)
Clarify First
Before generating scenarios, confirm these inputs. If any is unknown or vague, ASK — do not assume:
Feature type — form, browse/list, real-time/collab, file upload, payment, or bulk operation (drives the scenario count per category in the coverage rubric)
Risk / sensitivity profile — auth, payment, or PII involved (scales up security and concurrency coverage in the risk-weighted selection)
The spec's inputs, outputs, and side effects — what users provide, expect, and what changes in the system (drives edge cases in Step 3 and error handling in Step 4)
Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.
Workflow
Step 1 — Spec read
Read the PRD / user story / acceptance criteria. Identify:
User goals (what they want to do)
Inputs (what they provide)
Outputs (what they expect)
Side effects (what changes in the system)
Step 2 — Happy path
For each user goal, write the primary flow:
Preconditions
Steps
Expected result
Aim for 1-3 happy paths per feature.
Step 3 — Edge cases
For each input, ask:
What's the empty value?
What's the minimum?
What's the maximum?
What's just below min / just above max?
What's the wrong type?
What's the weird-but-valid (very long, special chars, Unicode, emoji)?
Step 4 — Error handling
For each failure mode:
Network failure
Server error (5xx)
Validation error (4xx)
Timeout
Concurrent modification
Auth expired / lost
For each: what does the user see? Recover-from / try-again UX?
Step 5 — Empty / first-use / after-action states
First use (no data)
After delete (last item)
After error (partial state)
After timeout
After cancel
Step 6 — Concurrent / race scenarios
Two users simultaneously:
Editing same record
Triggering same action
Submitting same form
Reaching capacity limit
Step 7 — Accessibility
Tab through with keyboard
Use with screen reader
High contrast / inverted colors
Reduced motion preference
Large text scaling
Voice control
Step 8 — Security + privacy
Logged out user accesses
Unauthorized user accesses
Permission downgrade mid-action
PII handling
Injection attempts (XSS, SQLi)
Rate limiting
Step 9 — Run test_scenario_generator.py
Audit a candidate scenario list for category coverage; flag gaps.