bmad-method 4.22.1 → 4.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +3 -2
- package/bmad-core/agents/bmad-master.md +14 -1
- package/bmad-core/agents/bmad-orchestrator.md +14 -0
- package/bmad-core/core-config.yml +5 -0
- package/bmad-core/data/bmad-kb.md +3 -1
- package/bmad-core/tasks/create-brownfield-story.md +355 -0
- package/bmad-core/tasks/create-next-story.md +25 -0
- package/bmad-core/tasks/create-workflow-plan.md +289 -0
- package/bmad-core/tasks/update-workflow-plan.md +248 -0
- package/bmad-core/templates/brownfield-prd-tmpl.md +52 -28
- package/bmad-core/utils/plan-management.md +223 -0
- package/bmad-core/workflows/brownfield-fullstack.yml +240 -55
- package/bmad-core/workflows/brownfield-service.yml +110 -36
- package/bmad-core/workflows/brownfield-ui.yml +110 -36
- package/bmad-core/workflows/greenfield-fullstack.yml +110 -36
- package/bmad-core/workflows/greenfield-service.yml +110 -36
- package/bmad-core/workflows/greenfield-ui.yml +110 -36
- package/common/tasks/create-doc.md +21 -1
- package/dist/agents/analyst.txt +24 -2
- package/dist/agents/architect.txt +21 -1
- package/dist/agents/bmad-master.txt +884 -31
- package/dist/agents/bmad-orchestrator.txt +807 -2
- package/dist/agents/pm.txt +73 -29
- package/dist/agents/sm.txt +25 -0
- package/dist/agents/ux-expert.txt +21 -1
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +21 -1
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +804 -1
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +21 -1
- package/dist/teams/team-all.txt +1676 -267
- package/dist/teams/team-fullstack.txt +1651 -267
- package/dist/teams/team-ide-minimal.txt +832 -2
- package/dist/teams/team-no-ui.txt +1080 -103
- package/docs/bmad-workflow-guide.md +2 -1
- package/docs/core-architecture.md +2 -1
- package/package.json +1 -1
- package/tools/installer/bin/bmad.js +3 -2
- package/tools/installer/config/install.config.yml +13 -0
- package/tools/installer/lib/ide-setup.js +214 -1
- package/tools/installer/lib/installer.js +3 -13
- package/tools/installer/package.json +1 -1
- package/tools/lib/dependency-resolver.js +2 -2
|
@@ -68,42 +68,92 @@ workflow:
|
|
|
68
68
|
condition: user_has_generated_ui
|
|
69
69
|
notes: "If user generated UI with v0/Lovable: For polyrepo setup, place downloaded project in separate frontend repo. For monorepo, place in apps/web or frontend/ directory. Review architecture document for specific guidance."
|
|
70
70
|
|
|
71
|
+
- agent: po
|
|
72
|
+
action: shard_documents
|
|
73
|
+
creates: sharded_docs
|
|
74
|
+
requires: all_artifacts_in_project
|
|
75
|
+
notes: |
|
|
76
|
+
Shard documents for IDE development:
|
|
77
|
+
- Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
|
|
78
|
+
- Option B: Manual: Drag shard-doc task + docs/prd.md into chat
|
|
79
|
+
- Creates docs/prd/ and docs/architecture/ folders with sharded content
|
|
80
|
+
|
|
81
|
+
- agent: sm
|
|
82
|
+
action: create_story
|
|
83
|
+
creates: story.md
|
|
84
|
+
requires: sharded_docs
|
|
85
|
+
repeats: for_each_epic
|
|
86
|
+
notes: |
|
|
87
|
+
Story creation cycle:
|
|
88
|
+
- SM Agent (New Chat): @sm → *create
|
|
89
|
+
- Creates next story from sharded docs
|
|
90
|
+
- Story starts in "Draft" status
|
|
91
|
+
|
|
92
|
+
- agent: analyst/pm
|
|
93
|
+
action: review_draft_story
|
|
94
|
+
updates: story.md
|
|
95
|
+
requires: story.md
|
|
96
|
+
optional: true
|
|
97
|
+
condition: user_wants_story_review
|
|
98
|
+
notes: |
|
|
99
|
+
OPTIONAL: Review and approve draft story
|
|
100
|
+
- NOTE: story-review task coming soon
|
|
101
|
+
- Review story completeness and alignment
|
|
102
|
+
- Update story status: Draft → Approved
|
|
103
|
+
|
|
104
|
+
- agent: dev
|
|
105
|
+
action: implement_story
|
|
106
|
+
creates: implementation_files
|
|
107
|
+
requires: story.md
|
|
108
|
+
notes: |
|
|
109
|
+
Dev Agent (New Chat): @dev
|
|
110
|
+
- Implements approved story
|
|
111
|
+
- Updates File List with all changes
|
|
112
|
+
- Marks story as "Review" when complete
|
|
113
|
+
|
|
114
|
+
- agent: qa
|
|
115
|
+
action: review_implementation
|
|
116
|
+
updates: implementation_files
|
|
117
|
+
requires: implementation_files
|
|
118
|
+
optional: true
|
|
119
|
+
notes: |
|
|
120
|
+
OPTIONAL: QA Agent (New Chat): @qa → review-story
|
|
121
|
+
- Senior dev review with refactoring ability
|
|
122
|
+
- Fixes small issues directly
|
|
123
|
+
- Leaves checklist for remaining items
|
|
124
|
+
- Updates story status (Review → Done or stays Review)
|
|
125
|
+
|
|
126
|
+
- agent: dev
|
|
127
|
+
action: address_qa_feedback
|
|
128
|
+
updates: implementation_files
|
|
129
|
+
condition: qa_left_unchecked_items
|
|
130
|
+
notes: |
|
|
131
|
+
If QA left unchecked items:
|
|
132
|
+
- Dev Agent (New Chat): Address remaining items
|
|
133
|
+
- Return to QA for final approval
|
|
134
|
+
|
|
135
|
+
- repeat_development_cycle:
|
|
136
|
+
action: continue_for_all_stories
|
|
137
|
+
notes: |
|
|
138
|
+
Repeat story cycle (SM → Dev → QA) for all epic stories
|
|
139
|
+
Continue until all stories in PRD are complete
|
|
140
|
+
|
|
141
|
+
- agent: po
|
|
142
|
+
action: epic_retrospective
|
|
143
|
+
creates: epic-retrospective.md
|
|
144
|
+
condition: epic_complete
|
|
145
|
+
optional: true
|
|
146
|
+
notes: |
|
|
147
|
+
OPTIONAL: After epic completion
|
|
148
|
+
- NOTE: epic-retrospective task coming soon
|
|
149
|
+
- Validate epic was completed correctly
|
|
150
|
+
- Document learnings and improvements
|
|
151
|
+
|
|
71
152
|
- workflow_end:
|
|
72
|
-
action:
|
|
153
|
+
action: project_complete
|
|
73
154
|
notes: |
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
1. ENSURE DOCUMENTS ARE IN PROJECT:
|
|
77
|
-
- Copy final prd.md to project's docs/prd.md
|
|
78
|
-
- Copy final architecture.md to project's docs/architecture.md
|
|
79
|
-
- All documents must be in the project before proceeding
|
|
80
|
-
|
|
81
|
-
2. SHARD DOCUMENTS (in IDE):
|
|
82
|
-
- Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
|
|
83
|
-
- Option B: Manual: Drag shard-doc task + docs/prd.md into chat
|
|
84
|
-
- This creates docs/prd/ and docs/architecture/ folders with sharded content
|
|
85
|
-
|
|
86
|
-
3. START DEVELOPMENT CYCLE:
|
|
87
|
-
a. SM Agent (New Chat): @sm → *create
|
|
88
|
-
- Creates next story from sharded docs
|
|
89
|
-
- Review and approve story (Draft → Approved)
|
|
90
|
-
|
|
91
|
-
b. Dev Agent (New Chat): @dev
|
|
92
|
-
- Implements approved story
|
|
93
|
-
- Updates File List with all changes
|
|
94
|
-
- Marks story as "Review" when complete
|
|
95
|
-
|
|
96
|
-
c. QA Agent (New Chat): @qa → review-story
|
|
97
|
-
- Senior dev review with refactoring ability
|
|
98
|
-
- Fixes small issues directly
|
|
99
|
-
- Leaves checklist for remaining items
|
|
100
|
-
- Updates story status (Review → Done or stays Review)
|
|
101
|
-
|
|
102
|
-
d. If QA left unchecked items:
|
|
103
|
-
- Dev Agent (New Chat): Address remaining items
|
|
104
|
-
- Return to QA for final approval
|
|
105
|
-
|
|
106
|
-
4. REPEAT: Continue cycle for all epic stories
|
|
155
|
+
All stories implemented and reviewed!
|
|
156
|
+
Project development phase complete.
|
|
107
157
|
|
|
108
158
|
Reference: data#bmad-kb:IDE Development Workflow
|
|
109
159
|
|
|
@@ -124,21 +174,45 @@ workflow:
|
|
|
124
174
|
G --> H
|
|
125
175
|
H --> I{PO finds issues?}
|
|
126
176
|
I -->|Yes| J[Return to relevant agent for fixes]
|
|
127
|
-
I -->|No| K[
|
|
177
|
+
I -->|No| K[po: shard documents]
|
|
128
178
|
J --> H
|
|
179
|
+
|
|
180
|
+
K --> L[sm: create story]
|
|
181
|
+
L --> M{Review draft story?}
|
|
182
|
+
M -->|Yes| N[analyst/pm: review & approve story]
|
|
183
|
+
M -->|No| O[dev: implement story]
|
|
184
|
+
N --> O
|
|
185
|
+
O --> P{QA review?}
|
|
186
|
+
P -->|Yes| Q[qa: review implementation]
|
|
187
|
+
P -->|No| R{More stories?}
|
|
188
|
+
Q --> S{QA found issues?}
|
|
189
|
+
S -->|Yes| T[dev: address QA feedback]
|
|
190
|
+
S -->|No| R
|
|
191
|
+
T --> Q
|
|
192
|
+
R -->|Yes| L
|
|
193
|
+
R -->|No| U{Epic retrospective?}
|
|
194
|
+
U -->|Yes| V[po: epic retrospective]
|
|
195
|
+
U -->|No| W[Project Complete]
|
|
196
|
+
V --> W
|
|
129
197
|
|
|
130
198
|
B -.-> B1[Optional: brainstorming]
|
|
131
199
|
B -.-> B2[Optional: market research]
|
|
132
200
|
D -.-> D1[Optional: user research]
|
|
133
201
|
E -.-> E1[Optional: technical research]
|
|
134
202
|
|
|
135
|
-
style
|
|
203
|
+
style W fill:#90EE90
|
|
204
|
+
style K fill:#ADD8E6
|
|
205
|
+
style L fill:#ADD8E6
|
|
206
|
+
style O fill:#ADD8E6
|
|
136
207
|
style D3 fill:#E6E6FA
|
|
137
208
|
style D4 fill:#E6E6FA
|
|
138
209
|
style B fill:#FFE4B5
|
|
139
210
|
style C fill:#FFE4B5
|
|
140
211
|
style D fill:#FFE4B5
|
|
141
212
|
style E fill:#FFE4B5
|
|
213
|
+
style N fill:#F0E68C
|
|
214
|
+
style Q fill:#F0E68C
|
|
215
|
+
style V fill:#F0E68C
|
|
142
216
|
```
|
|
143
217
|
|
|
144
218
|
decision_guidance:
|
|
@@ -13,11 +13,22 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
13
13
|
|
|
14
14
|
## Execution Flow
|
|
15
15
|
|
|
16
|
+
### 0. Check Workflow Plan (if configured)
|
|
17
|
+
|
|
18
|
+
[[LLM: Check if plan tracking is enabled in core-config.yml]]
|
|
19
|
+
|
|
20
|
+
- If `workflow.trackProgress: true`, check for active plan using utils#plan-management
|
|
21
|
+
- If plan exists and this document creation is part of the plan:
|
|
22
|
+
- Verify this is the expected next step
|
|
23
|
+
- If out of sequence and `enforceSequence: true`, warn user and halt without user override
|
|
24
|
+
- If out of sequence and `enforceSequence: false`, ask for confirmation
|
|
25
|
+
- Continue with normal execution after plan check
|
|
26
|
+
|
|
16
27
|
### 1. Identify Template
|
|
17
28
|
|
|
18
29
|
- Load from `templates#*` or `{root}/templates directory`
|
|
19
30
|
- Agent-specific templates are listed in agent's dependencies
|
|
20
|
-
- If agent has `templates: [prd-tmpl, architecture-tmpl]
|
|
31
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
|
|
21
32
|
|
|
22
33
|
### 2. Ask Interaction Mode
|
|
23
34
|
|
|
@@ -54,6 +65,15 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
54
65
|
- Begin directly with content (no preamble)
|
|
55
66
|
- Include any handoff prompts from template
|
|
56
67
|
|
|
68
|
+
### 6. Update Workflow Plan (if applicable)
|
|
69
|
+
|
|
70
|
+
[[LLM: After successful document creation]]
|
|
71
|
+
|
|
72
|
+
- If plan tracking is enabled and document was part of plan:
|
|
73
|
+
- Call update-workflow-plan task to mark step complete
|
|
74
|
+
- Parameters: task: create-doc, step_id: {from plan}, status: complete
|
|
75
|
+
- Show next recommended step from plan
|
|
76
|
+
|
|
57
77
|
## Common Mistakes to Avoid
|
|
58
78
|
|
|
59
79
|
❌ Skipping elicitation tasks
|
package/dist/agents/analyst.txt
CHANGED
|
@@ -663,11 +663,22 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
663
663
|
|
|
664
664
|
## Execution Flow
|
|
665
665
|
|
|
666
|
+
### 0. Check Workflow Plan (if configured)
|
|
667
|
+
|
|
668
|
+
[[LLM: Check if plan tracking is enabled in core-config.yml]]
|
|
669
|
+
|
|
670
|
+
- If `workflow.trackProgress: true`, check for active plan using utils#plan-management
|
|
671
|
+
- If plan exists and this document creation is part of the plan:
|
|
672
|
+
- Verify this is the expected next step
|
|
673
|
+
- If out of sequence and `enforceSequence: true`, warn user and halt without user override
|
|
674
|
+
- If out of sequence and `enforceSequence: false`, ask for confirmation
|
|
675
|
+
- Continue with normal execution after plan check
|
|
676
|
+
|
|
666
677
|
### 1. Identify Template
|
|
667
678
|
|
|
668
679
|
- Load from `templates#*` or `{root}/templates directory`
|
|
669
680
|
- Agent-specific templates are listed in agent's dependencies
|
|
670
|
-
- If agent has `templates: [prd-tmpl, architecture-tmpl]
|
|
681
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
|
|
671
682
|
|
|
672
683
|
### 2. Ask Interaction Mode
|
|
673
684
|
|
|
@@ -704,6 +715,15 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
704
715
|
- Begin directly with content (no preamble)
|
|
705
716
|
- Include any handoff prompts from template
|
|
706
717
|
|
|
718
|
+
### 6. Update Workflow Plan (if applicable)
|
|
719
|
+
|
|
720
|
+
[[LLM: After successful document creation]]
|
|
721
|
+
|
|
722
|
+
- If plan tracking is enabled and document was part of plan:
|
|
723
|
+
- Call update-workflow-plan task to mark step complete
|
|
724
|
+
- Parameters: task: create-doc, step_id: {from plan}, status: complete
|
|
725
|
+
- Show next recommended step from plan
|
|
726
|
+
|
|
707
727
|
## Common Mistakes to Avoid
|
|
708
728
|
|
|
709
729
|
❌ Skipping elicitation tasks
|
|
@@ -2010,7 +2030,7 @@ BMAD transforms you into a "Vibe CEO" - directing a team of specialized AI agent
|
|
|
2010
2030
|
5. Type `/help` to see available commands
|
|
2011
2031
|
|
|
2012
2032
|
#### Option 2: IDE Integration
|
|
2013
|
-
**Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code users
|
|
2033
|
+
**Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code, VS Code Copilot users
|
|
2014
2034
|
|
|
2015
2035
|
```bash
|
|
2016
2036
|
# Interactive installation (recommended)
|
|
@@ -2025,6 +2045,7 @@ npx bmad-method install
|
|
|
2025
2045
|
- **Windsurf**: Built-in AI capabilities
|
|
2026
2046
|
- **Cline**: VS Code extension with AI features
|
|
2027
2047
|
- **Roo Code**: Web-based IDE with agent support
|
|
2048
|
+
- **VS Code Copilot**: AI-powered coding assistant
|
|
2028
2049
|
|
|
2029
2050
|
**Note for VS Code Users**: BMAD-METHOD assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMAD agents. The installer includes built-in support for Cline and Roo.
|
|
2030
2051
|
|
|
@@ -2210,6 +2231,7 @@ You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a sing
|
|
|
2210
2231
|
- **Cursor**: `@agent-name` (e.g., `@bmad-master`)
|
|
2211
2232
|
- **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
|
|
2212
2233
|
- **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
|
|
2234
|
+
- **VS Code Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select **Agent** from the chat mode selector.
|
|
2213
2235
|
|
|
2214
2236
|
**Chat Management Guidelines**:
|
|
2215
2237
|
- **Claude Code, Cursor, Windsurf**: Start new chats when switching agents
|
|
@@ -118,11 +118,22 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
118
118
|
|
|
119
119
|
## Execution Flow
|
|
120
120
|
|
|
121
|
+
### 0. Check Workflow Plan (if configured)
|
|
122
|
+
|
|
123
|
+
[[LLM: Check if plan tracking is enabled in core-config.yml]]
|
|
124
|
+
|
|
125
|
+
- If `workflow.trackProgress: true`, check for active plan using utils#plan-management
|
|
126
|
+
- If plan exists and this document creation is part of the plan:
|
|
127
|
+
- Verify this is the expected next step
|
|
128
|
+
- If out of sequence and `enforceSequence: true`, warn user and halt without user override
|
|
129
|
+
- If out of sequence and `enforceSequence: false`, ask for confirmation
|
|
130
|
+
- Continue with normal execution after plan check
|
|
131
|
+
|
|
121
132
|
### 1. Identify Template
|
|
122
133
|
|
|
123
134
|
- Load from `templates#*` or `{root}/templates directory`
|
|
124
135
|
- Agent-specific templates are listed in agent's dependencies
|
|
125
|
-
- If agent has `templates: [prd-tmpl, architecture-tmpl]
|
|
136
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
|
|
126
137
|
|
|
127
138
|
### 2. Ask Interaction Mode
|
|
128
139
|
|
|
@@ -159,6 +170,15 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
159
170
|
- Begin directly with content (no preamble)
|
|
160
171
|
- Include any handoff prompts from template
|
|
161
172
|
|
|
173
|
+
### 6. Update Workflow Plan (if applicable)
|
|
174
|
+
|
|
175
|
+
[[LLM: After successful document creation]]
|
|
176
|
+
|
|
177
|
+
- If plan tracking is enabled and document was part of plan:
|
|
178
|
+
- Call update-workflow-plan task to mark step complete
|
|
179
|
+
- Parameters: task: create-doc, step_id: {from plan}, status: complete
|
|
180
|
+
- Show next recommended step from plan
|
|
181
|
+
|
|
162
182
|
## Common Mistakes to Avoid
|
|
163
183
|
|
|
164
184
|
❌ Skipping elicitation tasks
|