test-scenarios
БесплатноЗапускает вложенные скриптыНе проверенWrites QA cases from a feature spec across happy, edge, error, empty, concurrent, accessibility and security paths, then audits coverage. Use when planning QA…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Test Scenarios
The agent writes the scenarios from the spec; test_scenario_generator.py then audits the list by counting scenarios per category against what the feature type needs. The script generates nothing despite its name.
Done looks like: every user goal has a happy path; each input has boundary and weird-but-valid cases; each failure mode has a user-visible outcome; empty states, accessibility and security are covered for every UI feature; concurrency for anything shared or financial; localization when more than one locale ships; at least one P0; the audit exits 0.
When to Use
- After PRD approval and before implementation, or when sizing test effort in sprint planning
- Reviewing whether a test plan or a PR's tests cover enough
- Bug-bash preparation, or after a production incident to find the missed category
Categories
Happy path, edge, error, empty state, concurrent, accessibility (a11y), security; plus performance, localization and cross-platform when they apply. Examples per category: references/scenario-categories.md.
Clarify First
Before generating scenarios, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- 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).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Quick Start
# Signup form with full coverage: exit 0
python3 project-management/execution/test-scenarios/scripts/test_scenario_generator.py \
--input project-management/execution/test-scenarios/assets/sample_scenarios.json --format markdown
# Payment step with no error or security scenarios and a mistyped category: exit 1
python3 project-management/execution/test-scenarios/scripts/test_scenario_generator.py \
--input project-management/execution/test-scenarios/assets/sample_scenarios_flawed.json --format markdown
# Input schema and flags
python3 project-management/execution/test-scenarios/scripts/test_scenario_generator.py --help
Tools Overview
test_scenario_generator.py is the quality gate for this skill. What the audit checks: scenario counts per category against the feature type's recommended range (fail when happy path, edge, error or security has none; warn when below range; info when above); unknown category names; concurrency for collaborative features; localization when several locales are supported; cross-platform coverage; at least one P0. It counts; it does not judge whether a scenario is any good.
Exit codes: 0 no fail findings · 1 at least one fail (a core category with zero scenarios) · 2 unreadable file, invalid JSON or a top level that is not an object. JSON by default, --format markdown, --output FILE.
Workflow
- Read the spec for user goals, inputs, outputs and side effects.
- Write scenarios per category. You know the standard techniques (boundaries, wrong types, 4xx/5xx/timeouts, keyboard and screen reader, authorisation and injection); spend the effort on what is specific to this feature: its side effects, its shared state, its money or PII. Payment and collaboration features need concurrency and idempotency cases; uploads need file-abuse cases.
- Weight by risk. Always cover happy paths and empty states; cover edge cases by likelihood x severity; scale security with sensitivity. Mark P0 the scenarios whose failure would stop the release.
- Audit. Write the list as JSON (schema in
--help;assets/sample_scenarios.json) and run the audit. It must pass with no fail findings; then verify that each under-covered category is either filled or consciously out of scope. Recommended counts per feature type are in the appendix ofreferences/scenario-categories.md. - Hand to QA with the automated/manual split from the same appendix.
Anti-Patterns
Only happy paths
Mistake: The plan tests that the feature works when everything goes right. Why it happens: Happy paths come straight from the spec; failures have to be imagined. Instead: Write at least the recommended error and edge counts for the feature type before anything else is added.
"QA will figure it out"
Mistake: Scenarios are left to QA after the build. Why it happens: Scenario writing feels like QA's job. Instead: Write them before implementation; QA tests what is specified, and engineers buil
Установить test-scenarios в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл test-scenarios?
Writes QA cases from a feature spec across happy, edge, error, empty, concurrent, accessibility and security paths, then audits coverage. Use when planning QA for a feature, or finding coverage gaps after an incident.
Как установить скилл test-scenarios?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-scenarios запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic