bmad-method 4.23.0 → 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.
Files changed (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/bmad-core/agents/bmad-master.md +14 -1
  4. package/bmad-core/agents/bmad-orchestrator.md +14 -0
  5. package/bmad-core/core-config.yml +5 -0
  6. package/bmad-core/tasks/create-brownfield-story.md +355 -0
  7. package/bmad-core/tasks/create-next-story.md +25 -0
  8. package/bmad-core/tasks/create-workflow-plan.md +289 -0
  9. package/bmad-core/tasks/update-workflow-plan.md +248 -0
  10. package/bmad-core/templates/brownfield-prd-tmpl.md +52 -28
  11. package/bmad-core/utils/plan-management.md +223 -0
  12. package/bmad-core/workflows/brownfield-fullstack.yml +240 -55
  13. package/bmad-core/workflows/brownfield-service.yml +110 -36
  14. package/bmad-core/workflows/brownfield-ui.yml +110 -36
  15. package/bmad-core/workflows/greenfield-fullstack.yml +110 -36
  16. package/bmad-core/workflows/greenfield-service.yml +110 -36
  17. package/bmad-core/workflows/greenfield-ui.yml +110 -36
  18. package/common/tasks/create-doc.md +21 -1
  19. package/dist/agents/analyst.txt +23 -1
  20. package/dist/agents/architect.txt +21 -1
  21. package/dist/agents/bmad-master.txt +883 -30
  22. package/dist/agents/bmad-orchestrator.txt +806 -1
  23. package/dist/agents/pm.txt +73 -29
  24. package/dist/agents/sm.txt +25 -0
  25. package/dist/agents/ux-expert.txt +21 -1
  26. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +21 -1
  27. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +804 -1
  28. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +21 -1
  29. package/dist/teams/team-all.txt +1675 -266
  30. package/dist/teams/team-fullstack.txt +1650 -266
  31. package/dist/teams/team-ide-minimal.txt +831 -1
  32. package/dist/teams/team-no-ui.txt +1079 -102
  33. package/package.json +1 -1
  34. package/tools/installer/lib/installer.js +2 -12
  35. package/tools/installer/package.json +1 -1
  36. 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: move_to_ide
153
+ action: project_complete
73
154
  notes: |
74
- Planning phase complete! Now transition to IDE Development:
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[Move to IDE Environment]
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 K fill:#90EE90
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]`, offer to create "PRD" and "Architecture" documents
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
@@ -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]`, offer to create "PRD" and "Architecture" documents
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
@@ -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]`, offer to create "PRD" and "Architecture" documents
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