bmad-method 4.27.5 → 4.27.6

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 (39) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/bmad-core/agents/analyst.md +3 -4
  3. package/bmad-core/agents/architect.md +3 -4
  4. package/bmad-core/agents/bmad-master.md +9 -31
  5. package/bmad-core/agents/bmad-orchestrator.md +3 -8
  6. package/bmad-core/agents/dev.md +3 -4
  7. package/bmad-core/agents/pm.md +3 -4
  8. package/bmad-core/agents/po.md +3 -4
  9. package/bmad-core/agents/qa.md +3 -4
  10. package/bmad-core/agents/sm.md +3 -4
  11. package/bmad-core/agents/ux-expert.md +3 -4
  12. package/bmad-core/tasks/create-next-story.md +0 -1
  13. package/bmad-core/tasks/validate-next-story.md +1 -1
  14. package/bmad-core/workflows/brownfield-fullstack.yaml +1 -1
  15. package/bmad-core/workflows/brownfield-service.yaml +1 -1
  16. package/bmad-core/workflows/brownfield-ui.yaml +1 -1
  17. package/bmad-core/workflows/greenfield-fullstack.yaml +1 -1
  18. package/bmad-core/workflows/greenfield-ui.yaml +1 -1
  19. package/dist/agents/analyst.txt +3 -3
  20. package/dist/agents/bmad-master.txt +7 -324
  21. package/dist/agents/bmad-orchestrator.txt +3 -229
  22. package/dist/agents/dev.txt +1 -1
  23. package/dist/agents/po.txt +1 -1
  24. package/dist/agents/sm.txt +0 -1
  25. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +0 -226
  26. package/dist/teams/team-all.txt +9 -236
  27. package/dist/teams/team-fullstack.txt +9 -235
  28. package/dist/teams/team-ide-minimal.txt +4 -231
  29. package/dist/teams/team-no-ui.txt +5 -231
  30. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +2 -3
  31. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +2 -3
  32. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +2 -3
  33. package/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.md +2 -3
  34. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +2 -3
  35. package/package.json +1 -1
  36. package/tools/installer/lib/file-manager.js +77 -2
  37. package/tools/installer/lib/installer.js +54 -25
  38. package/tools/installer/package.json +1 -1
  39. package/bmad-core/utils/plan-management.md +0 -219
@@ -1,219 +0,0 @@
1
- # Plan Management Utility
2
-
3
- ## Purpose
4
-
5
- Provides utilities for agents and tasks to interact with workflow plans, check progress, update status, and ensure workflow steps are executed in the appropriate sequence.
6
-
7
- ## Core Functions
8
-
9
- ### 1. Check Plan Existence
10
-
11
- Check for workflow plan:
12
-
13
- 1. Look for docs/workflow-plan.md (default location)
14
- 2. Return plan status to user (exists/not exists) - if not exists then HALT.
15
-
16
- ### 2. Parse Plan Status
17
-
18
- [[LLM: Extract current progress from the plan document]]
19
-
20
- **Plan Parsing Logic:**
21
-
22
- 1. **Identify Step Structure**:
23
- - Look for checkbox lines: `- [ ]` or `- [x]`
24
- - Extract step IDs from comments: `<!-- step-id: X.Y -->`
25
- - Identify agent assignments: `<!-- agent: pm -->`
26
-
27
- 2. **Determine Current State**:
28
- - Last completed step (highest numbered `[x]`)
29
- - Next expected step (first `[ ]` after completed steps)
30
- - Overall progress percentage
31
-
32
- 3. **Extract Metadata**:
33
- - Workflow type from plan header
34
- - Decision points and their status
35
- - Any deviation notes
36
-
37
- ### 3. Sequence Validation
38
-
39
- [[LLM: Check if requested action aligns with plan sequence]]
40
-
41
- **Validation Rules:**
42
-
43
- 1. **Strict Mode** (enforceSequence: true):
44
- - Must complete steps in exact order
45
- - Warn and block if out of sequence
46
- - Require explicit override justification
47
-
48
- 2. **Flexible Mode** (enforceSequence: false):
49
- - Warn about sequence deviation
50
- - Allow with confirmation
51
- - Log deviation reason
52
-
53
- **Warning Templates:**
54
-
55
- ```text
56
- SEQUENCE WARNING:
57
- The workflow plan shows you should complete "{expected_step}" next.
58
- You're attempting to: "{requested_action}"
59
-
60
- In strict mode: Block and require plan update
61
- In flexible mode: Allow with confirmation
62
- ```
63
-
64
- ### 4. Plan Update Operations
65
-
66
- [[LLM: Provide consistent way to update plan progress]]
67
-
68
- **Update Actions:**
69
-
70
- 1. **Mark Step Complete**:
71
- - Change `- [ ]` to `- [x]`
72
- - Add completion timestamp comment
73
- - Update any status metadata
74
-
75
- 2. **Add Deviation Note**:
76
- - Insert note explaining why sequence changed
77
- - Reference the deviation in plan
78
-
79
- 3. **Update Current Step Pointer**:
80
- - Add/move `<!-- current-step -->` marker
81
- - Update last-modified timestamp
82
-
83
- ### 5. Integration Instructions
84
-
85
- [[LLM: How agents and tasks should use this utility]]
86
-
87
- **For Agents (startup sequence)**:
88
-
89
- ```text
90
- 1. Check if plan exists using this utility
91
- 2. If exists:
92
- - Parse current status
93
- - Show user: "Active workflow plan detected. Current step: {X}"
94
- - Suggest: "Next recommended action: {next_step}"
95
- 3. Continue with normal startup
96
- ```
97
-
98
- **For Tasks (pre-execution)**:
99
-
100
- ```text
101
- 1. Check if plan exists
102
- 2. If exists:
103
- - Verify this task aligns with plan
104
- - If not aligned:
105
- - In strict mode: Show warning and stop
106
- - In flexible mode: Show warning and ask for confirmation
107
- 3. After task completion:
108
- - Update plan if task was a planned step
109
- - Add note if task was unplanned
110
- ```
111
-
112
- ### 6. Plan Status Report Format
113
-
114
- [[LLM: Standard format for showing plan status]]
115
-
116
- ```text
117
- 📋 Workflow Plan Status
118
- ━━━━━━━━━━━━━━━━━━━━
119
- Workflow: {workflow_name}
120
- Progress: {X}% complete ({completed}/{total} steps)
121
-
122
- ✅ Completed:
123
- - {completed_step_1}
124
- - {completed_step_2}
125
-
126
- 🔄 Current Step:
127
- - {current_step_description}
128
-
129
- 📌 Upcoming:
130
- - {next_step_1}
131
- - {next_step_2}
132
-
133
- ⚠️ Notes:
134
- - {any_deviations_or_notes}
135
- ```
136
-
137
- ### 7. Decision Point Handling
138
-
139
- [[LLM: Special handling for workflow decision points]]
140
-
141
- When encountering a decision point in the plan:
142
-
143
- 1. **Identify Decision Marker**: `<!-- decision: {decision_id} -->`
144
- 2. **Check Decision Status**: Made/Pending
145
- 3. **If Pending**:
146
- - Block progress until decision made
147
- - Show options to user
148
- - Record decision when made
149
- 4. **If Made**:
150
- - Verify current path aligns with decision
151
- - Warn if attempting alternate path
152
-
153
- ### 8. Plan Abandonment
154
-
155
- [[LLM: Graceful handling when user wants to stop following plan]]
156
-
157
- If user wants to abandon plan:
158
-
159
- 1. Confirm abandonment intent
160
- 2. Add abandonment note to plan
161
- 3. Mark plan as "Abandoned" in header
162
- 4. Stop plan checking for remainder of session
163
- 5. Suggest creating new plan if needed
164
-
165
- ## Usage Examples
166
-
167
- ### Example 1: Agent Startup Check
168
-
169
- ```text
170
- BMad Master starting...
171
-
172
- [Check for plan]
173
- Found active workflow plan: brownfield-fullstack
174
- Progress: 40% complete (4/10 steps)
175
- Current step: Create PRD (pm agent)
176
-
177
- Suggestion: Based on your plan, you should work with the PM agent next.
178
- Use *agent pm to switch, or *plan-status to see full progress.
179
- ```
180
-
181
- ### Example 2: Task Sequence Warning
182
-
183
- ```text
184
- User: *task create-next-story
185
-
186
- [Plan check triggered]
187
- ⚠️ SEQUENCE WARNING:
188
- Your workflow plan indicates the PRD hasn't been created yet.
189
- Creating stories before the PRD may lead to incomplete requirements.
190
-
191
- Would you like to:
192
- 1. Continue anyway (will note deviation in plan)
193
- 2. Switch to creating PRD first (*agent pm)
194
- 3. View plan status (*plan-status)
195
- ```
196
-
197
- ### Example 3: Automatic Plan Update
198
-
199
- ```text
200
- [After completing create-doc task for PRD]
201
-
202
- ✅ Plan Updated: Marked "Create PRD" as complete
203
- 📍 Next step: Create Architecture Document (architect agent)
204
- ```
205
-
206
- ## Implementation Notes
207
-
208
- - This utility should be lightweight and fast
209
- - Plan parsing should be resilient to format variations
210
- - Always preserve user agency - warnings not blocks (unless strict mode)
211
- - Plan updates should be atomic to prevent corruption
212
- - Consider plan versioning for rollback capability
213
-
214
- ## Error Handling
215
-
216
- - Missing plan: Return null, don't error
217
- - Malformed plan: Warn but continue, treat as no plan
218
- - Update failures: Log but don't block task completion
219
- - Parse errors: Fallback to basic text search