TEA Command Reference
TEA Command Reference
Section titled “TEA Command Reference”Invoking a TEA Workflow
Section titled “Invoking a TEA Workflow”Everything below assumes BMad Method is installed with the TEA module: npx bmad-method install.
Three surfaces reach the same workflow. The skill name is identical on every platform; only the sigil differs.
| Surface | Form | Example |
|---|---|---|
| Claude Code / Cursor / Windsurf | /bmad-testarch-<workflow> | /bmad-testarch-automate |
| Codex | $bmad-testarch-<workflow> | $bmad-testarch-automate |
Inside a bmad-tea chat | the workflow’s two-letter code | TA |
Load the TEA agent itself with /bmad-tea or $bmad-tea. That is optional: every workflow runs standalone, and loading the agent first only buys you the two-letter menu and the GATE router.
This page uses short workflow names. Two do not map to a command by adding a prefix: teach-me-testing carries no testarch segment, and nfr-assess is -nfr.
| Workflow name | Command | Menu code |
|---|---|---|
teach-me-testing | /bmad-teach-me-testing · $bmad-teach-me-testing | TMT |
test-design | /bmad-testarch-test-design · $bmad-testarch-test-design | TD |
framework | /bmad-testarch-framework · $bmad-testarch-framework | TF |
ci | /bmad-testarch-ci · $bmad-testarch-ci | CI |
atdd | /bmad-testarch-atdd · $bmad-testarch-atdd | AT |
automate | /bmad-testarch-automate · $bmad-testarch-automate | TA |
test-review | /bmad-testarch-test-review · $bmad-testarch-test-review | RV |
nfr-assess | /bmad-testarch-nfr · $bmad-testarch-nfr | NR |
trace | /bmad-testarch-trace · $bmad-testarch-trace | TR |
To ship your own workflow, package it as custom content and attach it to bmad-tea via customization. See Extend TEA with Custom Workflows.
Quick Index
Section titled “Quick Index”teach-me-testing- Learn testing (TEA Academy)test-design- Risk-based test planningframework- Scaffold test frameworkci- Setup CI/CD pipelineatdd- Acceptance TDDautomate- Test automationtest-review- Quality auditnfr-assess- NFR Evidence Audittrace- Coverage traceabilityGATE- Release gate routing helper (agent menu only)
teach-me-testing
Section titled “teach-me-testing”Purpose: Interactive learning companion. Teaches testing fundamentals through advanced practices
Phase: Learning / Onboarding (before all other phases)
Frequency: Once per learner (can revisit sessions anytime)
Key Inputs:
- Role (QA, Dev, Lead, VP)
- Experience level (beginner, intermediate, experienced)
- Learning goals
Key Outputs:
{test_artifacts}/teaching-progress/{user_name}-tea-progress.yaml(progress tracking, resumable){test_artifacts}/tea-academy/{user_name}/session-{N}-notes.md(one per completed session){test_artifacts}/tea-academy/{user_name}/tea-completion-summary.md(after all 7 sessions)
7 Sessions:
- Quick Start (30 min) - TEA Lite intro, engagement models
- Core Concepts (45 min) - Risk-based testing, P0-P3, DoD
- Architecture (60 min) - Fixtures, network-first, data factories
- Test Design (60 min) - Risk assessment, coverage planning
- ATDD & Automate (60 min) - TDD red-green, test generation
- Quality & Trace (45 min) - Test review, traceability, metrics
- Advanced Patterns (ongoing) - 59 knowledge fragments exploration
Features:
- Multi-session with state persistence (pause/resume anytime)
- Non-linear (jump to any session based on experience)
- Quiz validation (≥70% to pass)
- Role-adapted examples (QA/Dev/Lead/VP)
- Automatic progress tracking
How-To Guide: Learn Testing with TEA Academy
Tutorial: Learn Testing with TEA Academy
framework
Section titled “framework”Purpose: Scaffold production-ready test framework (Playwright or Cypress)
Phase: Phase 3 (Solutioning)
Frequency: Once per project
Key Inputs:
- Tech stack, test framework choice, testing scope
Key Outputs:
tests/README.md(declareddefault_output_file: setup, running tests, architecture, CI integration)tests/directory withsupport/fixtures/andsupport/helpers/playwright.config.tsorcypress.config.ts.env.example,.nvmrc- Sample tests with best practices
How-To Guide: Setup Test Framework
Purpose: Setup CI/CD pipeline with selective testing and burn-in
Phase: Phase 3 (Solutioning)
Frequency: Once per project
Key Inputs:
- CI platform (GitHub Actions, GitLab CI, etc.)
- Sharding strategy, burn-in preferences
Key Outputs:
- Platform-specific CI workflow (
.github/workflows/test.ymlby default, resolved per platform) - Parallel execution configuration
- Burn-in loops for flakiness detection
docs/ci.md(pipeline guide) anddocs/ci-secrets-checklist.md(required secrets)
How-To Guide: Setup CI Pipeline
test-design
Section titled “test-design”Purpose: Risk-based test planning with coverage strategy and NFR planning
Phase: Phase 3 (system-level), Phase 4 (epic-level)
Frequency: Once (system), per epic (epic-level)
Modes:
- System-level: Architecture testability review and NFR planning (TWO documents)
- Epic-level: Per-epic risk and NFR planning (ONE document)
Key Inputs:
- System-level: Architecture, PRD, ADRs
- Epic-level: Epic, stories, acceptance criteria
Key Outputs:
System-Level (TWO Documents plus a handoff):
test-design-architecture.md- For Architecture/Dev teams- Quick Guide (🚨 BLOCKERS / ⚠️ HIGH PRIORITY / 📋 INFO ONLY)
- Risk assessment with scoring
- Testability concerns and gaps
- NFR thresholds, unknowns, and planned evidence
- Mitigation plans
test-design-qa.md- For QA team- Test execution recipe
- Coverage plan (P0/P1/P2/P3 with checkboxes)
- Sprint 0 setup requirements
- NFR test coverage and evidence plan
test-design/{project_name}-handoff.md- System-level only. Bridges the test design outputs into epic/story decomposition, for BMAD’screate-epics-and-storiesworkflow
Epic-Level (ONE Document):
test-design-epic-N.md- Risk assessment (probability × impact scores)
- Test priorities (P0-P3)
- Coverage strategy
- NFR planning when NFRs are in scope
- Mitigation plans
Why the system-level split exists: TEA Overview and Run Test Design.
Browser Automation (CLI/MCP): Exploratory mode (live browser UI discovery)
How-To Guide: Run Test Design
Purpose: Generate red-phase acceptance test scaffolds BEFORE implementation (TDD red phase)
Phase: Phase 4 (Implementation)
Frequency: Per story (optional)
Key Inputs:
- Story with acceptance criteria, test design, test levels
Key Outputs:
- Red-phase test scaffolds (
tests/api/,tests/e2e/) marked withtest.skip() - Implementation checklist keyed to
story_key - Story metadata / handoff paths for downstream
dev-storyconsumption
Browser Automation (CLI/MCP): Recording mode (for skeleton UI only; rare)
How-To Guide: Run ATDD
automate
Section titled “automate”Purpose: Expand test coverage after implementation
Phase: Phase 4 (Implementation)
Frequency: Per story/feature
Key Inputs:
- Feature description, test design, existing tests to avoid duplication
Key Outputs:
- Comprehensive test suite (
tests/e2e/,tests/api/) - Updated fixtures, README
{test_artifacts}/automation-summary.md(declareddefault_output_file, carries the Definition of Done checklist)
Browser Automation (CLI/MCP): Healing + Recording modes (fix tests, verify selectors)
How-To Guide: Run Automate
test-review
Section titled “test-review”Purpose: Audit test quality with 0-100 scoring
Phase: Phase 4 (optional per story), Release Gate
Frequency: Per epic or before release
Key Inputs:
- Test scope (file, directory, or entire suite)
Key Outputs:
{test_artifacts}/test-review.mdwith quality score (0-100) and grade (A-F)- Critical issues with fixes, and recommendations
- A
## Quality Criteria Assessmenttable: 14 criteria, eachPASS/PASS (n/a)/WARN/FAIL - Coverage guidance is informational only; coverage scoring and gates are handled by
trace
Scoring: one deduction ledger, never a weighted average. Four parallel subagents (determinism, isolation, maintainability, performance) each report violations; every violation carries the criteria-registry.md row that produced it, which pins its severity. Violations are deduplicated by file:line:row, then:
score = 100 - (Critical × 10 + High × 5 + Medium × 2 + Low × 1) + bonusclamped to 0-100. The bonus has exactly six categories, each worth 0 or 5 with no partial credit: Excellent BDD, Comprehensive Fixtures, Data Factories, Network-First, Perfect Isolation, All Test IDs. Award 5 only when the criterion holds across every reviewed file.
Recommendation is computed from the counts, not chosen: Block when Critical > 0, Request Changes when High > 0 or score < 70, Approve with Comments when any Medium or Low remain, otherwise Approve.
How-To Guide: Run Test Review
nfr-assess
Section titled “nfr-assess”Purpose: Audit implemented NFR evidence against defined thresholds
Phase: Release Gate; optional earlier evidence audit when implementation evidence exists
Frequency: Per release (enterprise projects)
Key Inputs:
- NFR categories (Security, Performance, Reliability, Maintainability), plus any
custom_nfr_categories - Thresholds from PRD, architecture, or
test-design - Evidence locations (test reports, scans, metrics, logs, monitoring, CI results)
Key Outputs:
{test_artifacts}/nfr-assessment.md- Category assessments (PASS/CONCERNS/FAIL)
- A Gate YAML snippet whose
audited_domainsblock declares one status per domain (PASS, CONCERNS, FAIL or N/A), so reading a domain status does not mean parsing the report’s prose - Mitigation plans
- Gate decision inputs
Boundary: Use test-design to plan NFR thresholds and evidence before implementation. Use nfr-assess after evidence exists to audit the evidence.
How-To Guide: Run NFR Evidence Audit
Purpose: Coverage traceability + quality gate decision
Phase: Phase 2/4 (traceability), Release Gate (decision)
Frequency: Baseline, per epic refresh, release gate
Two-Phase Workflow:
Phase 1: Coverage Traceability
Section titled “Phase 1: Coverage Traceability”- Coverage oracle items → test mapping
- Coverage classification (FULL/PARTIAL/NONE)
- Gap prioritization
- Output:
{test_artifacts}/traceability-matrix.md
Phase 2: Gate Decision
Section titled “Phase 2: Gate Decision”- PASS/CONCERNS/FAIL/WAIVED decision
- Evidence-based (coverage %, quality scores, NFRs)
- Outputs:
{test_artifacts}/e2e-trace-summary.json(machine-readable summary for CI), and{test_artifacts}/gate-decision.jsonwhenallow_gateis true and collection is gate-eligible
Gate Rules:
- P0 coverage: 100% required
- P1 coverage: ≥90% for PASS, 80-89% for CONCERNS, <80% FAIL
- Overall coverage: ≥80% required
How-To Guide: Run Trace
GATE (Agent Menu Shortcut)
Section titled “GATE (Agent Menu Shortcut)”Purpose: Release gate routing helper. It is not a standalone workflow and produces no artifact of its own.
Trigger: Type GATE in chat after loading the TEA agent (bmad-tea).
What it does: Determines which release gate evidence exists and guides you through the correct sequence:
- (Optional)
test-reviewfor a final test quality audit - (Optional)
nfr-assessfor an NFR Evidence Audit tracePhase 2 for the PASS/CONCERNS/FAIL/WAIVED gate decision
The agent asks which evidence is available and routes to the right workflow. It does not merge these workflows; each workflow is invoked separately in sequence.
When to use: When you are approaching a release and want a single starting point that covers all release gate checks without needing to know which workflow to invoke first.
Summary Table
Section titled “Summary Table”| Command | Phase | Frequency | Primary Output |
|---|---|---|---|
teach-me-testing | Learning | Once per learner | Progress + notes + summary |
test-design | 3, 4 | System + per epic | Test design + NFR plan |
framework | 3 | Once | Test infrastructure |
ci | 3 | Once | CI/CD pipeline |
atdd | 4 | Per story (optional) | Failing tests |
automate | 4 | Per story | Passing tests |
test-review | 4, Gate | Per epic/release | Quality report |
nfr-assess | Gate | Per release | NFR evidence audit |
trace | 2, 4, Gate | Baseline + refresh + gate | Coverage matrix + decision |
See Also
Section titled “See Also”How-To Guides (Detailed Instructions):
- Learn Testing with TEA Academy
- Setup Test Framework
- Setup CI Pipeline
- Run Test Design
- Run ATDD
- Run Automate
- Run Test Review
- Run NFR Evidence Audit
- Run Trace
Explanation:
- TEA Overview - Complete TEA lifecycle
- Engagement Models - When to use which workflows
Reference:
- TEA Configuration - Config options
- Knowledge Base Index - Pattern fragments