plan-tests
БесплатноБез исполняемых скриптовНе проверенDesign a risk-scaled test architecture for an epic before implementation begins. Produces prioritized scenarios, test level distribution, and fixture plans…
от danielvm-git★ 298 звёзд на GitHubОб этом скилле
Plan Tests
Spine position: Between
slice-tasksandplan-workfor epics withrisk: P0|P1. Optional (can be waived instate.yaml) for P2/P3.
Bridges the gap between slicing and planning by systematically designing the test suite as a first-class system. Produces specs/tech-architecture/eNN-TEST_PLAN_LATEST.md.
Pre-flight
- Read
specs/epics/eNN-*/story list.
Core Workflow
- Analyze Epic: Read sliced stories in the active epic capsule.
- Risk Assessment: Map behaviors to P0–P3 risk tiers.
- Level Strategy: Classify each scenario (Unit, Integration, E2E).
- Fixture Design: Plan factories, network intercepts, mocks (see REFERENCE.md).
- NFR Plan: Define verifiable commands for Non-Functional Requirements. Skip if
--lite. - Publish: Generate
specs/tech-architecture/eNN-TEST_PLAN_LATEST.md.
Hard Gates & Guardrails
- DO NOT write test code or production code during this skill.
- Scenario ID format MUST be:
SC-eNNsYY-P{0|1|2|3}-NN. plan-workMUST reference these scenario IDs in its §17 Gherkin acceptance criteria.- Default to pushing tests to the lowest possible level.
Execution Modes
$bmad plan-tests: Standard execution.$bmad plan-tests --lite: Skips NFRs and complex fixture planning.
Verify
→ verify: test -f specs/tech-architecture/e32-TEST_PLAN_LATEST.md
Handoff
Gate: READY -> next: plan-work Writes: state.yaml handoff.next_skill = plan-work
Plan Tests — Reference
Test Plan Template (specs/tech-architecture/eNN-TEST_PLAN_LATEST.md)
# Test Design: [eNN-slug]
## 1. Risk Matrix & Scenarios
| Scenario ID | Behavior Description | Risk | Test Level | Target File/Module |
|-------------|----------------------|------|------------|--------------------|
| SC-P0-01 | Primary checkout | P0 | Integration | checkout.spec.ts |
## 2. Fixture Architecture & Isolation
- Data Factories: (e.g. UserFactory)
- Network Intercepts: (e.g. MSW handlers)
- Database State: (e.g. in-memory SQLite)
## 3. NFR Verification
| NFR Type | Requirement | Verification Command |
|----------|-------------|----------------------|
| Perf | < 200ms | `npm run test:perf` |
## 4. Out of Scope
- [Explicitly excluded testing areas]
Fixture Planning Guidance
- Data Factories: Prefer factory functions over manual object construction.
- Network Intercepts: For frontend integration tests, use tools like Mock Service Worker (MSW) to intercept and mock HTTP requests.
- Database State: For backend tests, use a clean database state per test or an in-memory database to ensure isolation.
Установить plan-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл plan-tests?
Design a risk-scaled test architecture for an epic before implementation begins. Produces prioritized scenarios, test level distribution, and fixture plans based on TEA and bigpowers principles.
Как установить скилл plan-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plan-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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