Skip to content
TEA docs in plain text: llms-full.txt

TEA Skills and Commands

Eight workflows have eight direct capability commands, plus the TEA agent and its module record. Everything below assumes TEA is installed with npx skills add bmad-code-org/bmad-method-test-architecture-enterprise and set up with bmad setup tea.

The same skill can be invoked in three ways:

SurfaceFormExample
Claude Code / Cursor / Windsurf/bmad-tea-<skill>/bmad-tea-automate
Codex$bmad-tea-<skill>$bmad-tea-automate
Inside a bmad-tea chatthe skill’s menu codeTA

Load the TEA agent with /bmad-tea or $bmad-tea to use its menu codes and GATE router. Each workflow also runs directly.

Framework and CI setup share bmad-tea-framework. Request CI setup explicitly through that command or the agent’s CI menu code. Existing CI customizations remain usable.

Automation uses bmad-tea-automate with red and expand modes. Acceptance scaffolds before implementation select red; coverage for existing code selects expand. The agent’s AT menu code selects red. With no task mode signal, the Automate command and TA menu code default to expand. Conflicting task mode signals prompt one mode question in an interactive run; an unattended run uses expand. Every default fallback states the selected mode in the final summary.

The table uses the skill names shown in navigation. Teach Me Testing carries no testarch segment in its command; NFR uses -nfr, and its stored identifier is nfr-assess.

SkillCommandMenu code
Automate/bmad-tea-automate · $bmad-tea-automateTA
Test Review/bmad-tea-test-review · $bmad-tea-test-reviewRV
Test Design/bmad-tea-test-design · $bmad-tea-test-designTD
Framework/bmad-tea-framework · $bmad-tea-frameworkTF
NFR/bmad-tea-nfr · $bmad-tea-nfrNR
Trace/bmad-tea-trace · $bmad-tea-traceTR
Teach Me Testing/bmad-tea-teach-me-testing · $bmad-tea-teach-me-testingTMT
Evaluate/bmad-tea-evaluate · $bmad-tea-evaluateEV

The agent also accepts AT for Automate red mode and CI for Framework CI scope. These codes invoke the canonical skills and have no separate direct commands.

Skill outputs use fixed folders under {test_artifacts}. Framework and CI setup save progress so you can resume an interrupted run. A file produced once per story, epic, or release carries that scope’s run_key in its name, such as epic-16, story-1-2-user-authentication, release-v1-2-0, or system. The folders, the run key rules, and what happens to files from earlier TEA versions are in Output Layout.

To ship your own skill, package it as custom content and attach it to bmad-tea via customization. See Extend TEA with Custom Skills.

Modes, scopes, and agent routing:

  • ATDD: Automate red mode
  • CI: Framework CI scope
  • GATE: Release gate routing helper (agent menu only)

Generate tests through the automation skill. expand mode adds coverage after implementation; red mode writes acceptance scaffolds before implementation. /bmad-tea-automate and TA default to expand. Request red mode explicitly for acceptance tests before implementation.

Create executes the generated tests and repairs selector, timing, data, network, hard-wait, or setup issues for up to three rounds. Expand aims for passing tests. Real product defects remain findings with their assertions intact. Red verifies that each test fails for its intended missing behavior. The summary lists repairs and remaining failures. Validate reports findings and Edit checks the requested changes; these operations never repair tests.

Phase: Phase 4 (Implementation)

Frequency: Per story/feature

Key Inputs:

  • Feature description, test design, existing tests to avoid duplication

Red Mode Inputs: Story with acceptance criteria, test design, and test levels. TEA builds a criterion registry, preserves supplied AC-<n> IDs, and emits one leaf scaffold per criterion with one criterion ID in each title.

Red Mode Outputs: Deliberately skipped acceptance scaffolds (tests/api/, tests/e2e/), {test_artifacts}/atdd/atdd-checklist-{story_key}.md, and story metadata / handoff paths for downstream bmad-build consumption (dev-story before BMAD 6.12). Create verifies an activated disposable copy with tea-atdd-red-check for compatible browserless loopback Playwright tests, tea-unit-check for Vitest and Jest scaffolds, or the native project runner with its original configuration and environment. It confirms the exact missing behavior and repairs generation or setup errors for up to three rounds. Saved scaffolds retain their skips for implementation.

Expand Mode Outputs:

  • Tests for the selected scenarios (tests/e2e/, tests/api/, or the stack-appropriate folders)
  • Updated fixtures, README
  • {test_artifacts}/automate/automation-summary-{run_key}.md (declared default_output_file, carries the Definition of Done checklist)

Browser Automation (CLI/MCP): Expand uses Healing + Recording modes (fix tests, verify selectors); red uses Recording for existing skeleton UI.

How-To Guide: Run Automate

Request Automate red mode with /bmad-tea-automate or $bmad-tea-automate and specify acceptance tests before implementation. The agent’s AT code selects red directly. Existing ATDD customizations and interrupted progress remain usable.

How-To Guide: Automate Red Mode


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/test-review-{run_key}.md with quality score (0-100) and grade (A-F)
  • Critical issues with fixes, and recommendations
  • A ## Quality Criteria Assessment table with the criteria that apply to the repository, each PASS / WARN / FAIL, and Test Duration as Not measured
  • Coverage guidance is informational only; coverage scoring and gates are handled by trace

The review uses a deduction ledger. Four review workers cover determinism, isolation, maintainability, and performance; tea_execution_mode controls their dispatch. Each violation cites a criteria-registry.md row that fixes its severity. After deduplication by file:line:row:

raw score = 100 - (Critical × 10 + High × 5 + Medium × 2 + Low × 1) + bonus

The raw score is clamped to 0-100. The effective score is the lower of the raw score and the cap for the highest finding severity: CRITICAL 69, HIGH 79, MEDIUM 89, or LOW 99. With no findings, the effective score equals the raw score. Five bonus categories each award 0 or 5: Comprehensive Fixtures, Data Factories, Network-First, Perfect Isolation, and All Test IDs. A bonus requires the criterion to hold across every reviewed file.

The recommendation follows these rules: 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


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_artifacts}/test-design/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_artifacts}/test-design/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_artifacts}/test-design/{project_name}-handoff.md: System-level only. Bridges the test design outputs into epic/story decomposition, for BMAD’s create-epics-and-stories skill

Epic-Level (ONE Document):

  • {test_artifacts}/test-design/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.

CLI: tea-test-design accepts project inputs and publishes a verified epic or system plan.

Browser Automation (CLI/MCP): Exploratory mode (live browser UI discovery)

How-To Guide: Run Test Design


Set up a test framework for the detected stack and selected runner, configure CI, or do both in one run. Your prompt selects the setup scope: framework only, CI only, or both. TEA infers scope when it can and asks “Do you want CI too?” once when CI scope is unclear in an interactive session. An unattended request with unclear scope runs framework setup only and states that CI was excluded. For both, TEA agrees the stack, framework, and test commands first, then can generate the scaffold and pipeline in parallel and validate them together. A CI request without a framework offers framework setup first.

Setup scope and operation are independent. Create starts setup, Resume picks up an interrupted run where it stopped, Validate reports checks without repairing outputs, and Edit revises the selected outputs and checks those changes. TF invokes Framework. Request CI setup explicitly to select its CI scope; the agent’s CI code selects it directly.

See Execution Targets for supported frameworks.

Phase: Phase 3 (Solutioning)

Frequency: Once per project

Key Inputs:

  • Setup scope (framework only, CI only, or both), tech stack, test framework choice, testing scope
  • For CI scope: platform, sharding, burn-in preferences, and existing evaluation CI plans

Key Outputs:

  • tests/README.md (declared default_output_file: setup, running tests, architecture, CI integration)
  • tests/ directory with support/fixtures/ and support/helpers/
  • A runner config for the detected stack, such as playwright.config.ts or cypress.config.ts for browser projects (see Execution Targets for other runners)
  • .env.example, .nvmrc
  • Sample tests with best practices
  • When CI is included: platform-specific pipeline (.github/workflows/test.yml by default), parallel execution, burn-in loops, and quality gates
  • An evaluation-<tier> job per tier named in an existing ci/evaluation-ci-plan.json, with an if: always() upload of the evaluation folder’s runs/
  • docs/ci.md (pipeline guide) and docs/ci-secrets-checklist.md (required secrets)

How-To Guide: Setup Test Framework

Request Framework CI setup with /bmad-tea-framework or $bmad-tea-framework and specify CI scope. The agent’s CI code selects that scope directly. Existing CI customizations and saved progress remain usable. Create, Resume, Validate, and Edit remain available.

How-To Guide: Framework CI Setup


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/nfr-assessment-{run_key}.md
  • Category assessments (PASS/CONCERNS/FAIL)
  • A Gate YAML snippet whose audited_domains block 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


Coverage traceability + quality gate decision

Phase: Phase 2/4 (traceability), Release Gate (decision)

Frequency: Baseline, per epic refresh, release gate

Two-Phase Skill:

  • Coverage oracle items → test mapping
  • Coverage classification (FULL/PARTIAL/NONE)
  • Gap prioritization
  • Output: {test_artifacts}/trace/traceability-matrix-{run_key}.md
  • PASS/CONCERNS/FAIL decision, with filed human waivers validated and reported separately
  • Coverage thresholds, oracle confidence, and recorded live verification determine the decision
  • Outputs: {test_artifacts}/trace/e2e-trace-summary-{run_key}.json (machine-readable summary for CI), and {test_artifacts}/trace/gate-decision-{run_key}.json when allow_gate is true and collection is gate-eligible

Gate Rules:

  • P0 coverage: 100% required
  • P1 coverage: ≥90% for PASS, ≥80% and <90% for CONCERNS, <80% FAIL
  • Overall coverage: ≥80% required
  • With no P1 requirements, P1 coverage counts as 100% for the gate
  • An inferred oracle with less than high confidence caps a passing decision at CONCERNS; with no active test cases, high confidence becomes medium
  • Requirements covered only by recorded live verification cap a passing decision at CONCERNS

The decision runs only when allow_gate is true and collection status is COLLECTED.

How-To Guide: Run Trace


Learn testing through seven sessions with quizzes and saved progress.

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:

  1. Quick Start (30 min): TEA Lite intro, engagement models
  2. Core Concepts (45 min): Risk-based testing, P0-P3, DoD
  3. Architecture (60 min): Fixtures, network-first, data factories
  4. Test Design (60 min): Risk assessment, coverage planning
  5. ATDD & Automate (60 min): Red acceptance scaffolds, green-phase coverage expansion
  6. Quality & Trace (45 min): Test review, traceability, metrics
  7. 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


Build and score an evaluation of a skill, agent, workflow, tool-use system, AI feature, or test-review mechanism. Identify gaps and produce a CI plan.

Phase: Phase 4 (Implementation). Run it whenever the target exists; it needs no earlier automate run. Handing its CI plan to framework with CI scope is an optional downstream step.

Frequency: Once per evaluated target, then again when the target’s behavior changes

Key Inputs:

  • The target to evaluate, which the skill inspects
  • Behavioral requirements you confirm
  • The evaluations_folder setting in _bmad/custom/bmad-tea-evaluate.toml (default evals)

Key Outputs:

  • <evaluations_folder>/<evaluationId>/: evaluation.json, requirements.md, contract.json, probes, corpus, scored runs under runs/, and the committed baseline/
  • <evaluations_folder>/<evaluationId>/ci/evaluation-ci-plan.json, which framework renders into a pipeline with CI scope
  • {test_artifacts}/evaluate/<evaluationId>/inspection-record.md

Runtime: tea-evaluate validates, digests, preflights, runs, scores and compares the folder and runs its CI tiers.

Tutorial: Evaluate Your First Skill

How-To Guides: Evaluate a Skill or Agent, and the other Evaluate guides under See Also


Release gate routing helper. It routes to skills 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:

  1. (Optional) test-review for a final test quality audit
  2. (Optional) nfr-assess for an NFR Evidence Audit
  3. trace Phase 2 for the derived PASS/CONCERNS/FAIL gate decision

The agent asks which evidence is available and invokes each needed skill in sequence.

Use GATE as a starting point when preparing a release.


How-To Guides (Detailed Instructions):

Evaluate:

Explanation:

Reference: