Main orchestrator for the BMAD (Breakthrough Method for Agile AI-Driven Development) framework.
7 personas review and progress workflows through 4 phases.
Architecture Overview #
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BMAD Orchestrator โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Analysis โ โ โ Planning โ โ โ Solutioning โ โ โ
โ โ Phase โ โ Phase โ โ Phase โ โ
โ โโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโค โ
โ โ ๐ Analyst โ โ ๐ PM โ โ ๐๏ธ Architect โ โ
โ โ โ โ โ โ ๐จ UX Desig . โ โ
โ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ โ
โ โ โ โ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Implementation Phase โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ
โ โ ๐งโ๐ป Flutter Dev โ ๐ง Backend Dev โ ๐ Scrum Master โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Phase Structure #
Phase 1: Analysis #
Item Content
Responsible Persona Analyst
Purpose Requirements analysis, Acceptance Criteria definition, feasibility review
Input Task description (text)
Output Analyzed requirements, Acceptance Criteria list
Gate Requirements clarity, scope appropriateness, Acceptance Criteria testability
Phase 2: Planning #
Item Content
Responsible Persona Product Manager
Purpose Issue structuring, Story Point estimation, priority setting
Input Phase 1 output
Output Created issues, labels, dependencies
Gate Epic/Story structure, Story Point, labeling, dependencies
Phase 3: Solutioning #
Item Content
Responsible Persona Architect + UX Designer (parallel)
Purpose Architecture design, UI/UX review
Input Phase 2 output
Output Design document, UI guidelines
Gate Clean Architecture, DI structure, CoUI compliance, accessibility
Phase 4: Implementation #
Item Content
Responsible Persona Flutter Dev + Backend Dev + Scrum Master
Purpose Code implementation, testing, PR creation, merge
Input Phase 3 output
Output Completed code, tests, PR
Gate Lint verification, test pass, code review
Execution Flow #
Full Flow #
โโโโโโโโโโโโโโโโโโโโโโโ
โ Task Input โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Phase 1 : ANALYSIS โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Analyst review โ โ
โ โ - Requirements clarity โ
โ โ
โ โ - Scope appropriateness โ
โ โ
โ โ - Acceptance Criteria testability โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ GATE : PASS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Phase 2 : PLANNING โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ PM review โ โ
โ โ - Epic / Story structure โ
โ โ
โ โ - Story Point โ
โ โ
โ โ - Labeling โ
โ โ
โ โ - Dependencies โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ GATE : PASS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Phase 3 : SOLUTIONING ( parallel execution) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Architect review โ โ UX Designer review โ โ
โ โ - Clean Architecture โ
โ โ - CoUI compliance โ
โ โ
โ โ - DI structure โ
โ โ - Layout โ
โ โ
โ โ - API design โ
โ โ - Interaction โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ GATE : ALL PASS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Phase 4 : IMPLEMENTATION โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Parallel work ( if independent) โ โ
โ โ - Flutter Developer : UI implementation โ โ
โ โ - Backend Developer : API implementation โ โ
โ โ - Scrum Master : Progress management โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Sequential work โ โ
โ โ Step 4 : Branch creation โ Step 5 : In Progress โ โ
โ โ Step 6 : BDD โ Step 7 : Implementation โ Step 8 : Tests โ โ
โ โ Step 8.5 : Lint verification โ Step 9 : PR creation โ โ
โ โ Step 10 : Review / QA โ Step 11 : Code review โ โ
โ โ Step 12 : Merge approval โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ GATE : ALL PASS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ Workflow Complete โ
โโโโโโโโโโโโโโโโโโโโโโโ
Phase Gate Handling #
On Gate Success #
Phase { N } Gate : โ
PASSED
Proceeding to the next phase.
On Gate Failure #
Phase { N } Gate : โ FAILED
Rejection reasons:
- { reason 1 }
- { reason 2 }
Required actions:
1 . { action 1 }
2 . { action 2 }
โ ๏ธ Cannot proceed to the next phase.
Re - review by the corresponding persona is required after completing the fixes.
Parallel Execution Patterns #
โ ๏ธ ๋ฐํ์ ์ ๊ณต ํ๋ฅด์๋ (์ด ํ๋ฌ๊ทธ์ธ์ด ๋ฐฐํฌํ์ง ์์) : ์๋ fan-out ์ subagent_type(architect-review,
ux-review, ux-designer-review, backend-developer, flutter-developer)๋
ํธ์คํธ ํ๋ก์ ํธ์ .claude/personas/ ๊ฐ ๊ณต๊ธํ๋ ๋ฐํ์ ํ๋ฅด์๋๋ค(์ด ํ๋ฌ๊ทธ์ธ agents/
์ ์์). dispatch ์ ์กด์ฌ๋ฅผ ํ์ธํ๊ณ , ์์ผ๋ฉด cc-product ์ ์ค์ฌ SKILL(architect, ux-designer,
pm, developer)์ ์์ฐจ ํธ์ถํ๋ ๊ฒ์ผ๋ก degrade ํ๋ผ(๊ฒฝ๊ณ ์ ํจ๊ป). ๋ฏธ์กด์ฌ ํ๋ฅด์๋์ Task ๊ฒฐ๊ณผ๋ฅผ PASS ๋ก ๊ฐ์ฃผํ์ง ๋ง ๊ฒ.
Fan-out Pattern (Phase 3) #
// Architect and UX Designer parallel execution
const [ architectResult , uxResult] = await Promise . all ( [
Task ( {
subagent_type: " architect-review " ,
prompt: " Perform architecture review " ,
} ) ,
Task ( {
subagent_type: " ux-review " ,
prompt: " Perform UX review " ,
} ) ,
] ) ;
// All results must PASS to proceed to next step
if ( architectResult . status == = " PASSED " & & uxResult. status == = " PASSED " ) {
proceed ( ) ;
} else {
// Feedback loop for failed reviews
handleFailedReviews ( [ architectResult, uxResult] ) ;
}
Independent Task Parallelization (Phase 4) #
// Parallel execution when Backend and Frontend are independent
if ( isBackendIndependent ( task) ) {
const [ backendResult , frontendResult] = await Promise . all ( [
Task ( {
subagent_type: " backend-developer " ,
prompt: " API implementation " ,
} ) ,
Task ( {
subagent_type: " flutter-developer " ,
prompt: " Mock-based UI implementation " ,
} ) ,
] ) ;
}
State Management #
Workflow State #
interface BMADState {
currentPhase : " analysis " | " planning " | " solutioning " | " implementation " ;
phases: {
analysis : PhaseState ;
planning: PhaseState ;
solutioning: PhaseState ;
implementation: PhaseState ;
} ;
issue?: IssueInfo ;
branch?: string;
pr?: PRInfo ;
}
interface PhaseState {
status : " pending " | " in_progress " | " passed " | " failed " ;
reviews: ReviewResult [ ] ;
blockers: Blocker [ ] ;
}
State Transitions #
pending โ in_progress โ passed
โ failed โ ( fix) โ in_progress
Command Interface #
Start Full Workflow #
# Start BMAD workflow
/ product: bmad " task description "
# Integrate with existing workflow
/ dev: run -- bmad " task description "
Individual Persona Review #
# Execute specific persona review only
/ product: review -- persona analyst " review target "
/ product: review -- persona architect " current PR review "
Status Check #
# Check overall status
/ product: bmad- status
# Specific phase status
/ product: bmad- status -- phase solutioning
Manual Gate Verification #
# Manual gate verification
/ product: gate -- phase analysis
Configuration #
settings.json Extension #
{
" bmad " : {
" enabled " : true ,
" strictGates " : true ,
" parallelExecution " : true ,
" phases " : {
" analysis " : { " required " : true } ,
" planning " : { " required " : true } ,
" solutioning " : { " required " : true } ,
" implementation " : { " required " : true }
} ,
" personas " : {
" analyst " : { " enabled " : true } ,
" product-manager " : { " enabled " : true } ,
" architect " : { " enabled " : true } ,
" flutter-developer " : { " enabled " : true } ,
" backend-developer " : { " enabled " : true } ,
" scrum-master " : { " enabled " : true } ,
" ux-designer " : { " enabled " : true }
}
}
}
Progress Display #
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BMAD Workflow : " Add author list screen " โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ โ
โ Phase 1 : ANALYSIS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ
โ โโโ ๐ Analyst review โ
โ โ โโโ โ
Requirements clarity โ
โ โ โโโ โ
Scope appropriateness โ
โ โ โโโ โ
Acceptance Criteria testability โ
โ โโโ ๐ Result : Approved ( 3 Acceptance Criteria confirmed) โ
โ โ
โ Phase 2 : PLANNING โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ
โ โโโ ๐ PM review โ
โ โ โโโ โ
Epic / Story structure โ
โ โ โโโ โ
Story Point : 5 โ
โ โ โโโ โ
Dependencies : None โ
โ โโโ ๐ Result : Issue #1810 created โ
โ โ
โ Phase 3 : SOLUTIONING โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ โ
โ โโโ ๐๏ธ Architect review ( parallel) โ
โ โ โโโ โ
Clean Architecture โ
โ โ โโโ โ
DI structure โ
โ โ โโโ ๐ API design review in progress... โ
โ โโโ ๐จ UX Designer review ( parallel) โ
โ โโโ โ
CoUI compliance โ
โ โโโ โณ Accessibility review waiting โ
โ โ
โ Phase 4 : IMPLEMENTATION โโโโโโโโโโโโโโโโโโโโโโโโโโ โณ โ
โ โโโ Waiting ( proceeds after Phase 3 completes) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
.claude/personas/ - 7 persona definitions
.claude/orchestrators/phase-gates.md - Phase gate details
.claude/skills/bmad/SKILL.md - BMAD skill definition
.claude/commands/product/bmad.md - BMAD command definition