Skip to content
🤖 Consolidated, AI-optimized BMAD docs: llms-full.txt. Fetch this plain text file for complete context.
🚀 Build your own BMad modules and share them with the community! Get started or submit to the marketplace.

Troubleshooting Guide

This guide helps you diagnose and resolve common issues when using TEA (Test Engineering Architect).


Symptom: After running npx bmad-method install, TEA agent is not available.

Causes:

  • TEA was not selected during installation
  • Installation process failed silently
  • _bmad/tea/ directory was not created

Solutions:

  1. Verify TEA installation:

    Terminal window
    ls -la _bmad/tea/
    # Should show: agents/, workflows/, testarch/, module.yaml
  2. If missing, reinstall TEA:

    Terminal window
    npx bmad-method install
    # Select: Test Architect (TEA)
  3. Check installation logs for errors:

    Terminal window
    # Look for error messages during installation
    npx bmad-method install --verbose

Installing TEA Behind a Corporate Firewall (Local Repo)

Section titled “Installing TEA Behind a Corporate Firewall (Local Repo)”

If the BMAD installer can run but cannot fetch the Test Architect module from GitHub, point it to a local clone or internal mirror.

Goal: Make the installer clone TEA from a local path instead of the public repo.

  1. Clone TEA locally (or use your internal Git mirror):

    Terminal window
    git clone /path/to/your/internal/mirror/bmad-method-test-architecture-enterprise \
    /path/to/local/bmad-method-test-architecture-enterprise
  2. Edit the BMAD installer module list in the BMAD repo you are running the installer from:

    BMAD-METHOD/tools/cli/external-official-modules.yaml

    Update the TEA entry to point to your local path:

    bmad-method-test-architecture-enterprise:
    url: /path/to/local/bmad-method-test-architecture-enterprise
    module-definition: src/module.yaml
    code: tea
    name: 'Test Architect'
    description: 'Master Test Architect for quality strategy, test automation, and release gates'
    defaultSelected: false
    type: bmad-org
    npmPackage: bmad-method-test-architecture-enterprise
  3. Run the installer:

    Terminal window
    npx bmad-method install

Notes:

  • url: can be a local filesystem path or an internal Git mirror URL.
  • If your environment blocks npm, use an internal npm proxy or allow npm only for the local module cache.

Symptom: Installation process hangs or times out.

Causes:

  • Network connectivity issues
  • NPM registry timeout
  • Disk space issues

Solutions:

  1. Check network connectivity:

    Terminal window
    ping registry.npmjs.org
  2. Check available disk space:

    Terminal window
    df -h
  3. Clear NPM cache and retry:

    Terminal window
    npm cache clean --force
    npx bmad-method install
  4. Use alternative registry:

    Terminal window
    npm config set registry https://registry.npmjs.org/

Symptom: Error message: Error: Agent '_bmad/tea' not found or Agent 'tea' could not be loaded.

Causes:

  • TEA not installed
  • Incorrect agent path
  • Corrupted installation

Solutions:

  1. Verify TEA agent skill exists:

    Terminal window
    ls -la _bmad/tea/agents/bmad-tea/SKILL.md
  2. Validate agent schema:

    Terminal window
    # Check for schema errors
    node tools/validate-agent-schema.js
  3. Reinstall TEA if corrupted:

    Terminal window
    rm -rf _bmad/tea/
    npx bmad-method install

Symptom: TEA agent loads successfully, but workflow triggers (TF, TD, AT, etc.) don’t execute.

Causes:

  • Workflow files missing
  • Incorrect workflow paths in agent definition
  • YAML syntax errors in workflow files

Solutions:

  1. Check workflow directories exist:

    Terminal window
    ls -la _bmad/tea/workflows/testarch/
    # Should show: atdd/, automate/, ci/, framework/, nfr-assess/, test-design/, test-review/, trace/
  2. Validate workflow YAML files:

    Terminal window
    # Check each workflow
    cat _bmad/tea/workflows/testarch/bmad-testarch-test-design/workflow.yaml
  3. Test workflow trigger directly:

    # Try full slash command
    /bmad:tea:test-design
    # Codex skill-mode alternative
    $bmad-tea-testarch-test-design

Symptom: A custom workflow used to be available from TEA, but it no longer appears in the bmad-tea menu after updates.

Cause: TEA is now a standalone module. Custom workflows are not merged into TEA core automatically.

Solution:

  1. Package the workflow as custom content or a custom module instead of editing TEA directly.
  2. Attach it to bmad-tea using the generated agent customization file under _bmad/_config/agents/.
  3. Re-run npx bmad-method install so the customization and workflow registration are refreshed.

See Extend TEA with Custom Workflows.


GitHub Copilot Slash Command Fails with “No such file or directory”

Section titled “GitHub Copilot Slash Command Fails with “No such file or directory””

Symptom: A workflow or custom skill launched through GitHub Copilot in VS Code fails with an error such as:

python3 scripts/resolve_customization.py ...
can't open file 'C:\path\to\workspace\scripts\resolve_customization.py': [Errno 2] No such file or directory

Cause: GitHub Copilot executes skill commands from the workspace root, not from the installed skill folder under .github/skills/.

Fix:

  1. Anchor skill-local files with {skill-root}.
  2. Anchor repository files with {project-root}.
  3. Update workflow entrypoints so sibling files are loaded from {skill-root}, not from implicit relative paths.

Good examples:

Read `{skill-root}/workflow.md`
Load `{skill-root}/steps-c/step-01-preflight.md`
Run: `python3 {skill-root}/scripts/resolve_customization.py --key inject`
Read `{project-root}/_bmad/tea/config.yaml`

Problematic examples:

Read `workflow.md`
Load `steps-c/step-01-preflight.md`
Run: `python3 scripts/resolve_customization.py --key inject`

If you are creating a custom TEA workflow, see Extend TEA with Custom Workflows and author it with {skill-root} / {project-root} from the start.

Symptom: Workflow executes but doesn’t generate expected files (test designs, reports, tests).

Causes:

  • Output directory doesn’t exist or lacks write permissions
  • Variable test_artifacts not configured
  • Workflow completed but didn’t reach output generation step

Solutions:

  1. Check output directory configuration:

    Terminal window
    cat _bmad/tea/module.yaml | grep test_artifacts
  2. Create output directory if missing:

    Terminal window
    mkdir -p test-results
  3. Check directory permissions:

    Terminal window
    ls -la test-results/
    # Should be writable
  4. Verify workflow completed all steps:

    # Check Claude's response for completion message
    # Look for: "✓ Test design complete" or similar

Symptom: Workflow reports subagent failure, e.g., “API test generation subagent failed”.

Causes:

  • Subagent step file missing
  • Temp file write permissions issue
  • Invalid subagent output format
  • Requested execution mode not supported by runtime

Solutions:

  1. Verify subagent step files exist:

    Terminal window
    # For automate workflow
    ls -la _bmad/tea/workflows/testarch/bmad-testarch-automate/steps-c/step-03*.md
    # Should show: step-03a-*.md, step-03b-*.md, step-03c-aggregate.md
  2. Check temp file directory permissions:

    Terminal window
    ls -la /tmp/ | grep bmad-tea
    # Should show temp files if workflow ran
  3. Look for error messages in subagent output:

    # Check Claude's response for specific error details
  4. Check TEA orchestration mode in config:

    Terminal window
    grep -E "tea_execution_mode|tea_capability_probe" _bmad/tea/config.yaml
  5. If runtime does not support parallel worker launch, use deterministic fallback:

    tea_execution_mode: 'sequential'
    tea_capability_probe: true

Symptom: Workflow executes but doesn’t reference knowledge base patterns (e.g., no mention of “test-quality”, “network-first”).

Causes:

  • tea-index.csv missing or corrupted
  • Knowledge fragment files missing
  • Workflow manifest doesn’t specify fragments

Solutions:

  1. Verify tea-index.csv exists:

    Terminal window
    cat _bmad/tea/agents/bmad-tea/resources/tea-index.csv | wc -l
    # Should show 43 lines (header + 42 fragments)
  2. Check knowledge fragment files:

    Terminal window
    ls -la _bmad/tea/agents/bmad-tea/resources/knowledge/ | wc -l
    # Should show 40+ files
  3. Validate CSV format:

    Terminal window
    head -5 _bmad/tea/agents/bmad-tea/resources/tea-index.csv
    # Should show: id,name,description,tags,tier,fragment_file
  4. Check workflow manifest:

    Terminal window
    # Each workflow.yaml should specify knowledge_fragments
    grep -A 5 "knowledge_fragments" _bmad/tea/workflows/testarch/bmad-testarch-test-design/workflow.yaml

Symptom: Installation completes without asking for TEA configuration (test_artifacts, Playwright Utils, etc.).

Causes:

  • Variables marked as prompt: false in module.yaml
  • Installation running in non-interactive mode
  • Module.yaml misconfigured

Solutions:

  1. Check variable prompt settings:

    Terminal window
    cat _bmad/tea/module.yaml | grep -A 3 "test_artifacts"
    # Should show prompt: true
  2. Manually edit module.yaml if needed:

    Terminal window
    # Update _bmad/tea/module.yaml
    vi _bmad/tea/module.yaml
  3. Run installation in interactive mode:

    Terminal window
    npx bmad-method install --interactive

Symptom: Workflows don’t include Playwright Utils references even though tea_use_playwright_utils is enabled.

Causes:

  • Variable set to false in module.yaml
  • Playwright Utils knowledge fragments missing
  • Workflow doesn’t support Playwright Utils integration

Solutions:

  1. Verify variable setting:

    Terminal window
    cat _bmad/tea/module.yaml | grep tea_use_playwright_utils
    # Should show: default: true (if enabled)
  2. Check Playwright Utils fragments exist:

    Terminal window
    grep -i "playwright-utils" _bmad/tea/agents/bmad-tea/resources/tea-index.csv
    # Should show 6 fragments
  3. Note: Only certain workflows integrate Playwright Utils:

    • ✅ Framework (TF)
    • ✅ Test Design (TD)
    • ✅ ATDD (AT)
    • ✅ Automate (TA)
    • ✅ Test Review (RV)
    • ❌ CI, Trace, NFR-Assess (not applicable)

Symptom: Test files created in unexpected directory.

Causes:

  • test_artifacts variable misconfigured
  • Relative path confusion
  • Working directory changed

Solutions:

  1. Check test_artifacts configuration:

    Terminal window
    cat _bmad/tea/module.yaml | grep test_artifacts
  2. Use absolute paths:

    Terminal window
    # Specify absolute path
    export TEST_ARTIFACTS=/path/to/project/test-results
  3. Verify working directory:

    Terminal window
    pwd
    # Should be project root

Symptom: TEA generates tests with JavaScript/TypeScript syntax errors.

Causes:

  • Framework configuration mismatch (Playwright vs Cypress)
  • Wrong test template loaded
  • Knowledge fragment syntax error

Solutions:

  1. Specify framework explicitly:

    # In chat with TEA
    "Generate Playwright tests using TypeScript"
  2. Validate generated tests:

    Terminal window
    npx eslint tests/**/*.spec.ts
  3. Check knowledge fragments for errors:

    Terminal window
    # Validate markdown syntax
    markdownlint _bmad/tea/agents/bmad-tea/resources/knowledge/*.md

Symptom: Error: EACCES: permission denied when writing files.

Causes:

  • Directory not writable
  • File owned by different user
  • Disk full

Solutions:

  1. Check directory permissions:

    Terminal window
    ls -la test-results/
  2. Fix permissions:

    Terminal window
    chmod -R u+w test-results/
  3. Check disk space:

    Terminal window
    df -h

Symptom: Tests reference Playwright Utils but imports fail.

Causes:

  • Playwright Utils not installed
  • Wrong import path
  • Version mismatch

Solutions:

  1. Install Playwright Utils:

    Terminal window
    npm install @muratkeremozcan/playwright-utils
  2. Verify installation:

    Terminal window
    npm ls @muratkeremozcan/playwright-utils
  3. Check import paths in generated tests:

    // Should be:
    import { expect, test } from '@muratkeremozcan/playwright-utils';

Symptom: tea_browser_automation set to "auto" or "cli" or "mcp" but no browser features in outputs.

Causes:

  • CLI not installed globally (for cli or auto mode)
  • MCP server not configured in IDE (for mcp or auto mode)
  • Variable not read correctly
  • Workflow doesn’t support browser automation

Solutions:

  1. For CLI mode, verify CLI is installed:

    Terminal window
    playwright-cli --version
    # If missing: npm install -g @playwright/cli@latest
  2. For MCP mode, verify MCP configuration in IDE:

    {
    "mcpServers": {
    "playwright": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@playwright/mcp@latest"]
    }
    }
    }

    See Configure Browser Automation — MCP Setup for the exact config file path for your tool (Claude Code, Codex, Gemini CLI, Cursor, Windsurf).

  3. Check variable setting:

    Terminal window
    cat _bmad/tea/config.yaml | grep tea_browser_automation
  4. Restart IDE after configuration changes.


Symptom: Workflows run for several minutes without completing.

Causes:

  • Large codebase exploration
  • Many test files to review
  • Subagent execution overhead
  • Network latency (if using web-based Claude)

Solutions:

  1. Scope workflows to specific directories:

    # Instead of "review all tests"
    "Review tests in tests/e2e/checkout/"
  2. Use selective workflows:

    • Use automate for targeted test generation
    • Use test-review on specific files, not entire suite
  3. Check system resources:

    Terminal window
    top
    # Look for CPU/memory usage

Symptom: Initial workflow load takes 30+ seconds.

Causes:

  • Up to 42 fragments loading at once (depends on workflow and enabled integrations)
  • Large fragment file sizes
  • Disk I/O bottleneck

Solutions:

  1. This is expected behavior - knowledge base loading is one-time per workflow
  2. Use cached knowledge (workflows cache fragments in memory)
  3. For repeated runs, performance should improve

Enable debug logging for detailed diagnostics:

Terminal window
# Set debug environment variable
export DEBUG=bmad:tea:*
# Run workflow with verbose output
# (Note: Exact implementation depends on BMAD Method)

When reporting issues, include:

  1. TEA Version:

    Terminal window
    cat _bmad/tea/module.yaml | grep version
  2. BMAD Method Version:

    Terminal window
    bmad --version
  3. Node Version:

    Terminal window
    node --version
  4. Operating System:

    Terminal window
    uname -a
  5. Directory Structure:

    Terminal window
    tree -L 2 _bmad/tea/
  6. Error Messages: Copy full error message and stack trace

  7. Steps to Reproduce: Exact commands that trigger the issue

  1. Documentation: test-architect.bmad-method.org
  2. GitHub Issues: Report a bug
  3. GitHub Discussions: Ask a question

Check these first:

  • TEA is installed: ls -la _bmad/tea/
  • Using the correct invocation for your tool: slash namespace /bmad:tea:* (not /bmad:bmm:tea:*) or Codex skill equivalents ($bmad-tea-*)
  • Module.yaml exists and is valid
  • Knowledge base files present (42 fragments)
  • Output directory exists and is writable
  • No disk space issues: df -h
  • Node version >=20.0.0: node --version
  • Searched existing issues on GitHub

Fix: Reinstall TEA module via npx bmad-method install

”Knowledge fragment ‘test-quality’ not found”

Section titled “”Knowledge fragment ‘test-quality’ not found””

Fix: Verify _bmad/tea/agents/bmad-tea/resources/tea-index.csv exists and lists the fragment

Fix: Create directory and fix permissions: mkdir -p test-results && chmod u+w test-results

”Workflow ‘test-design’ failed at step 3”

Section titled “”Workflow ‘test-design’ failed at step 3””

Fix: Check step file exists: _bmad/tea/workflows/testarch/bmad-testarch-test-design/steps-c/step-03-*

Fix: Validate YAML syntax: node tools/validate-agent-schema.js

Fix: Large codebases may timeout. Scope workflow to smaller directory.


Run this validation script:

#!/bin/bash
echo "Validating TEA Installation..."
# Check agent skill directory
if [ -f "_bmad/tea/agents/bmad-tea/SKILL.md" ]; then
echo "✓ Agent skill exists"
else
echo "✗ Agent skill missing"
fi
# Check workflows
for workflow in atdd automate ci framework nfr-assess test-design test-review trace; do
if [ -f "_bmad/tea/workflows/testarch/$workflow/workflow.yaml" ]; then
echo "✓ Workflow: $workflow"
else
echo "✗ Workflow missing: $workflow"
fi
done
# Check knowledge base
fragment_count=$(ls _bmad/tea/agents/bmad-tea/resources/knowledge/*.md 2>/dev/null | wc -l)
echo "Knowledge fragments: $fragment_count (expected: 42)"
# Check tea-index.csv
csv_lines=$(wc -l < _bmad/tea/agents/bmad-tea/resources/tea-index.csv 2>/dev/null || echo "0")
echo "TEA index lines: $csv_lines (expected: 43)"
echo "Validation complete!"

If all else fails, reset TEA completely:

Terminal window
# Backup existing configuration
cp _bmad/tea/module.yaml /tmp/tea-module-backup.yaml
# Remove TEA
rm -rf _bmad/tea/
# Reinstall
npx bmad-method install
# Select: Test Architect (TEA)
# Restore configuration if needed
cp /tmp/tea-module-backup.yaml _bmad/tea/module.yaml

Still stuck? Open a GitHub Issue with diagnostic information.