From Business Idea to Parallel Story Execution: A Complete BMAD + TEA Workflow#
Fabricio Ceolin
Principal Engineer, The Edge Agent Project
https://www.linkedin.com/in/fabceolin/
Abstract#
Taking a business idea from conception to production code requires disciplined processes that balance thoroughness with efficiency. This article presents a complete end-to-end workflow combining the BMAD Method (Breakthrough Method of Agile AI Driven Development) with The Edge Agent’s DOT workflow orchestration. We demonstrate how to progress from initial brainstorming with an AI Business Analyst through PRD creation, architecture design, and epic/story generation, culminating in parallel story execution that reduces implementation time by 25-70%. The integration of structured AI agent workflows with dependency-aware parallel execution provides a reproducible, scalable approach to software development.
Keywords: BMAD, DOT, Workflow Orchestration, AI Agents, Agile Development, Parallel Execution
1. Introduction#
Modern software development faces a paradox: AI tools can accelerate individual tasks dramatically, but coordinating the complete journey from idea to implementation remains challenging. Teams often struggle with:
Incomplete requirements - Starting development without sufficient problem definition
Misaligned artifacts - PRDs that don’t match architecture, stories that don’t trace to requirements
Sequential bottlenecks - Executing independent stories one at a time
Lost context - Critical decisions scattered across conversations
This article presents a solution: combining BMAD’s structured AI agent workflows with TEA’s parallel execution capabilities. The result is a reproducible pipeline from business conception to parallel story execution.
1.1 The Complete Journey#
flowchart TB
subgraph Phase1["PHASE 1: ANALYSIS"]
Analyst["Analyst<br/>(Mary)<br/>• Brainstorm<br/>• Research<br/>• Brief"]
end
subgraph Phase2["PHASE 2: PLANNING"]
PM["PM<br/>(John)<br/>• Create PRD<br/>• Validate"]
end
subgraph Phase3["PHASE 3: SOLUTIONING"]
Architect["Architect<br/>(Winston)<br/>• Design<br/>• Decisions<br/>• Epics"]
end
subgraph Phase4["PHASE 4: IMPLEMENTATION"]
subgraph DOT["DOT Parallel Execution"]
Start([Start])
Story1["Story 1"]
Story2["Story 2"]
Story3["Story 3"]
End([End])
Start --> Story1 & Story2 & Story3
Story1 & Story2 & Story3 --> End
end
end
Analyst --> PM --> Architect --> DOT
2. Prerequisites#
Before starting, ensure you have:
2.1 BMAD-METHOD Installation#
# Install BMAD via npm (recommended)
npx bmad-method install
# Follow the installer prompts
The installer will set up the _bmad/ directory with all agents and workflows.
2.2 TEA Installation#
# Install The Edge Agent from GitHub
pip install "git+https://github.com/fabceolin/the_edge_agent.git#subdirectory=python"
# Verify installation
tea --version
2.3 Command Naming Convention#
BMAD commands vary based on installation. Common patterns:
Workflow Command |
Agent Command (if enabled) |
|---|---|
|
|
|
|
|
|
|
|
|
|
Tip
Run /bmad-help to see all available commands in your installation.
2.4 Directory Structure#
your-project/
├── .bmad/ # BMAD-METHOD (submodule or copy)
│ ├── agents/
│ ├── workflows/
│ └── templates/
├── _bmad-output/
│ ├── planning-artifacts/ # PRD, Architecture, Epics
│ └── implementation-artifacts/ # Stories, Sprint Status
├── examples/
│ ├── dot/ # DOT workflow files
│ └── workflows/ # TEA workflow YAMLs
└── src/ # Your source code
3. Phase 1: Analysis with Business Analyst#
The journey begins with the Business Analyst agent (Mary) who helps discover and define the problem space.
3.1 Get Help First#
# Start by asking BMAD for guidance
/bmad-help
# Or ask specific questions
/bmad-help How should I start planning a new web application?
3.2 Brainstorm Session (Optional)#
For complex projects, start with brainstorming:
# Start brainstorming workflow
/brainstorm-project
User prompt:
I want to explore a real-time collaboration platform for distributed teams.
Mary (the Analyst) will guide you through structured brainstorming techniques:
Six Thinking Hats
SCAMPER analysis
Mind mapping
Affinity diagrams
3.3 Market/Domain Research (Optional)#
After brainstorming, conduct research if needed:
# Market research
/market-research
# Domain research (for specialized fields)
/domain-research
# Technical research (feasibility)
/technical-research
3.4 Create Product Brief#
The Product Brief captures essential problem definition:
/product-brief
Follow the guided workflow to define:
Problem statement
Target users
Success criteria
MVP scope
Output location: _bmad-output/planning-artifacts/product-brief.md
3.5 Validate Brief#
Before proceeding, validate the brief:
/validate-brief
This checks for:
Problem clarity
User definition
Success criteria
Scope boundaries
4. Phase 2: Planning with Product Manager#
With a validated brief, the Product Manager (John) creates the detailed PRD.
4.1 Create PRD#
# Start the PRD creation workflow
/create-prd
John (the PM) guides you through 12 collaborative discovery steps:
Problem statement refinement
User personas definition
Success metrics (OKRs)
User journeys
Domain compliance requirements
Innovation considerations
Project type classification
Scope definition
Functional requirements
Non-functional requirements
Constraints and assumptions
Final review
Output location: _bmad-output/planning-artifacts/prd.md
4.2 Validate PRD#
The PRD validation includes 13 quality checks:
# Validate the PRD
/validate-prd
Validation covers:
Format correctness
Density (sufficient detail)
Brief coverage (traceability)
Measurability (quantifiable metrics)
No implementation leakage
Domain compliance
Completeness
Warning
Do NOT proceed to architecture until the PRD passes validation. Incomplete PRDs cause cascading issues in later phases.
5. Phase 3: Solutioning with Architect#
The Architect (Winston) translates requirements into technical design.
5.1 Create Architecture#
# Start the architecture workflow
/create-architecture
Winston (the Architect) guides you through 8-step collaborative discovery:
Initialize and gather inputs
Context gathering (constraints, existing systems)
Starter patterns selection
Technical decisions (database, API, auth, etc.)
Architectural patterns (microservices, monolith, etc.)
Structure definition (components, boundaries)
Validation against requirements
Completion and handoff
Output location: _bmad-output/planning-artifacts/architecture.md
5.2 Validate Architecture (Optional)#
# Validate architecture completeness
/validate-architecture
5.3 Create Epics and Stories#
With architecture defined, break down into epics and stories:
# Create epics and stories from PRD and architecture
/create-epics-and-stories
This produces:
Prioritized epics (E1, E2, E3…)
User stories with BDD acceptance criteria
Dependency relationships between stories
Output location: _bmad-output/planning-artifacts/epics-and-stories.md
5.4 Implementation Readiness Check#
CRITICAL GATE: Before any development, verify alignment:
# Check all artifacts are aligned
/implementation-readiness
This check ensures:
✅ PRD → Epics traceability
✅ Epics → Stories breakdown complete
✅ Architecture → Stories alignment
✅ Story dependencies mapped
6. Phase 4: Sprint Planning#
The Scrum Master (Bob) prepares stories for development.
6.1 Initialize Sprint#
# Initialize sprint tracking
/sprint-planning
This creates the sprint status tracking file:
Output location: _bmad-output/implementation-artifacts/sprint-status.yaml
sprint:
name: "Epic 1 - Foundation"
start_date: "2024-01-15"
stories:
- id: "E1-S1"
title: "User Authentication"
status: pending
dependencies: []
- id: "E1-S2"
title: "User Profile Management"
status: pending
dependencies: ["E1-S1"]
- id: "E1-S3"
title: "Team Creation"
status: pending
dependencies: ["E1-S1"]
6.2 Create Individual Stories#
For each story in the sprint:
# Create detailed story file
/create-story
# Follow the prompts to select which story to create
# Example: E1-S1 (User Authentication)
This produces a complete story file with:
User story (As a… I want… so that…)
Acceptance criteria (Given/When/Then)
Ordered tasks and subtasks
Implementation notes
Test requirements
Output location: _bmad-output/implementation-artifacts/E1-S1-user-authentication.md
6.3 Validate Story (Optional)#
# Validate story before development
/validate-story
7. Generating DOT Files for Parallel Execution#
With stories created, generate a DOT file for parallel execution.
7.1 Analyze Dependencies#
First, understand story dependencies from the sprint status:
# Example dependency graph
E1-S1 (Auth) ─────┬──▶ E1-S2 (Profile)
│
└──▶ E1-S3 (Team)
│
E1-S4 (Permissions) ◀───────┘
7.2 Create DOT File#
Create a DOT file representing the workflow:
// File: examples/dot/epic-1-development.dot
digraph epic_1_development {
rankdir=TB;
node [shape=box];
Start [label="Start", shape=ellipse];
End [label="End", shape=ellipse];
// Phase 1: Foundation (sequential)
subgraph cluster_foundation {
label="1. Foundation";
E1_S1 [label="E1-S1-user-authentication"];
}
// Phase 2: Parallel Features (can run simultaneously)
subgraph cluster_features {
label="2. Features (Parallel)";
E1_S2 [label="E1-S2-user-profile"];
E1_S3 [label="E1-S3-team-creation"];
}
// Phase 3: Integration (depends on features)
subgraph cluster_integration {
label="3. Integration";
E1_S4 [label="E1-S4-permissions"];
}
// Edges define execution order
Start -> E1_S1;
E1_S1 -> E1_S2;
E1_S1 -> E1_S3;
E1_S2 -> E1_S4;
E1_S3 -> E1_S4;
E1_S4 -> End;
}
Mermaid Equivalent:
flowchart TB
Start([Start])
End([End])
subgraph Foundation["1. Foundation"]
E1_S1["E1-S1-user-authentication"]
end
subgraph Features["2. Features (Parallel)"]
E1_S2["E1-S2-user-profile"]
E1_S3["E1-S3-team-creation"]
end
subgraph Integration["3. Integration"]
E1_S4["E1-S4-permissions"]
end
Start --> E1_S1
E1_S1 --> E1_S2
E1_S1 --> E1_S3
E1_S2 --> E1_S4
E1_S3 --> E1_S4
E1_S4 --> End
The DOT graph shows a diamond dependency pattern where:
E1-S1 (authentication) must complete first
E1-S2 and E1-S3 can run in parallel after E1-S1
E1-S4 (permissions) waits for both E1-S2 and E1-S3 to complete
7.3 Critical: Label Matching#
Labels MUST match actual story file names. Verify:
# List actual story files
ls _bmad-output/implementation-artifacts/*.md | xargs -I{} basename {} .md
# Output:
# E1-S1-user-authentication
# E1-S2-user-profile
# E1-S3-team-creation
# E1-S4-permissions
Use these exact basenames as labels in your DOT file.
8. Executing Stories in Parallel#
8.1 Choose the Right Workflow#
Workflow |
Purpose |
When to Use |
|---|---|---|
|
Validate story quality (QA checks) |
Before development |
|
Dev → QA → SM cycle |
Standard development |
|
Implement stories (Dev cycle) |
During development |
|
Complete validation + development |
End-to-end |
TEA-CLI-001: Workflows can be loaded directly from GitHub using github:// URLs:
8.2 Validation Run (Recommended First)#
Before development, validate all stories:
# Using GitHub URL (recommended - always gets latest workflow)
tea run --from-dot examples/dot/epic-1-development.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-validation.yaml \
--dot-max-parallel 3 \
--dot-session epic1-validation
# Or using local workflow file
tea run --from-dot examples/dot/epic-1-development.dot \
--dot-workflow examples/workflows/bmad-story-v6-validation.yaml \
--dot-max-parallel 3 \
--dot-session epic1-validation
8.3 Development Run#
Execute story development in parallel:
# Using GitHub URL with verbose output for debugging
TEA_SHELL_VERBOSE=1 tea run --from-dot examples/dot/epic-1-development.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-development.yaml \
--dot-max-parallel 2 \
--dot-session epic1-dev
# Or use the standard cycle (implementation only, no TEA QA phases)
TEA_SHELL_VERBOSE=1 tea run --from-dot examples/dot/epic-1-development.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-standard-cycle.yaml \
--dot-max-parallel 2 \
--dot-session epic1-dev
8.4 Monitor Progress#
# Attach to tmux session
tmux attach -t epic1-dev
# List all windows (stories)
tmux list-windows -t epic1-dev
# View specific story progress
tmux select-window -t epic1-dev:E1-S2-user-profile
8.5 Expected Output#
Graph loaded: 4 nodes in 3 phases
=== Execution Plan ===
Phase 1 (sequential): E1-S1-user-authentication
Phase 2 (parallel): E1-S2-user-profile, E1-S3-team-creation
Phase 3 (sequential): E1-S4-permissions
>>> Phase 1/3: 1 node(s)...
Starting: E1-S1-user-authentication
✓ Completed: E1-S1-user-authentication (423.7s)
>>> Phase 2/3: 2 node(s)...
Starting: E1-S2-user-profile
Starting: E1-S3-team-creation
✓ Completed: E1-S3-team-creation (312.4s)
✓ Completed: E1-S2-user-profile (389.1s)
>>> Phase 3/3: 1 node(s)...
Starting: E1-S4-permissions
✓ Completed: E1-S4-permissions (278.6s)
=== Execution Complete ===
Total time: 1403.8s (vs sequential: 1803.8s)
Parallelization savings: 22%
9. Complete Workflow Example#
Here’s a complete example from idea to parallel execution:
9.1 Day 1: Analysis#
# Get oriented
/bmad-help How should I start a new project?
# Optional: Brainstorm ideas
/brainstorm-project
# "Let's explore a task management app for remote teams"
# Optional: Research if needed
/market-research
# Create product brief (REQUIRED)
/product-brief
# Validate the brief
/validate-brief
9.2 Day 2: Planning#
# Create PRD (REQUIRED)
/create-prd
# Validate PRD
/validate-prd
9.3 Day 3: Architecture#
# Create Architecture (REQUIRED)
/create-architecture
# Validate architecture
/validate-architecture
# Create Epics and Stories (REQUIRED)
/create-epics-and-stories
# CRITICAL: Check alignment
/implementation-readiness
9.4 Day 4: Sprint Setup#
# Initialize sprint (REQUIRED)
/sprint-planning
# Create each story
/create-story # Select E1-S1
/create-story # Select E1-S2
/create-story # Select E1-S3
/create-story # Select E1-S4
# Optional: Validate stories
/validate-story
9.5 Day 5: Generate DOT and Execute#
# Create DOT file (see Section 7)
vim examples/dot/epic-1-development.dot
# Validate stories first (using GitHub URL)
tea run --from-dot examples/dot/epic-1-development.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-validation.yaml \
--dot-max-parallel 3
# Execute development (using GitHub URL)
tea run --from-dot examples/dot/epic-1-development.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-development.yaml \
--dot-max-parallel 2
# Or run the full cycle (validation + development)
tea run --from-dot examples/dot/epic-1-development.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-full-with-qa-cycle.yaml \
--dot-max-parallel 2
10. Best Practices#
10.1 Artifact Traceability#
Maintain clear traceability through all phases:
Brief → PRD → Architecture → Epic → Story → Code
Each document should reference its predecessors.
10.2 Validation Gates#
Never skip validation steps:
Gate |
Check |
Consequence of Skipping |
|---|---|---|
Brief Validation |
Problem clarity |
Vague PRD |
PRD Validation |
Requirements completeness |
Missing features |
Architecture Validation |
Technical feasibility |
Rework during dev |
Implementation Readiness |
Alignment |
Blocked stories |
Story Validation |
Clarity |
Developer confusion |
10.3 Parallel Execution Guidelines#
Scenario |
Recommended |
|---|---|
LLM-heavy (Claude Code) |
2-3 |
Simple validation |
4-5 |
Resource-constrained machine |
1-2 |
10.4 DOT File Management#
Store DOT files in version control
Use meaningful names:
epic-1-validation.dot,sprint-3-development.dotInclude comments explaining dependencies
Update DOT files when story dependencies change
11. Troubleshooting#
11.1 Story File Not Found#
Error: Could not resolve story path for label 'E1-S1'
Solution: Ensure label matches exact file basename:
ls _bmad-output/implementation-artifacts/ | grep -i E1-S1
11.2 Circular Dependency Detected#
Error: Circular dependency: E1-S2 -> E1-S3 -> E1-S2
Solution: Review story dependencies and remove the cycle:
// Wrong: Creates cycle
E1_S2 -> E1_S3;
E1_S3 -> E1_S2;
// Correct: Linear dependency
E1_S2 -> E1_S3;
11.3 Stories Execute Sequentially Despite Parallel Config#
Check that stories have proper Start dependencies:
// Wrong: Sequential chain
Start -> E1_S1 -> E1_S2 -> E1_S3;
// Correct: Parallel from Start
Start -> E1_S1;
Start -> E1_S2;
Start -> E1_S3;
12. Conclusion#
The combination of BMAD’s structured AI workflows with TEA’s DOT parallel execution provides:
Disciplined discovery - Brainstorming through deployment with quality gates
Artifact alignment - Traceability from brief to code
Efficient execution - 25-70% time savings through parallelization
Reproducibility - Version-controlled workflows and DOT files
Visibility - Real-time monitoring via tmux
By following this workflow, teams can transform vague ideas into production code with confidence, leveraging AI agents for analysis and planning while using parallel execution for implementation efficiency.
13. Quick Reference#
BMAD Workflow Commands#
Phase |
Command |
Purpose |
|---|---|---|
Help |
|
Get guidance on next steps |
Analysis |
|
Facilitated brainstorming |
Analysis |
|
Create product brief |
Analysis |
|
Validate brief quality |
Planning |
|
Create PRD |
Planning |
|
Validate PRD quality |
Solutioning |
|
Technical design |
Solutioning |
|
Validate architecture |
Solutioning |
|
Break down work |
Solutioning |
|
CRITICAL alignment check |
Implementation |
|
Initialize sprint |
Implementation |
|
Create individual story |
Implementation |
|
Implement story |
Implementation |
|
Review code quality |
Quick Flow (Simple Projects)#
/quick-spec # Analyze and create tech spec
/quick-dev # Implement
/code-review # Validate
Phase Summary#
Phase |
Agent |
Key Output |
Next Step |
|---|---|---|---|
1. Analysis |
Analyst (Mary) |
Product Brief |
Create PRD |
2. Planning |
PM (John) |
PRD |
Create Architecture |
3. Solutioning |
Architect (Winston) |
Architecture, Epics |
Sprint Planning |
4. Implementation |
SM (Bob) + Dev (Amelia) |
Stories, Code |
Review + Deploy |
TEA Commands#
# Validate stories (GitHub URL - recommended)
tea run --from-dot workflow.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-validation.yaml
# Develop stories (GitHub URL)
tea run --from-dot workflow.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-development.yaml
# Standard cycle: Dev → QA → SM (GitHub URL)
tea run --from-dot workflow.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-standard-cycle.yaml
# Full cycle with QA validation (GitHub URL)
tea run --from-dot workflow.dot \
--dot-workflow github://fabceolin/the_edge_agent@main/examples/workflows/bmad-story-v6-full-with-qa-cycle.yaml
# Dry run (preview plan)
tea run --from-dot workflow.dot --dot-dry-run
# Monitor
tmux attach -t tea-dot
# Cache management (for remote workflows)
tea cache list # Show cached files
tea cache clear # Clear cache
tea cache info # Cache statistics
14. References#
BMAD-METHOD Repository - Complete BMAD framework
BMAD Documentation - Official BMAD documentation
DOT Workflow Orchestration - TEA DOT execution details
YAML Reference - TEA workflow syntax
TEA Documentation - Official documentation
Graphviz DOT Language - DOT syntax reference