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.
Files changed (42) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +3 -2
  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/data/bmad-kb.md +3 -1
  7. package/bmad-core/tasks/create-brownfield-story.md +355 -0
  8. package/bmad-core/tasks/create-next-story.md +25 -0
  9. package/bmad-core/tasks/create-workflow-plan.md +289 -0
  10. package/bmad-core/tasks/update-workflow-plan.md +248 -0
  11. package/bmad-core/templates/brownfield-prd-tmpl.md +52 -28
  12. package/bmad-core/utils/plan-management.md +223 -0
  13. package/bmad-core/workflows/brownfield-fullstack.yml +240 -55
  14. package/bmad-core/workflows/brownfield-service.yml +110 -36
  15. package/bmad-core/workflows/brownfield-ui.yml +110 -36
  16. package/bmad-core/workflows/greenfield-fullstack.yml +110 -36
  17. package/bmad-core/workflows/greenfield-service.yml +110 -36
  18. package/bmad-core/workflows/greenfield-ui.yml +110 -36
  19. package/common/tasks/create-doc.md +21 -1
  20. package/dist/agents/analyst.txt +24 -2
  21. package/dist/agents/architect.txt +21 -1
  22. package/dist/agents/bmad-master.txt +884 -31
  23. package/dist/agents/bmad-orchestrator.txt +807 -2
  24. package/dist/agents/pm.txt +73 -29
  25. package/dist/agents/sm.txt +25 -0
  26. package/dist/agents/ux-expert.txt +21 -1
  27. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +21 -1
  28. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +804 -1
  29. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +21 -1
  30. package/dist/teams/team-all.txt +1676 -267
  31. package/dist/teams/team-fullstack.txt +1651 -267
  32. package/dist/teams/team-ide-minimal.txt +832 -2
  33. package/dist/teams/team-no-ui.txt +1080 -103
  34. package/docs/bmad-workflow-guide.md +2 -1
  35. package/docs/core-architecture.md +2 -1
  36. package/package.json +1 -1
  37. package/tools/installer/bin/bmad.js +3 -2
  38. package/tools/installer/config/install.config.yml +13 -0
  39. package/tools/installer/lib/ide-setup.js +214 -1
  40. package/tools/installer/lib/installer.js +3 -13
  41. package/tools/installer/package.json +1 -1
  42. package/tools/lib/dependency-resolver.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # [4.24.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.23.0...v4.24.0) (2025-07-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * corrected cursor agent update instructions ([84e394a](https://github.com/bmadcode/BMAD-METHOD/commit/84e394ac11136d9cf8164cefc9ca8e298e8ef0ec))
7
+
8
+
9
+ ### Features
10
+
11
+ * workflow plans introduced, preliminary feature under review ([731589a](https://github.com/bmadcode/BMAD-METHOD/commit/731589aa287c31ea120e232b4dcc07e9790500ff))
12
+
13
+ # [4.23.0](https://github.com/bmadcode/BMAD-METHOD/compare/v4.22.1...v4.23.0) (2025-07-01)
14
+
15
+
16
+ ### Features
17
+
18
+ * VS Code Copilot integration ([#284](https://github.com/bmadcode/BMAD-METHOD/issues/284)) ([1a4ca4f](https://github.com/bmadcode/BMAD-METHOD/commit/1a4ca4ffa630c2d4156bdd7a040d4c2274801757))
19
+
1
20
  ## [4.22.1](https://github.com/bmadcode/BMAD-METHOD/compare/v4.22.0...v4.22.1) (2025-06-30)
2
21
 
3
22
 
package/README.md CHANGED
@@ -156,7 +156,7 @@ The BMad Method works with any IDE, but has built-in integration for:
156
156
  - `gemini-cli` - Gemini with @agent commands
157
157
  - `windsurf` - Windsurf with manual rule @agent commands
158
158
  - `roo` - Roo Code with custom modes (see `.roomodes`)
159
- - `windsurf` - Windsurf with @agent commands
159
+ - `vs-code-copilot` - VS Code with GitHub Copilot agent mode integration
160
160
 
161
161
  ## Available Agents
162
162
 
@@ -290,10 +290,11 @@ See the **[Core Architecture](docs/core-architecture.md)** for the complete sour
290
290
  - 🦘 [Roo Code Guide](docs/agentic-tools/roo-code-guide.md) - Setup and usage for Roo Code
291
291
  - 🔧 [Cline Guide](docs/agentic-tools/cline-guide.md) - Setup and usage for Cline (VS Code)
292
292
  - ✨ [Gemini CLI Guide](docs/agentic-tools/gemini-cli-guide.md) - Setup and usage for Gemini CLI
293
+ - 💻 [VS Code Copilot Guide](docs/agentic-tools/vs-code-copilot-guide.md) - Setup and usage for VS Code with GitHub Copilot
293
294
 
294
295
  ## 🌟 Beyond Software Development - Expansion Packs
295
296
 
296
- While BMAD excels at software development, its natural language framework can structure expertise in ANY domain. Expansion packs transform BMAD into a universal AI agent system for creative writing, business strategy, health & wellness, education, and much more.
297
+ While BMad excels at software development, its natural language framework can structure expertise in ANY domain. Expansion packs transform BMAD into a universal AI agent system for creative writing, business strategy, health & wellness, education, and much more.
297
298
 
298
299
  ### Available Expansion Packs
299
300
 
@@ -26,6 +26,9 @@ persona:
26
26
  - Process (*) commands immediately
27
27
  startup:
28
28
  - Greet the user with your name and role, and inform of the *help command.
29
+ - Check for active workflow plan using utils#plan-management
30
+ - "If plan exists: Show brief status - Active plan detected: {workflow} - {progress}%"
31
+ - "If plan exists: Suggest next step based on plan"
29
32
  - CRITICAL: Do NOT scan filesystem or load any resources during startup
30
33
  - CRITICAL: Do NOT run discovery tasks automatically
31
34
  - Wait for user request before any tool use
@@ -37,16 +40,24 @@ commands: # All commands require * prefix when used (e.g., *help)
37
40
  - status: Current context
38
41
  - task {template|util|checklist|workflow}: Execute
39
42
  - list {task|template|util|checklist|workflow}: List resources by type
43
+ - plan: Create workflow plan (for complex projects)
44
+ - plan-status: Show current workflow plan progress
45
+ - plan-update: Update workflow plan status
40
46
  - exit: Exit (confirm)
41
47
  - yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
42
48
  - doc-out: Output full document
43
49
  fuzzy-matching:
44
50
  - 85% confidence threshold
45
51
  - Show numbered list if unsure
52
+ workflow-guidance:
53
+ - When user asks about workflows, offer: "Would you like me to create a workflow plan first? (*plan)"
54
+ - For complex projects, suggest planning before execution
55
+ - Plan command maps to create-workflow-plan task
46
56
  execution:
47
57
  - NEVER use tools during startup - only announce and wait
48
58
  - Runtime discovery ONLY when user requests specific resources
49
59
  - Workflow: User request → Runtime discovery → Load resource → Execute instructions → Guide inputs → Provide feedback
60
+ - For workflow requests: Suggest *plan command first for complex projects
50
61
  - Suggest related resources after completion
51
62
  dependencies:
52
63
  tasks:
@@ -58,12 +69,14 @@ dependencies:
58
69
  - correct-course
59
70
  - create-deep-research-prompt
60
71
  - create-doc
72
+ - create-workflow-plan
61
73
  - document-project
62
74
  - create-next-story
63
75
  - execute-checklist
64
76
  - generate-ai-frontend-prompt
65
77
  - index-docs
66
78
  - shard-doc
79
+ - update-workflow-plan
67
80
  templates:
68
81
  - agent-tmpl
69
82
  - architecture-tmpl
@@ -81,7 +94,7 @@ dependencies:
81
94
  - bmad-kb
82
95
  - technical-preferences
83
96
  utils:
84
- - agent-switcher.ide
97
+ - plan-management
85
98
  - template-format
86
99
  - workflow-management
87
100
  workflows:
@@ -31,6 +31,9 @@ startup:
31
31
  - Announce: Introduce yourself as the BMAD Orchestrator, explain you can coordinate agents and workflows
32
32
  - IMPORTANT: Tell users that all commands start with * (e.g., *help, *agent, *workflow)
33
33
  - Mention *help shows all available commands and options
34
+ - Check for active workflow plan using utils#plan-management
35
+ - "If plan exists: Show 📋 Active plan: {workflow} ({progress}% complete). Use *plan-status for details."
36
+ - "If plan exists: Suggest next action based on plan progress"
34
37
  - Assess user goal against available agents and workflows in this bundle
35
38
  - If clear match to an agent's expertise, suggest transformation with *agent command
36
39
  - If project-oriented, suggest *workflow-guidance to explore options
@@ -45,6 +48,9 @@ commands: # All commands require * prefix when used (e.g., *help, *agent pm)
45
48
  task: Run a specific task (list if name not specified)
46
49
  workflow: Start a specific workflow (list if name not specified)
47
50
  workflow-guidance: Get personalized help selecting the right workflow
51
+ plan: Create detailed workflow plan before starting
52
+ plan-status: Show current workflow plan progress
53
+ plan-update: Update workflow plan status
48
54
  checklist: Execute a checklist (list if name not specified)
49
55
  yolo: Toggle skip confirmations mode
50
56
  party-mode: Group chat with all agents
@@ -68,6 +74,9 @@ help-display-template: |
68
74
  Workflow Commands:
69
75
  *workflow [name] .... Start specific workflow (list if no name)
70
76
  *workflow-guidance .. Get personalized help selecting the right workflow
77
+ *plan ............... Create detailed workflow plan before starting
78
+ *plan-status ........ Show current workflow plan progress
79
+ *plan-update ........ Update workflow plan status
71
80
 
72
81
  Other Commands:
73
82
  *yolo ............... Toggle skip confirmations mode
@@ -109,6 +118,8 @@ workflow-guidance:
109
118
  - Understand each workflow's purpose, options, and decision points
110
119
  - Ask clarifying questions based on the workflow's structure
111
120
  - Guide users through workflow selection when multiple options exist
121
+ - For complex projects, offer to create a workflow plan using create-workflow-plan task
122
+ - When appropriate, suggest: "Would you like me to create a detailed workflow plan before starting?"
112
123
  - For workflows with divergent paths, help users choose the right path
113
124
  - Adapt questions to the specific domain (e.g., game dev vs infrastructure vs web dev)
114
125
  - Only recommend workflows that actually exist in the current bundle
@@ -117,10 +128,13 @@ dependencies:
117
128
  tasks:
118
129
  - advanced-elicitation
119
130
  - create-doc
131
+ - create-workflow-plan
120
132
  - kb-mode-interaction
133
+ - update-workflow-plan
121
134
  data:
122
135
  - bmad-kb
123
136
  utils:
137
+ - plan-management
124
138
  - workflow-management
125
139
  - template-format
126
140
  ```
@@ -18,3 +18,8 @@ devLoadAlwaysFiles:
18
18
  - docs/architecture/source-tree.md
19
19
  devDebugLog: .ai/debug-log.md
20
20
  devStoryLocation: docs/stories
21
+ workflow:
22
+ planFile: docs/workflow-plan.md
23
+ trackProgress: true
24
+ enforceSequence: false
25
+ updateOnCompletion: true
@@ -78,7 +78,7 @@ BMAD transforms you into a "Vibe CEO" - directing a team of specialized AI agent
78
78
  5. Type `/help` to see available commands
79
79
 
80
80
  #### Option 2: IDE Integration
81
- **Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code users
81
+ **Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code, VS Code Copilot users
82
82
 
83
83
  ```bash
84
84
  # Interactive installation (recommended)
@@ -93,6 +93,7 @@ npx bmad-method install
93
93
  - **Windsurf**: Built-in AI capabilities
94
94
  - **Cline**: VS Code extension with AI features
95
95
  - **Roo Code**: Web-based IDE with agent support
96
+ - **VS Code Copilot**: AI-powered coding assistant
96
97
 
97
98
  **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.
98
99
 
@@ -278,6 +279,7 @@ You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a sing
278
279
  - **Cursor**: `@agent-name` (e.g., `@bmad-master`)
279
280
  - **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
280
281
  - **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
282
+ - **VS Code Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select **Agent** from the chat mode selector.
281
283
 
282
284
  **Chat Management Guidelines**:
283
285
  - **Claude Code, Cursor, Windsurf**: Start new chats when switching agents
@@ -0,0 +1,355 @@
1
+ # Create Brownfield Story Task
2
+
3
+ ## Purpose
4
+
5
+ Create detailed, implementation-ready stories for brownfield projects where traditional sharded PRD/architecture documents may not exist. This task bridges the gap between various documentation formats (document-project output, brownfield PRDs, epics, or user documentation) and executable stories for the Dev agent.
6
+
7
+ ## When to Use This Task
8
+
9
+ **Use this task when:**
10
+
11
+ - Working on brownfield projects with non-standard documentation
12
+ - Stories need to be created from document-project output
13
+ - Working from brownfield epics without full PRD/architecture
14
+ - Existing project documentation doesn't follow BMAD v4+ structure
15
+ - Need to gather additional context from user during story creation
16
+
17
+ **Use create-next-story when:**
18
+
19
+ - Working with properly sharded PRD and v4 architecture documents
20
+ - Following standard greenfield or well-documented brownfield workflow
21
+ - All technical context is available in structured format
22
+
23
+ ## Task Execution Instructions
24
+
25
+ ### 0. Check Workflow Plan and Documentation Context
26
+
27
+ [[LLM: Check for workflow plan first, then available documentation]]
28
+
29
+ #### 0.1 Check Workflow Plan
30
+
31
+ - Load core-config.yml and check if `workflow.trackProgress: true`
32
+ - If yes, check for active plan at `workflow.planFile`
33
+ - If plan exists:
34
+ - Verify story creation aligns with current plan step
35
+ - If out of sequence, warn user (enforce based on config)
36
+ - Note which step this story creation corresponds to
37
+
38
+ #### 0.2 Determine Documentation Context
39
+
40
+ Check for available documentation in this order:
41
+
42
+ 1. **Sharded PRD/Architecture** (docs/prd/, docs/architecture/)
43
+ - If found, recommend using create-next-story task instead
44
+
45
+ 2. **Brownfield Architecture Document** (docs/brownfield-architecture.md or similar)
46
+ - Created by document-project task
47
+ - Contains actual system state, technical debt, workarounds
48
+
49
+ 3. **Brownfield PRD** (docs/prd.md)
50
+ - May contain embedded technical details
51
+
52
+ 4. **Epic Files** (docs/epics/ or similar)
53
+ - Created by brownfield-create-epic task
54
+
55
+ 5. **User-Provided Documentation**
56
+ - Ask user to specify location and format
57
+
58
+ ### 1. Story Identification and Context Gathering
59
+
60
+ #### 1.1 Identify Story Source
61
+
62
+ Based on available documentation:
63
+
64
+ - **From Brownfield PRD**: Extract stories from epic sections
65
+ - **From Epic Files**: Read epic definition and story list
66
+ - **From User Direction**: Ask user which specific enhancement to implement
67
+ - **No Clear Source**: Work with user to define the story scope
68
+
69
+ #### 1.2 Gather Essential Context
70
+
71
+ [[LLM: For brownfield stories, you MUST gather enough context for safe implementation. Be prepared to ask the user for missing information.]]
72
+
73
+ **Required Information Checklist:**
74
+
75
+ - [ ] What existing functionality might be affected?
76
+ - [ ] What are the integration points with current code?
77
+ - [ ] What patterns should be followed (with examples)?
78
+ - [ ] What technical constraints exist?
79
+ - [ ] Are there any "gotchas" or workarounds to know about?
80
+
81
+ If any required information is missing, ask the user:
82
+
83
+ ```
84
+ I need additional context for this brownfield story:
85
+
86
+ Missing Information:
87
+ - [List specific missing items]
88
+
89
+ Please provide:
90
+ 1. [Specific question about integration]
91
+ 2. [Specific question about patterns]
92
+ 3. [Specific question about constraints]
93
+
94
+ Or point me to documentation that contains this information.
95
+ ```
96
+
97
+ ### 2. Extract Technical Context from Available Sources
98
+
99
+ #### 2.1 From Document-Project Output
100
+
101
+ If using brownfield-architecture.md from document-project:
102
+
103
+ - **Technical Debt Section**: Note any workarounds affecting this story
104
+ - **Key Files Section**: Identify files that will need modification
105
+ - **Integration Points**: Find existing integration patterns
106
+ - **Known Issues**: Check if story touches problematic areas
107
+ - **Actual Tech Stack**: Verify versions and constraints
108
+
109
+ #### 2.2 From Brownfield PRD
110
+
111
+ If using brownfield PRD:
112
+
113
+ - **Technical Constraints Section**: Extract all relevant constraints
114
+ - **Integration Requirements**: Note compatibility requirements
115
+ - **Code Organization**: Follow specified patterns
116
+ - **Risk Assessment**: Understand potential impacts
117
+
118
+ #### 2.3 From User Documentation
119
+
120
+ [[LLM: When working with non-BMAD documentation, actively extract and organize the information into categories the Dev agent will need]]
121
+
122
+ Ask the user to help identify:
123
+
124
+ - Relevant technical specifications
125
+ - Existing code examples to follow
126
+ - Integration requirements
127
+ - Testing approaches used in the project
128
+
129
+ ### 3. Story Creation with Progressive Detail Gathering
130
+
131
+ #### 3.1 Create Initial Story Structure
132
+
133
+ Start with the story template, filling in what's known:
134
+
135
+ ```markdown
136
+ # Story {{Enhancement Title}}
137
+
138
+ ## Status: Draft
139
+
140
+ ## Story
141
+ As a {{user_type}},
142
+ I want {{enhancement_capability}},
143
+ so that {{value_delivered}}.
144
+
145
+ ## Context Source
146
+ [[LLM: Document where story requirements came from]]
147
+ - Source Document: {{document name/type}}
148
+ - Enhancement Type: {{single feature/bug fix/integration/etc}}
149
+ - Existing System Impact: {{brief assessment}}
150
+ ```
151
+
152
+ #### 3.2 Develop Acceptance Criteria
153
+
154
+ [[LLM: For brownfield, ALWAYS include criteria about maintaining existing functionality]]
155
+
156
+ Standard structure:
157
+
158
+ 1. New functionality works as specified
159
+ 2. Existing {{affected feature}} continues to work unchanged
160
+ 3. Integration with {{existing system}} maintains current behavior
161
+ 4. No regression in {{related area}}
162
+ 5. Performance remains within acceptable bounds
163
+
164
+ #### 3.3 Gather Technical Guidance
165
+
166
+ [[LLM: This is where you'll need to be interactive with the user if information is missing]]
167
+
168
+ Create Dev Technical Guidance section with available information:
169
+
170
+ ```markdown
171
+ ## Dev Technical Guidance
172
+
173
+ ### Existing System Context
174
+ [Extract from available documentation]
175
+
176
+ ### Integration Approach
177
+ [Based on patterns found or ask user]
178
+
179
+ ### Technical Constraints
180
+ [From documentation or user input]
181
+
182
+ ### Missing Information
183
+ [[LLM: List anything you couldn't find that dev will need]]
184
+ - [ ] {{missing item 1}}
185
+ - [ ] {{missing item 2}}
186
+ ```
187
+
188
+ If critical information is missing, pause and ask:
189
+
190
+ ```
191
+ To complete the technical guidance for this story, I need:
192
+
193
+ 1. **{{Missing Category}}**:
194
+ - Specifically: {{what you need to know}}
195
+ - Why needed: {{how it impacts implementation}}
196
+
197
+ Can you provide this information or point me to relevant code/docs?
198
+ ```
199
+
200
+ ### 4. Task Generation with Safety Checks
201
+
202
+ #### 4.1 Generate Implementation Tasks
203
+
204
+ Based on gathered context, create tasks that:
205
+
206
+ - Include exploration tasks if system understanding is incomplete
207
+ - Add verification tasks for existing functionality
208
+ - Include rollback considerations
209
+ - Reference specific files/patterns when known
210
+
211
+ Example task structure for brownfield:
212
+
213
+ ```markdown
214
+ ## Tasks / Subtasks
215
+
216
+ - [ ] Task 1: Analyze existing {{component/feature}} implementation
217
+ - [ ] Review {{specific files}} for current patterns
218
+ - [ ] Document integration points
219
+ - [ ] Identify potential impacts
220
+
221
+ - [ ] Task 2: Implement {{new functionality}}
222
+ - [ ] Follow pattern from {{example file}}
223
+ - [ ] Integrate with {{existing component}}
224
+ - [ ] Maintain compatibility with {{constraint}}
225
+
226
+ - [ ] Task 3: Verify existing functionality
227
+ - [ ] Test {{existing feature 1}} still works
228
+ - [ ] Verify {{integration point}} behavior unchanged
229
+ - [ ] Check performance impact
230
+
231
+ - [ ] Task 4: Add tests
232
+ - [ ] Unit tests following {{project test pattern}}
233
+ - [ ] Integration test for {{integration point}}
234
+ - [ ] Update existing tests if needed
235
+ ```
236
+
237
+ ### 5. Risk Assessment and Mitigation
238
+
239
+ [[LLM: CRITICAL for brownfield - always include risk assessment]]
240
+
241
+ Add section for brownfield-specific risks:
242
+
243
+ ```markdown
244
+ ## Risk Assessment
245
+
246
+ ### Implementation Risks
247
+ - **Primary Risk**: {{main risk to existing system}}
248
+ - **Mitigation**: {{how to address}}
249
+ - **Verification**: {{how to confirm safety}}
250
+
251
+ ### Rollback Plan
252
+ - {{Simple steps to undo changes if needed}}
253
+
254
+ ### Safety Checks
255
+ - [ ] Existing {{feature}} tested before changes
256
+ - [ ] Changes can be feature-flagged or isolated
257
+ - [ ] Rollback procedure documented
258
+ ```
259
+
260
+ ### 6. Final Story Validation
261
+
262
+ Before finalizing:
263
+
264
+ 1. **Completeness Check**:
265
+ - [ ] Story has clear scope and acceptance criteria
266
+ - [ ] Technical context is sufficient for implementation
267
+ - [ ] Integration approach is defined
268
+ - [ ] Risks are identified with mitigation
269
+
270
+ 2. **Safety Check**:
271
+ - [ ] Existing functionality protection included
272
+ - [ ] Rollback plan is feasible
273
+ - [ ] Testing covers both new and existing features
274
+
275
+ 3. **Information Gaps**:
276
+ - [ ] All critical missing information gathered from user
277
+ - [ ] Remaining unknowns documented for dev agent
278
+ - [ ] Exploration tasks added where needed
279
+
280
+ ### 7. Story Output Format
281
+
282
+ Save the story with appropriate naming:
283
+
284
+ - If from epic: `docs/stories/epic-{n}-story-{m}.md`
285
+ - If standalone: `docs/stories/brownfield-{feature-name}.md`
286
+ - If sequential: Follow existing story numbering
287
+
288
+ Include header noting documentation context:
289
+
290
+ ```markdown
291
+ # Story: {{Title}}
292
+
293
+ <!-- Source: {{documentation type used}} -->
294
+ <!-- Context: Brownfield enhancement to {{existing system}} -->
295
+
296
+ ## Status: Draft
297
+ [Rest of story content...]
298
+ ```
299
+
300
+ ### 8. Handoff Communication
301
+
302
+ Provide clear handoff to the user:
303
+
304
+ ```text
305
+ Brownfield story created: {{story title}}
306
+
307
+ Source Documentation: {{what was used}}
308
+ Story Location: {{file path}}
309
+
310
+ Key Integration Points Identified:
311
+ - {{integration point 1}}
312
+ - {{integration point 2}}
313
+
314
+ Risks Noted:
315
+ - {{primary risk}}
316
+
317
+ {{If missing info}}:
318
+ Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
319
+
320
+ Next Steps:
321
+ 1. Review story for accuracy
322
+ 2. Verify integration approach aligns with your system
323
+ 3. Approve story or request adjustments
324
+ 4. Dev agent can then implement with safety checks
325
+ ```
326
+
327
+ ### 9. Update Workflow Plan (if applicable)
328
+
329
+ [[LLM: After successful story creation]]
330
+
331
+ - If workflow plan tracking is enabled and story was created successfully:
332
+ - Call update-workflow-plan task to mark step complete
333
+ - Parameters: task: create-brownfield-story, step_id: {from plan check}, status: complete
334
+ - If plan shows next recommended step, include it in handoff message
335
+
336
+ ## Success Criteria
337
+
338
+ The brownfield story creation is successful when:
339
+
340
+ 1. Story can be implemented without requiring dev to search multiple documents
341
+ 2. Integration approach is clear and safe for existing system
342
+ 3. All available technical context has been extracted and organized
343
+ 4. Missing information has been identified and addressed
344
+ 5. Risks are documented with mitigation strategies
345
+ 6. Story includes verification of existing functionality
346
+ 7. Rollback approach is defined
347
+
348
+ ## Important Notes
349
+
350
+ - This task is specifically for brownfield projects with non-standard documentation
351
+ - Always prioritize existing system safety over new features
352
+ - When in doubt, add exploration and verification tasks
353
+ - It's better to ask the user for clarification than make assumptions
354
+ - Each story should be self-contained for the dev agent
355
+ - Include references to existing code patterns when available
@@ -26,6 +26,22 @@ To identify the next logical story based on project progress and epic definition
26
26
  - `architecture.architectureSharded`: Whether architecture is sharded
27
27
  - `architecture.architectureFile`: Location of monolithic architecture
28
28
  - `architecture.architectureShardedLocation`: Location of sharded architecture files
29
+ - `workflow.trackProgress`: Whether workflow plan tracking is enabled
30
+ - `workflow.planFile`: Location of workflow plan (if tracking enabled)
31
+
32
+ ### 0.5 Check Workflow Plan (if configured)
33
+
34
+ [[LLM: Check if workflow plan tracking is enabled]]
35
+
36
+ - If `workflow.trackProgress: true`, check for active plan at `workflow.planFile`
37
+ - If plan exists:
38
+ - Parse plan to check if story creation is the expected next step
39
+ - If out of sequence and `workflow.enforceSequence: true`:
40
+ - Show warning: "The workflow plan indicates you should complete {expected_step} before creating stories."
41
+ - Block execution unless user explicitly overrides
42
+ - If out of sequence and `workflow.enforceSequence: false`:
43
+ - Show warning but allow continuation with confirmation
44
+ - Continue with story identification after plan check
29
45
 
30
46
  ### 1. Identify Next Story for Preparation
31
47
 
@@ -249,4 +265,13 @@ Provide a summary to the user including:
249
265
  - Recommendations for story review before approval
250
266
  - Next steps: Story should be reviewed by PO for approval before dev work begins
251
267
 
268
+ ### 10. Update Workflow Plan (if applicable)
269
+
270
+ [[LLM: After successful story creation]]
271
+
272
+ - If `workflow.trackProgress: true` and `workflow.updateOnCompletion: true`:
273
+ - Call update-workflow-plan task to mark story creation step complete
274
+ - Parameters: task: create-next-story, step_id: {from plan}, status: complete
275
+ - If plan shows next step, mention it in completion message
276
+
252
277
  [[LLM: Remember - The success of this task depends on extracting real, specific technical details from the architecture shards. The dev agent should have everything they need in the story file without having to search through multiple documents.]]