íëŠĐ ëīėĐ
Invoke /bmad
Category workflow
Complexity high
MCP Servers zenhub
/bmad #
Executes workflows reviewed by 7 personas using the BMAD (Breakthrough Method for Agile AI-Driven Development) framework.
Required Execution Protocol #
Important : BMAD workflows must pass mandatory gates across 4 phases.
Phase Execution Order #
Phase 1 : ANALYSIS â Analyst review
Phase 2 : PLANNING â PM review
Phase 3 : SOLUTIONING â Architect + UX Designer review ( parallel)
Phase 4 : IMPLEMENTATION â Flutter / Backend Dev + Scrum Master
Execution by Phase #
Phase 1: Analysis
// ðĄ Conceptual pseudocode (Claude actually performs review as the Analyst persona)
const analysisResult = await analyzeRequirements ( {
input: workContent,
checks: [ " requirementClarity " , " scopeAppropriateness " , " acTestability " ] ,
} ) ;
if ( ! analysisResult. pass) {
// Provide feedback and request revision
return requestRevision ( analysisResult. feedback) ;
}
Phase 2: Planning
// ðĄ Actual MCP tool call example (Claude executes as the PM persona)
// Dynamic workspace info lookup
const workspace = await mcp__zenhub__getWorkspacePipelinesAndRepositories ( ) ;
const repoId = workspace. repositories. find ( r = > /* GitHub repo selection */ ) . id;
const issueTypes = await mcp__zenhub__getIssueTypes ( ) ;
const backlog = workspace. pipelines. find ( p = > p. name == = " Product Backlog " ) ;
const issue = await mcp__zenhub__createGitHubIssue ( {
repositoryId: repoId,
title: `${ type} ( ${ scope} ) : ${ gitmoji} ${ description} ` ,
body: generateIssueBody ( analysisResult) ,
issueTypeId: issueTypes. find ( t = > t. name == = type) . id,
labels: [ type , scope] ,
} ) ;
await mcp__zenhub__setIssueEstimate ( {
issueId: issue. id,
estimate: storyPoint,
} ) ;
await mcp__zenhub__moveIssueToPipeline ( {
issueId: issue. graphqlId,
pipelineId: backlog. id,
} ) ;
Phase 3: Solutioning (parallel)
// ðĄ Conceptual pseudocode (Claude actually calls Task tool in parallel)
const [ architectResult , uxResult] = await Promise . all ( [
Task ( {
subagent_type: " architect-review " ,
prompt: `Architecture review: ${ issue . title} ` ,
} ) ,
Task ( {
subagent_type: " ux-designer-review " ,
prompt: `UX review: ${ issue . title} ` ,
} ) ,
] ) ;
// All reviews must pass
if ( ! architectResult. pass || ! uxResult. pass) {
return requestRevision ( combineFeedback ( architectResult, uxResult) ) ;
}
Phase 4: Implementation
# Execute existing workflow Steps 4 - 12
# Create branch
git checkout development & & git pull origin development
git checkout - b feature/ issue- ${ issue . number} - ${ slug}
# Move to In Progress
mcp__zenhub__moveIssueToPipeline ( ... )
# Implement , test, lint, PR , review, merge
# ( same flow as the existing workflow)
Triggers #
When starting a new feature/bug/refactoring task
For complex tasks requiring persona-based review
For critical tasks requiring quality gates
Usage #
Basic Usage #
# Start BMAD workflow
/ bmad " Add author list screen "
Integration with Existing Workflow #
# Activate with -- bmad option
/ dev: run -- bmad " Add author list screen "
Activate Specific Gates Only #
# Analysis and Planning gates only
/ bmad -- gates analysis, planning " Simple task "
Emergency Mode #
# Streamlined gates ( requires user approval)
/ bmad -- emergency " Production emergency fix "
Emergency Mode Approval Procedure :
// Claude requests explicit approval via AskUserQuestion tool
AskUserQuestion ( {
questions: [ {
header : " Emergency " ,
question: " Do you want to activate emergency mode? This will streamline the Analysis/Planning gates. " ,
options: [
{ label : " Yes, approved " , description: " Activate emergency mode (post-review required within 48 hours) " } ,
{ label : " No " , description: " Proceed in normal mode " }
] ,
multiSelect: false
} ]
} ) ;
Approval Request : Claude requests explicit approval via AskUserQuestion
tool
User Selection : Proceed only when "Yes, approved" is selected
Gate Streamlining : Analysis, Planning gates are streamlined (not fully skipped)
Mandatory Gates : Implementation gate is always mandatory (lint, tests)
Post-Review : Post-review is required within 48 hours of completion (see BMAD_020
error code)
Parameters #
Parameter Required Description Example
task description
â
Description of the task
"Add author list screen"
Options #
Option Default Description
--gatesAll gates Activate specific gates only
--emergencyfalse Emergency mode (streamlined gates)
--no-parallelfalse Disable parallel execution
--skip-persona- Skip specific persona
Progress #
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â 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) â
â â âââ ð Reviewing ... â
â âââ ðĻ UX Designer review ( parallel) â
â âââ â
Complete â
â â
â Phase 4 : IMPLEMENTATION ââââââââââââââââââââââââââ âģ â
â âââ Waiting â
â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Gate Failure (with error code) #
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â BMAD Gate Failed : BMAD_003 â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââĢ
â â
â Phase 3 : SOLUTIONING âââââââââââââââââââââââââââââ â â
â âââ ðïļ Architect review: â FAILED â
â â âââ â DI structure: BLoC directly accesses Repository â
â â âââ ð Required action: Create UseCase , change dependency â
â â âââ ð Retry : 1 / 3 â
â âââ ðĻ UX Designer review: â
PASSED â
â â
â ðĄ Fix : Apply feedback, then `/ bmad: review -- persona architect`â
â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Completion #
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â BMAD Workflow Complete : " Add author list screen " â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââĢ
â â
â ð Issue : #1810 - Add author list screen â
â ð PR : #1815 â
â ðŋ Branch : feature/ 1810 - author- list ( deleted) â
â â
â â
Persona review: 7 / 7 passed â
â â
Gates passed: 4 / 4 phases â
â â
Tests : 25 / 25 passed â
â â
â ð Final State : CLOSED â
â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Self-Verification Checklist #
Phase Gate Done
Analysis Requirements clarity âŽ
Analysis Scope appropriateness âŽ
Analysis Acceptance Criteria testability âŽ
Planning Epic/Story structure âŽ
Planning Story Point (1-8) âŽ
Planning Labeling âŽ
Planning Dependencies âŽ
Solutioning Clean Architecture âŽ
Solutioning DI structure âŽ
Solutioning CoUI compliance âŽ
Implementation Branch rules âŽ
Implementation Lint pass âŽ
Implementation Test pass âŽ
Implementation Code review âŽ
/bmad:review - Persona-specific review
/bmad:status - Status check
/bmad:gate - Gate verification
/dev:run - Existing workflow (without BMAD)
/dev:run --bmad - BMAD integrated workflow
.claude/orchestrators/bmad-orchestrator.md - Orchestrator
.claude/orchestrators/phase-gates.md - Gate definitions
.claude/personas/ - Persona definitions
.claude/skills/bmad/SKILL.md - Skill details