siesa-agents 2.1.1 → 2.1.3-dev.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 (147) hide show
  1. package/README.md +83 -83
  2. package/bin/install.js +400 -399
  3. package/bin/prepare-publish.js +26 -26
  4. package/bin/restore-folders.js +26 -26
  5. package/bmad-core/agent-teams/team-all.yaml +15 -15
  6. package/bmad-core/agent-teams/team-fullstack.yaml +19 -19
  7. package/bmad-core/agent-teams/team-ide-minimal.yaml +11 -11
  8. package/bmad-core/agent-teams/team-no-ui.yaml +14 -14
  9. package/bmad-core/agents/analyst.md +84 -84
  10. package/bmad-core/agents/architect.md +94 -94
  11. package/bmad-core/agents/backend-agent.md +189 -189
  12. package/bmad-core/agents/bmad-master.md +110 -110
  13. package/bmad-core/agents/bmad-orchestrator.md +147 -147
  14. package/bmad-core/agents/dev.md +81 -81
  15. package/bmad-core/agents/frontend-agent.md +168 -168
  16. package/bmad-core/agents/pm.md +84 -84
  17. package/bmad-core/agents/po.md +79 -79
  18. package/bmad-core/agents/qa.md +91 -91
  19. package/bmad-core/agents/sm.md +65 -65
  20. package/bmad-core/agents/ux-expert.md +69 -69
  21. package/bmad-core/checklists/architect-checklist.md +440 -440
  22. package/bmad-core/checklists/backend-checklist.md +142 -142
  23. package/bmad-core/checklists/change-checklist.md +184 -184
  24. package/bmad-core/checklists/frontend-checklist.md +105 -105
  25. package/bmad-core/checklists/pm-checklist.md +372 -372
  26. package/bmad-core/checklists/po-master-checklist.md +434 -434
  27. package/bmad-core/checklists/story-dod-checklist.md +96 -96
  28. package/bmad-core/checklists/story-draft-checklist.md +155 -155
  29. package/bmad-core/core-config.yaml +22 -22
  30. package/bmad-core/data/backend-standards.md +439 -439
  31. package/bmad-core/data/bmad-kb.md +809 -809
  32. package/bmad-core/data/brainstorming-techniques.md +38 -38
  33. package/bmad-core/data/elicitation-methods.md +156 -156
  34. package/bmad-core/data/frontend-standards.md +323 -323
  35. package/bmad-core/data/technical-preferences.md +5 -5
  36. package/bmad-core/data/test-levels-framework.md +148 -148
  37. package/bmad-core/data/test-priorities-matrix.md +174 -174
  38. package/bmad-core/enhanced-ide-development-workflow.md +248 -248
  39. package/bmad-core/install-manifest.yaml +230 -230
  40. package/bmad-core/tasks/advanced-elicitation.md +119 -119
  41. package/bmad-core/tasks/apply-qa-fixes.md +150 -150
  42. package/bmad-core/tasks/brownfield-create-epic.md +162 -162
  43. package/bmad-core/tasks/brownfield-create-story.md +149 -149
  44. package/bmad-core/tasks/correct-course.md +72 -72
  45. package/bmad-core/tasks/create-brownfield-story.md +314 -314
  46. package/bmad-core/tasks/create-component.md +102 -102
  47. package/bmad-core/tasks/create-deep-research-prompt.md +280 -280
  48. package/bmad-core/tasks/create-doc.md +103 -103
  49. package/bmad-core/tasks/create-entity.md +132 -132
  50. package/bmad-core/tasks/create-feature.md +90 -90
  51. package/bmad-core/tasks/create-next-story.md +114 -114
  52. package/bmad-core/tasks/create-service.md +117 -117
  53. package/bmad-core/tasks/create-use-case.md +140 -140
  54. package/bmad-core/tasks/document-project.md +345 -345
  55. package/bmad-core/tasks/execute-checklist.md +88 -88
  56. package/bmad-core/tasks/facilitate-brainstorming-session.md +138 -138
  57. package/bmad-core/tasks/generate-ai-frontend-prompt.md +53 -53
  58. package/bmad-core/tasks/index-docs.md +175 -175
  59. package/bmad-core/tasks/kb-mode-interaction.md +77 -77
  60. package/bmad-core/tasks/nfr-assess.md +345 -345
  61. package/bmad-core/tasks/qa-gate.md +163 -163
  62. package/bmad-core/tasks/review-story.md +316 -316
  63. package/bmad-core/tasks/risk-profile.md +355 -355
  64. package/bmad-core/tasks/scaffold-backend.md +110 -110
  65. package/bmad-core/tasks/scaffold-frontend.md +78 -78
  66. package/bmad-core/tasks/shard-doc.md +187 -187
  67. package/bmad-core/tasks/test-design.md +176 -176
  68. package/bmad-core/tasks/trace-requirements.md +266 -266
  69. package/bmad-core/tasks/validate-next-story.md +136 -136
  70. package/bmad-core/templates/architecture-tmpl.yaml +662 -662
  71. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -156
  72. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +477 -477
  73. package/bmad-core/templates/brownfield-prd-tmpl.yaml +281 -281
  74. package/bmad-core/templates/competitor-analysis-tmpl.yaml +307 -307
  75. package/bmad-core/templates/front-end-architecture-tmpl.yaml +258 -258
  76. package/bmad-core/templates/front-end-spec-tmpl.yaml +350 -350
  77. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +824 -824
  78. package/bmad-core/templates/market-research-tmpl.yaml +253 -253
  79. package/bmad-core/templates/prd-tmpl.yaml +203 -203
  80. package/bmad-core/templates/project-brief-tmpl.yaml +222 -222
  81. package/bmad-core/templates/qa-gate-tmpl.yaml +103 -103
  82. package/bmad-core/templates/story-tmpl.yaml +138 -138
  83. package/bmad-core/user-guide.md +530 -530
  84. package/bmad-core/utils/bmad-doc-template.md +327 -327
  85. package/bmad-core/utils/workflow-management.md +71 -71
  86. package/bmad-core/workflows/brownfield-fullstack.yaml +298 -298
  87. package/bmad-core/workflows/brownfield-service.yaml +188 -188
  88. package/bmad-core/workflows/brownfield-ui.yaml +198 -198
  89. package/bmad-core/workflows/greenfield-fullstack.yaml +241 -241
  90. package/bmad-core/workflows/greenfield-service.yaml +207 -207
  91. package/bmad-core/workflows/greenfield-ui.yaml +236 -236
  92. package/bmad-core/working-in-the-brownfield.md +606 -606
  93. package/claude/commands/BMad/agents/analyst.md +88 -0
  94. package/claude/commands/BMad/agents/architect.md +89 -0
  95. package/claude/commands/BMad/agents/backend.md +188 -0
  96. package/claude/commands/BMad/agents/bmad-master.md +114 -0
  97. package/claude/commands/BMad/agents/bmad-orchestrator.md +151 -0
  98. package/claude/commands/BMad/agents/dev.md +85 -0
  99. package/claude/commands/BMad/agents/frontend.md +151 -0
  100. package/claude/commands/BMad/agents/pm.md +88 -0
  101. package/claude/commands/BMad/agents/po.md +83 -0
  102. package/claude/commands/BMad/agents/qa.md +95 -0
  103. package/claude/commands/BMad/agents/sm.md +69 -0
  104. package/claude/commands/BMad/agents/ux-expert.md +73 -0
  105. package/claude/commands/BMad/tasks/advanced-elicitation.md +123 -0
  106. package/claude/commands/BMad/tasks/apply-qa-fixes.md +154 -0
  107. package/claude/commands/BMad/tasks/brownfield-create-epic.md +166 -0
  108. package/claude/commands/BMad/tasks/brownfield-create-story.md +153 -0
  109. package/claude/commands/BMad/tasks/correct-course.md +76 -0
  110. package/claude/commands/BMad/tasks/create-brownfield-story.md +318 -0
  111. package/claude/commands/BMad/tasks/create-deep-research-prompt.md +284 -0
  112. package/claude/commands/BMad/tasks/create-doc.md +107 -0
  113. package/claude/commands/BMad/tasks/create-next-story.md +118 -0
  114. package/claude/commands/BMad/tasks/document-project.md +349 -0
  115. package/claude/commands/BMad/tasks/execute-checklist.md +92 -0
  116. package/claude/commands/BMad/tasks/facilitate-brainstorming-session.md +142 -0
  117. package/claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +57 -0
  118. package/claude/commands/BMad/tasks/index-docs.md +179 -0
  119. package/claude/commands/BMad/tasks/kb-mode-interaction.md +81 -0
  120. package/claude/commands/BMad/tasks/nfr-assess.md +349 -0
  121. package/claude/commands/BMad/tasks/qa-gate.md +167 -0
  122. package/claude/commands/BMad/tasks/review-story.md +320 -0
  123. package/claude/commands/BMad/tasks/risk-profile.md +359 -0
  124. package/claude/commands/BMad/tasks/shard-doc.md +191 -0
  125. package/claude/commands/BMad/tasks/test-design.md +180 -0
  126. package/claude/commands/BMad/tasks/trace-requirements.md +270 -0
  127. package/claude/commands/BMad/tasks/validate-next-story.md +140 -0
  128. package/claude/hooks/file-restriction-hook.py +51 -0
  129. package/claude/hooks/track-agent.py +67 -0
  130. package/claude/settings.local.json +56 -0
  131. package/github/b-mad-expert.md +742 -742
  132. package/github/chatmodes/analyst.chatmode.md +89 -89
  133. package/github/chatmodes/architect.chatmode.md +97 -97
  134. package/github/chatmodes/backend.chatmode.md +194 -194
  135. package/github/chatmodes/bmad-master.chatmode.md +115 -115
  136. package/github/chatmodes/bmad-orchestrator.chatmode.md +152 -152
  137. package/github/chatmodes/dev.chatmode.md +86 -86
  138. package/github/chatmodes/frontend.chatmode.md +157 -157
  139. package/github/chatmodes/pm.chatmode.md +89 -89
  140. package/github/chatmodes/po.chatmode.md +84 -84
  141. package/github/chatmodes/qa.chatmode.md +96 -96
  142. package/github/chatmodes/sm.chatmode.md +70 -70
  143. package/github/chatmodes/ux-expert.chatmode.md +74 -74
  144. package/index.js +9 -9
  145. package/package.json +37 -36
  146. package/vscode/mcp.json +11 -11
  147. package/vscode/settings.json +12 -12
@@ -1,298 +1,298 @@
1
- # <!-- Powered by BMAD™ Core -->
2
- workflow:
3
- id: brownfield-fullstack
4
- name: Brownfield Full-Stack Enhancement
5
- description: >-
6
- Agent workflow for enhancing existing full-stack applications with new features,
7
- modernization, or significant changes. Handles existing system analysis and safe integration.
8
- type: brownfield
9
- project_types:
10
- - feature-addition
11
- - refactoring
12
- - modernization
13
- - integration-enhancement
14
-
15
- sequence:
16
- - step: enhancement_classification
17
- agent: analyst
18
- action: classify enhancement scope
19
- notes: |
20
- Determine enhancement complexity to route to appropriate path:
21
- - Single story (< 4 hours) → Use brownfield-create-story task
22
- - Small feature (1-3 stories) → Use brownfield-create-epic task
23
- - Major enhancement (multiple epics) → Continue with full workflow
24
-
25
- Ask user: "Can you describe the enhancement scope? Is this a small fix, a feature addition, or a major enhancement requiring architectural changes?"
26
-
27
- - step: routing_decision
28
- condition: based_on_classification
29
- routes:
30
- single_story:
31
- agent: pm
32
- uses: brownfield-create-story
33
- notes: "Create single story for immediate implementation. Exit workflow after story creation."
34
- small_feature:
35
- agent: pm
36
- uses: brownfield-create-epic
37
- notes: "Create focused epic with 1-3 stories. Exit workflow after epic creation."
38
- major_enhancement:
39
- continue: to_next_step
40
- notes: "Continue with comprehensive planning workflow below."
41
-
42
- - step: documentation_check
43
- agent: analyst
44
- action: check existing documentation
45
- condition: major_enhancement_path
46
- notes: |
47
- Check if adequate project documentation exists:
48
- - Look for existing architecture docs, API specs, coding standards
49
- - Assess if documentation is current and comprehensive
50
- - If adequate: Skip document-project, proceed to PRD
51
- - If inadequate: Run document-project first
52
-
53
- - step: project_analysis
54
- agent: architect
55
- action: analyze existing project and use task document-project
56
- creates: brownfield-architecture.md (or multiple documents)
57
- condition: documentation_inadequate
58
- notes: "Run document-project to capture current system state, technical debt, and constraints. Pass findings to PRD creation."
59
-
60
- - agent: pm
61
- creates: prd.md
62
- uses: brownfield-prd-tmpl
63
- requires: existing_documentation_or_analysis
64
- notes: |
65
- Creates PRD for major enhancement. If document-project was run, reference its output to avoid re-analysis.
66
- If skipped, use existing project documentation.
67
- SAVE OUTPUT: Copy final prd.md to your project's docs/ folder.
68
-
69
- - step: architecture_decision
70
- agent: pm/architect
71
- action: determine if architecture document needed
72
- condition: after_prd_creation
73
- notes: |
74
- Review PRD to determine if architectural planning is needed:
75
- - New architectural patterns → Create architecture doc
76
- - New libraries/frameworks → Create architecture doc
77
- - Platform/infrastructure changes → Create architecture doc
78
- - Following existing patterns → Skip to story creation
79
-
80
- - agent: architect
81
- creates: architecture.md
82
- uses: brownfield-architecture-tmpl
83
- requires: prd.md
84
- condition: architecture_changes_needed
85
- notes: "Creates architecture ONLY for significant architectural changes. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
86
-
87
- - agent: po
88
- validates: all_artifacts
89
- uses: po-master-checklist
90
- notes: "Validates all documents for integration safety and completeness. May require updates to any document."
91
-
92
- - agent: various
93
- updates: any_flagged_documents
94
- condition: po_checklist_issues
95
- notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
96
-
97
- - agent: po
98
- action: shard_documents
99
- creates: sharded_docs
100
- requires: all_artifacts_in_project
101
- notes: |
102
- Shard documents for IDE development:
103
- - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
104
- - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
105
- - Creates docs/prd/ and docs/architecture/ folders with sharded content
106
-
107
- - agent: sm
108
- action: create_story
109
- creates: story.md
110
- requires: sharded_docs_or_brownfield_docs
111
- repeats: for_each_epic_or_enhancement
112
- notes: |
113
- Story creation cycle:
114
- - For sharded PRD: @sm → *create (uses create-next-story)
115
- - For brownfield docs: @sm → use create-brownfield-story task
116
- - Creates story from available documentation
117
- - Story starts in "Draft" status
118
- - May require additional context gathering for brownfield
119
-
120
- - agent: analyst/pm
121
- action: review_draft_story
122
- updates: story.md
123
- requires: story.md
124
- optional: true
125
- condition: user_wants_story_review
126
- notes: |
127
- OPTIONAL: Review and approve draft story
128
- - NOTE: story-review task coming soon
129
- - Review story completeness and alignment
130
- - Update story status: Draft → Approved
131
-
132
- - agent: dev
133
- action: implement_story
134
- creates: implementation_files
135
- requires: story.md
136
- notes: |
137
- Dev Agent (New Chat): @dev
138
- - Implements approved story
139
- - Updates File List with all changes
140
- - Marks story as "Review" when complete
141
-
142
- - agent: qa
143
- action: review_implementation
144
- updates: implementation_files
145
- requires: implementation_files
146
- optional: true
147
- notes: |
148
- OPTIONAL: QA Agent (New Chat): @qa → review-story
149
- - Senior dev review with refactoring ability
150
- - Fixes small issues directly
151
- - Leaves checklist for remaining items
152
- - Updates story status (Review → Done or stays Review)
153
-
154
- - agent: dev
155
- action: address_qa_feedback
156
- updates: implementation_files
157
- condition: qa_left_unchecked_items
158
- notes: |
159
- If QA left unchecked items:
160
- - Dev Agent (New Chat): Address remaining items
161
- - Return to QA for final approval
162
-
163
- - step: repeat_development_cycle
164
- action: continue_for_all_stories
165
- notes: |
166
- Repeat story cycle (SM → Dev → QA) for all epic stories
167
- Continue until all stories in PRD are complete
168
-
169
- - agent: po
170
- action: epic_retrospective
171
- creates: epic-retrospective.md
172
- condition: epic_complete
173
- optional: true
174
- notes: |
175
- OPTIONAL: After epic completion
176
- - NOTE: epic-retrospective task coming soon
177
- - Validate epic was completed correctly
178
- - Document learnings and improvements
179
-
180
- - step: workflow_end
181
- action: project_complete
182
- notes: |
183
- All stories implemented and reviewed!
184
- Project development phase complete.
185
-
186
- Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
187
-
188
- flow_diagram: |
189
- ```mermaid
190
- graph TD
191
- A[Start: Brownfield Enhancement] --> B[analyst: classify enhancement scope]
192
- B --> C{Enhancement Size?}
193
-
194
- C -->|Single Story| D[pm: brownfield-create-story]
195
- C -->|1-3 Stories| E[pm: brownfield-create-epic]
196
- C -->|Major Enhancement| F[analyst: check documentation]
197
-
198
- D --> END1[To Dev Implementation]
199
- E --> END2[To Story Creation]
200
-
201
- F --> G{Docs Adequate?}
202
- G -->|No| H[architect: document-project]
203
- G -->|Yes| I[pm: brownfield PRD]
204
- H --> I
205
-
206
- I --> J{Architecture Needed?}
207
- J -->|Yes| K[architect: architecture.md]
208
- J -->|No| L[po: validate artifacts]
209
- K --> L
210
-
211
- L --> M{PO finds issues?}
212
- M -->|Yes| N[Fix issues]
213
- M -->|No| O[po: shard documents]
214
- N --> L
215
-
216
- O --> P[sm: create story]
217
- P --> Q{Story Type?}
218
- Q -->|Sharded PRD| R[create-next-story]
219
- Q -->|Brownfield Docs| S[create-brownfield-story]
220
-
221
- R --> T{Review draft?}
222
- S --> T
223
- T -->|Yes| U[review & approve]
224
- T -->|No| V[dev: implement]
225
- U --> V
226
-
227
- V --> W{QA review?}
228
- W -->|Yes| X[qa: review]
229
- W -->|No| Y{More stories?}
230
- X --> Z{Issues?}
231
- Z -->|Yes| AA[dev: fix]
232
- Z -->|No| Y
233
- AA --> X
234
- Y -->|Yes| P
235
- Y -->|No| AB{Retrospective?}
236
- AB -->|Yes| AC[po: retrospective]
237
- AB -->|No| AD[Complete]
238
- AC --> AD
239
-
240
- style AD fill:#90EE90
241
- style END1 fill:#90EE90
242
- style END2 fill:#90EE90
243
- style D fill:#87CEEB
244
- style E fill:#87CEEB
245
- style I fill:#FFE4B5
246
- style K fill:#FFE4B5
247
- style O fill:#ADD8E6
248
- style P fill:#ADD8E6
249
- style V fill:#ADD8E6
250
- style U fill:#F0E68C
251
- style X fill:#F0E68C
252
- style AC fill:#F0E68C
253
- ```
254
-
255
- decision_guidance:
256
- when_to_use:
257
- - Enhancement requires coordinated stories
258
- - Architectural changes are needed
259
- - Significant integration work required
260
- - Risk assessment and mitigation planning necessary
261
- - Multiple team members will work on related changes
262
-
263
- handoff_prompts:
264
- classification_complete: |
265
- Enhancement classified as: {{enhancement_type}}
266
- {{if single_story}}: Proceeding with brownfield-create-story task for immediate implementation.
267
- {{if small_feature}}: Creating focused epic with brownfield-create-epic task.
268
- {{if major_enhancement}}: Continuing with comprehensive planning workflow.
269
-
270
- documentation_assessment: |
271
- Documentation assessment complete:
272
- {{if adequate}}: Existing documentation is sufficient. Proceeding directly to PRD creation.
273
- {{if inadequate}}: Running document-project to capture current system state before PRD.
274
-
275
- document_project_to_pm: |
276
- Project analysis complete. Key findings documented in:
277
- - {{document_list}}
278
- Use these findings to inform PRD creation and avoid re-analyzing the same aspects.
279
-
280
- pm_to_architect_decision: |
281
- PRD complete and saved as docs/prd.md.
282
- Architectural changes identified: {{yes/no}}
283
- {{if yes}}: Proceeding to create architecture document for: {{specific_changes}}
284
- {{if no}}: No architectural changes needed. Proceeding to validation.
285
-
286
- architect_to_po: "Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for integration safety."
287
-
288
- po_to_sm: |
289
- All artifacts validated.
290
- Documentation type available: {{sharded_prd / brownfield_docs}}
291
- {{if sharded}}: Use standard create-next-story task.
292
- {{if brownfield}}: Use create-brownfield-story task to handle varied documentation formats.
293
-
294
- sm_story_creation: |
295
- Creating story from {{documentation_type}}.
296
- {{if missing_context}}: May need to gather additional context from user during story creation.
297
-
298
- complete: "All planning artifacts validated and development can begin. Stories will be created based on available documentation format."
1
+ # <!-- Powered by BMAD™ Core -->
2
+ workflow:
3
+ id: brownfield-fullstack
4
+ name: Brownfield Full-Stack Enhancement
5
+ description: >-
6
+ Agent workflow for enhancing existing full-stack applications with new features,
7
+ modernization, or significant changes. Handles existing system analysis and safe integration.
8
+ type: brownfield
9
+ project_types:
10
+ - feature-addition
11
+ - refactoring
12
+ - modernization
13
+ - integration-enhancement
14
+
15
+ sequence:
16
+ - step: enhancement_classification
17
+ agent: analyst
18
+ action: classify enhancement scope
19
+ notes: |
20
+ Determine enhancement complexity to route to appropriate path:
21
+ - Single story (< 4 hours) → Use brownfield-create-story task
22
+ - Small feature (1-3 stories) → Use brownfield-create-epic task
23
+ - Major enhancement (multiple epics) → Continue with full workflow
24
+
25
+ Ask user: "Can you describe the enhancement scope? Is this a small fix, a feature addition, or a major enhancement requiring architectural changes?"
26
+
27
+ - step: routing_decision
28
+ condition: based_on_classification
29
+ routes:
30
+ single_story:
31
+ agent: pm
32
+ uses: brownfield-create-story
33
+ notes: "Create single story for immediate implementation. Exit workflow after story creation."
34
+ small_feature:
35
+ agent: pm
36
+ uses: brownfield-create-epic
37
+ notes: "Create focused epic with 1-3 stories. Exit workflow after epic creation."
38
+ major_enhancement:
39
+ continue: to_next_step
40
+ notes: "Continue with comprehensive planning workflow below."
41
+
42
+ - step: documentation_check
43
+ agent: analyst
44
+ action: check existing documentation
45
+ condition: major_enhancement_path
46
+ notes: |
47
+ Check if adequate project documentation exists:
48
+ - Look for existing architecture docs, API specs, coding standards
49
+ - Assess if documentation is current and comprehensive
50
+ - If adequate: Skip document-project, proceed to PRD
51
+ - If inadequate: Run document-project first
52
+
53
+ - step: project_analysis
54
+ agent: architect
55
+ action: analyze existing project and use task document-project
56
+ creates: brownfield-architecture.md (or multiple documents)
57
+ condition: documentation_inadequate
58
+ notes: "Run document-project to capture current system state, technical debt, and constraints. Pass findings to PRD creation."
59
+
60
+ - agent: pm
61
+ creates: prd.md
62
+ uses: brownfield-prd-tmpl
63
+ requires: existing_documentation_or_analysis
64
+ notes: |
65
+ Creates PRD for major enhancement. If document-project was run, reference its output to avoid re-analysis.
66
+ If skipped, use existing project documentation.
67
+ SAVE OUTPUT: Copy final prd.md to your project's docs/ folder.
68
+
69
+ - step: architecture_decision
70
+ agent: pm/architect
71
+ action: determine if architecture document needed
72
+ condition: after_prd_creation
73
+ notes: |
74
+ Review PRD to determine if architectural planning is needed:
75
+ - New architectural patterns → Create architecture doc
76
+ - New libraries/frameworks → Create architecture doc
77
+ - Platform/infrastructure changes → Create architecture doc
78
+ - Following existing patterns → Skip to story creation
79
+
80
+ - agent: architect
81
+ creates: architecture.md
82
+ uses: brownfield-architecture-tmpl
83
+ requires: prd.md
84
+ condition: architecture_changes_needed
85
+ notes: "Creates architecture ONLY for significant architectural changes. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
86
+
87
+ - agent: po
88
+ validates: all_artifacts
89
+ uses: po-master-checklist
90
+ notes: "Validates all documents for integration safety and completeness. May require updates to any document."
91
+
92
+ - agent: various
93
+ updates: any_flagged_documents
94
+ condition: po_checklist_issues
95
+ notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
96
+
97
+ - agent: po
98
+ action: shard_documents
99
+ creates: sharded_docs
100
+ requires: all_artifacts_in_project
101
+ notes: |
102
+ Shard documents for IDE development:
103
+ - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
104
+ - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
105
+ - Creates docs/prd/ and docs/architecture/ folders with sharded content
106
+
107
+ - agent: sm
108
+ action: create_story
109
+ creates: story.md
110
+ requires: sharded_docs_or_brownfield_docs
111
+ repeats: for_each_epic_or_enhancement
112
+ notes: |
113
+ Story creation cycle:
114
+ - For sharded PRD: @sm → *create (uses create-next-story)
115
+ - For brownfield docs: @sm → use create-brownfield-story task
116
+ - Creates story from available documentation
117
+ - Story starts in "Draft" status
118
+ - May require additional context gathering for brownfield
119
+
120
+ - agent: analyst/pm
121
+ action: review_draft_story
122
+ updates: story.md
123
+ requires: story.md
124
+ optional: true
125
+ condition: user_wants_story_review
126
+ notes: |
127
+ OPTIONAL: Review and approve draft story
128
+ - NOTE: story-review task coming soon
129
+ - Review story completeness and alignment
130
+ - Update story status: Draft → Approved
131
+
132
+ - agent: dev
133
+ action: implement_story
134
+ creates: implementation_files
135
+ requires: story.md
136
+ notes: |
137
+ Dev Agent (New Chat): @dev
138
+ - Implements approved story
139
+ - Updates File List with all changes
140
+ - Marks story as "Review" when complete
141
+
142
+ - agent: qa
143
+ action: review_implementation
144
+ updates: implementation_files
145
+ requires: implementation_files
146
+ optional: true
147
+ notes: |
148
+ OPTIONAL: QA Agent (New Chat): @qa → review-story
149
+ - Senior dev review with refactoring ability
150
+ - Fixes small issues directly
151
+ - Leaves checklist for remaining items
152
+ - Updates story status (Review → Done or stays Review)
153
+
154
+ - agent: dev
155
+ action: address_qa_feedback
156
+ updates: implementation_files
157
+ condition: qa_left_unchecked_items
158
+ notes: |
159
+ If QA left unchecked items:
160
+ - Dev Agent (New Chat): Address remaining items
161
+ - Return to QA for final approval
162
+
163
+ - step: repeat_development_cycle
164
+ action: continue_for_all_stories
165
+ notes: |
166
+ Repeat story cycle (SM → Dev → QA) for all epic stories
167
+ Continue until all stories in PRD are complete
168
+
169
+ - agent: po
170
+ action: epic_retrospective
171
+ creates: epic-retrospective.md
172
+ condition: epic_complete
173
+ optional: true
174
+ notes: |
175
+ OPTIONAL: After epic completion
176
+ - NOTE: epic-retrospective task coming soon
177
+ - Validate epic was completed correctly
178
+ - Document learnings and improvements
179
+
180
+ - step: workflow_end
181
+ action: project_complete
182
+ notes: |
183
+ All stories implemented and reviewed!
184
+ Project development phase complete.
185
+
186
+ Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
187
+
188
+ flow_diagram: |
189
+ ```mermaid
190
+ graph TD
191
+ A[Start: Brownfield Enhancement] --> B[analyst: classify enhancement scope]
192
+ B --> C{Enhancement Size?}
193
+
194
+ C -->|Single Story| D[pm: brownfield-create-story]
195
+ C -->|1-3 Stories| E[pm: brownfield-create-epic]
196
+ C -->|Major Enhancement| F[analyst: check documentation]
197
+
198
+ D --> END1[To Dev Implementation]
199
+ E --> END2[To Story Creation]
200
+
201
+ F --> G{Docs Adequate?}
202
+ G -->|No| H[architect: document-project]
203
+ G -->|Yes| I[pm: brownfield PRD]
204
+ H --> I
205
+
206
+ I --> J{Architecture Needed?}
207
+ J -->|Yes| K[architect: architecture.md]
208
+ J -->|No| L[po: validate artifacts]
209
+ K --> L
210
+
211
+ L --> M{PO finds issues?}
212
+ M -->|Yes| N[Fix issues]
213
+ M -->|No| O[po: shard documents]
214
+ N --> L
215
+
216
+ O --> P[sm: create story]
217
+ P --> Q{Story Type?}
218
+ Q -->|Sharded PRD| R[create-next-story]
219
+ Q -->|Brownfield Docs| S[create-brownfield-story]
220
+
221
+ R --> T{Review draft?}
222
+ S --> T
223
+ T -->|Yes| U[review & approve]
224
+ T -->|No| V[dev: implement]
225
+ U --> V
226
+
227
+ V --> W{QA review?}
228
+ W -->|Yes| X[qa: review]
229
+ W -->|No| Y{More stories?}
230
+ X --> Z{Issues?}
231
+ Z -->|Yes| AA[dev: fix]
232
+ Z -->|No| Y
233
+ AA --> X
234
+ Y -->|Yes| P
235
+ Y -->|No| AB{Retrospective?}
236
+ AB -->|Yes| AC[po: retrospective]
237
+ AB -->|No| AD[Complete]
238
+ AC --> AD
239
+
240
+ style AD fill:#90EE90
241
+ style END1 fill:#90EE90
242
+ style END2 fill:#90EE90
243
+ style D fill:#87CEEB
244
+ style E fill:#87CEEB
245
+ style I fill:#FFE4B5
246
+ style K fill:#FFE4B5
247
+ style O fill:#ADD8E6
248
+ style P fill:#ADD8E6
249
+ style V fill:#ADD8E6
250
+ style U fill:#F0E68C
251
+ style X fill:#F0E68C
252
+ style AC fill:#F0E68C
253
+ ```
254
+
255
+ decision_guidance:
256
+ when_to_use:
257
+ - Enhancement requires coordinated stories
258
+ - Architectural changes are needed
259
+ - Significant integration work required
260
+ - Risk assessment and mitigation planning necessary
261
+ - Multiple team members will work on related changes
262
+
263
+ handoff_prompts:
264
+ classification_complete: |
265
+ Enhancement classified as: {{enhancement_type}}
266
+ {{if single_story}}: Proceeding with brownfield-create-story task for immediate implementation.
267
+ {{if small_feature}}: Creating focused epic with brownfield-create-epic task.
268
+ {{if major_enhancement}}: Continuing with comprehensive planning workflow.
269
+
270
+ documentation_assessment: |
271
+ Documentation assessment complete:
272
+ {{if adequate}}: Existing documentation is sufficient. Proceeding directly to PRD creation.
273
+ {{if inadequate}}: Running document-project to capture current system state before PRD.
274
+
275
+ document_project_to_pm: |
276
+ Project analysis complete. Key findings documented in:
277
+ - {{document_list}}
278
+ Use these findings to inform PRD creation and avoid re-analyzing the same aspects.
279
+
280
+ pm_to_architect_decision: |
281
+ PRD complete and saved as docs/prd.md.
282
+ Architectural changes identified: {{yes/no}}
283
+ {{if yes}}: Proceeding to create architecture document for: {{specific_changes}}
284
+ {{if no}}: No architectural changes needed. Proceeding to validation.
285
+
286
+ architect_to_po: "Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for integration safety."
287
+
288
+ po_to_sm: |
289
+ All artifacts validated.
290
+ Documentation type available: {{sharded_prd / brownfield_docs}}
291
+ {{if sharded}}: Use standard create-next-story task.
292
+ {{if brownfield}}: Use create-brownfield-story task to handle varied documentation formats.
293
+
294
+ sm_story_creation: |
295
+ Creating story from {{documentation_type}}.
296
+ {{if missing_context}}: May need to gather additional context from user during story creation.
297
+
298
+ complete: "All planning artifacts validated and development can begin. Stories will be created based on available documentation format."