bmad-method 4.37.0-beta.2 → 4.37.0-beta.4

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 (206) hide show
  1. package/README.md +3 -214
  2. package/package.json +26 -63
  3. package/.github/FUNDING.yaml +0 -15
  4. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
  5. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -22
  6. package/.github/workflows/discord.yaml +0 -16
  7. package/.github/workflows/release.yaml +0 -60
  8. package/.releaserc.json +0 -21
  9. package/.vscode/settings.json +0 -44
  10. package/CHANGELOG.md +0 -689
  11. package/CONTRIBUTING.md +0 -209
  12. package/LICENSE +0 -21
  13. package/bmad-core/agent-teams/team-all.yaml +0 -14
  14. package/bmad-core/agent-teams/team-fullstack.yaml +0 -18
  15. package/bmad-core/agent-teams/team-ide-minimal.yaml +0 -10
  16. package/bmad-core/agent-teams/team-no-ui.yaml +0 -13
  17. package/bmad-core/agents/analyst.md +0 -81
  18. package/bmad-core/agents/architect.md +0 -84
  19. package/bmad-core/agents/bmad-master.md +0 -108
  20. package/bmad-core/agents/bmad-orchestrator.md +0 -150
  21. package/bmad-core/agents/dev.md +0 -76
  22. package/bmad-core/agents/pm.md +0 -81
  23. package/bmad-core/agents/po.md +0 -76
  24. package/bmad-core/agents/qa.md +0 -69
  25. package/bmad-core/agents/sm.md +0 -62
  26. package/bmad-core/agents/ux-expert.md +0 -66
  27. package/bmad-core/checklists/architect-checklist.md +0 -443
  28. package/bmad-core/checklists/change-checklist.md +0 -182
  29. package/bmad-core/checklists/pm-checklist.md +0 -375
  30. package/bmad-core/checklists/po-master-checklist.md +0 -441
  31. package/bmad-core/checklists/story-dod-checklist.md +0 -101
  32. package/bmad-core/checklists/story-draft-checklist.md +0 -156
  33. package/bmad-core/core-config.yaml +0 -20
  34. package/bmad-core/data/bmad-kb.md +0 -803
  35. package/bmad-core/data/brainstorming-techniques.md +0 -36
  36. package/bmad-core/data/elicitation-methods.md +0 -134
  37. package/bmad-core/data/technical-preferences.md +0 -3
  38. package/bmad-core/tasks/advanced-elicitation.md +0 -117
  39. package/bmad-core/tasks/brownfield-create-epic.md +0 -160
  40. package/bmad-core/tasks/brownfield-create-story.md +0 -147
  41. package/bmad-core/tasks/correct-course.md +0 -70
  42. package/bmad-core/tasks/create-brownfield-story.md +0 -304
  43. package/bmad-core/tasks/create-deep-research-prompt.md +0 -289
  44. package/bmad-core/tasks/create-next-story.md +0 -112
  45. package/bmad-core/tasks/document-project.md +0 -341
  46. package/bmad-core/tasks/facilitate-brainstorming-session.md +0 -136
  47. package/bmad-core/tasks/generate-ai-frontend-prompt.md +0 -51
  48. package/bmad-core/tasks/index-docs.md +0 -179
  49. package/bmad-core/tasks/kb-mode-interaction.md +0 -75
  50. package/bmad-core/tasks/review-story.md +0 -145
  51. package/bmad-core/tasks/shard-doc.md +0 -187
  52. package/bmad-core/tasks/validate-next-story.md +0 -134
  53. package/bmad-core/templates/architecture-tmpl.yaml +0 -650
  54. package/bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
  55. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -476
  56. package/bmad-core/templates/brownfield-prd-tmpl.yaml +0 -280
  57. package/bmad-core/templates/competitor-analysis-tmpl.yaml +0 -293
  58. package/bmad-core/templates/front-end-architecture-tmpl.yaml +0 -206
  59. package/bmad-core/templates/front-end-spec-tmpl.yaml +0 -349
  60. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -805
  61. package/bmad-core/templates/market-research-tmpl.yaml +0 -252
  62. package/bmad-core/templates/prd-tmpl.yaml +0 -202
  63. package/bmad-core/templates/project-brief-tmpl.yaml +0 -221
  64. package/bmad-core/templates/story-tmpl.yaml +0 -137
  65. package/bmad-core/workflows/brownfield-fullstack.yaml +0 -297
  66. package/bmad-core/workflows/brownfield-service.yaml +0 -187
  67. package/bmad-core/workflows/brownfield-ui.yaml +0 -197
  68. package/bmad-core/workflows/greenfield-fullstack.yaml +0 -240
  69. package/bmad-core/workflows/greenfield-service.yaml +0 -206
  70. package/bmad-core/workflows/greenfield-ui.yaml +0 -235
  71. package/common/tasks/create-doc.md +0 -101
  72. package/common/tasks/execute-checklist.md +0 -93
  73. package/common/utils/bmad-doc-template.md +0 -325
  74. package/common/utils/workflow-management.md +0 -69
  75. package/dist/agents/analyst.txt +0 -2882
  76. package/dist/agents/architect.txt +0 -3543
  77. package/dist/agents/bmad-master.txt +0 -8756
  78. package/dist/agents/bmad-orchestrator.txt +0 -1490
  79. package/dist/agents/dev.txt +0 -428
  80. package/dist/agents/pm.txt +0 -2229
  81. package/dist/agents/po.txt +0 -1364
  82. package/dist/agents/qa.txt +0 -386
  83. package/dist/agents/sm.txt +0 -668
  84. package/dist/agents/ux-expert.txt +0 -701
  85. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +0 -2408
  86. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +0 -1631
  87. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +0 -822
  88. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +0 -10989
  89. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +0 -4047
  90. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +0 -3744
  91. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +0 -465
  92. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +0 -990
  93. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +0 -15467
  94. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +0 -2077
  95. package/dist/teams/team-all.txt +0 -11062
  96. package/dist/teams/team-fullstack.txt +0 -10392
  97. package/dist/teams/team-ide-minimal.txt +0 -3507
  98. package/dist/teams/team-no-ui.txt +0 -8951
  99. package/docs/GUIDING-PRINCIPLES.md +0 -91
  100. package/docs/core-architecture.md +0 -219
  101. package/docs/enhanced-ide-development-workflow.md +0 -43
  102. package/docs/expansion-packs.md +0 -280
  103. package/docs/how-to-contribute-with-pull-requests.md +0 -158
  104. package/docs/user-guide.md +0 -251
  105. package/docs/versioning-and-releases.md +0 -77
  106. package/docs/versions.md +0 -48
  107. package/docs/working-in-the-brownfield.md +0 -364
  108. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/Complete AI Agent System - Flowchart.svg +0 -102
  109. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash copy.txt +0 -13
  110. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash.txt +0 -13
  111. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.2 Agent Development Kit Installation/1.2.2 - Basic Project Structure - txt.txt +0 -25
  112. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.1 - settings.py +0 -34
  113. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.2 - main.py - Base Application.py +0 -70
  114. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.4 Deployment Configuration/1.4.2 - cloudbuild.yaml +0 -26
  115. package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/README.md +0 -109
  116. package/expansion-packs/README.md +0 -3
  117. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +0 -13
  118. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +0 -71
  119. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +0 -78
  120. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +0 -64
  121. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +0 -201
  122. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +0 -160
  123. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +0 -8
  124. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -254
  125. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +0 -651
  126. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -111
  127. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +0 -216
  128. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -308
  129. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +0 -613
  130. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +0 -356
  131. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +0 -343
  132. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +0 -253
  133. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +0 -484
  134. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +0 -183
  135. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +0 -175
  136. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +0 -14
  137. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +0 -80
  138. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +0 -77
  139. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +0 -78
  140. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +0 -65
  141. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +0 -396
  142. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +0 -203
  143. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +0 -201
  144. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +0 -132
  145. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +0 -6
  146. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +0 -776
  147. package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +0 -590
  148. package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +0 -111
  149. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +0 -151
  150. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +0 -184
  151. package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +0 -308
  152. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +0 -200
  153. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +0 -1030
  154. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +0 -356
  155. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +0 -705
  156. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +0 -256
  157. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +0 -484
  158. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +0 -183
  159. package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +0 -175
  160. package/expansion-packs/bmad-infrastructure-devops/README.md +0 -147
  161. package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +0 -71
  162. package/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +0 -484
  163. package/expansion-packs/bmad-infrastructure-devops/config.yaml +0 -9
  164. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +0 -308
  165. package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +0 -160
  166. package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +0 -154
  167. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +0 -424
  168. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +0 -629
  169. package/tools/bmad-npx-wrapper.js +0 -39
  170. package/tools/builders/web-builder.js +0 -681
  171. package/tools/bump-all-versions.js +0 -106
  172. package/tools/bump-expansion-version.js +0 -83
  173. package/tools/cli.js +0 -154
  174. package/tools/flattener/aggregate.js +0 -76
  175. package/tools/flattener/binary.js +0 -53
  176. package/tools/flattener/discovery.js +0 -70
  177. package/tools/flattener/files.js +0 -35
  178. package/tools/flattener/ignoreRules.js +0 -176
  179. package/tools/flattener/main.js +0 -217
  180. package/tools/flattener/projectRoot.js +0 -45
  181. package/tools/flattener/prompts.js +0 -44
  182. package/tools/flattener/stats.js +0 -30
  183. package/tools/flattener/xml.js +0 -86
  184. package/tools/installer/README.md +0 -8
  185. package/tools/installer/package.json +0 -44
  186. package/tools/lib/dependency-resolver.js +0 -179
  187. package/tools/lib/yaml-utils.js +0 -29
  188. package/tools/md-assets/web-agent-startup-instructions.md +0 -39
  189. package/tools/semantic-release-sync-installer.js +0 -30
  190. package/tools/shared/bannerArt.js +0 -105
  191. package/tools/sync-installer-version.js +0 -34
  192. package/tools/update-expansion-version.js +0 -54
  193. package/tools/upgraders/v3-to-v4-upgrader.js +0 -763
  194. package/tools/version-bump.js +0 -79
  195. package/tools/yaml-format.js +0 -240
  196. /package/{tools/installer/bin → bin}/bmad.js +0 -0
  197. /package/{tools/installer/config → config}/ide-agent-config.yaml +0 -0
  198. /package/{tools/installer/config → config}/install.config.yaml +0 -0
  199. /package/{tools/installer/lib → lib}/config-loader.js +0 -0
  200. /package/{tools/installer/lib → lib}/file-manager.js +0 -0
  201. /package/{tools/installer/lib → lib}/ide-base-setup.js +0 -0
  202. /package/{tools/installer/lib → lib}/ide-setup.js +0 -0
  203. /package/{tools/installer/lib → lib}/installer.js +0 -0
  204. /package/{tools/installer/lib → lib}/memory-profiler.js +0 -0
  205. /package/{tools/installer/lib → lib}/module-manager.js +0 -0
  206. /package/{tools/installer/lib → lib}/resource-locator.js +0 -0
@@ -1,137 +0,0 @@
1
- template:
2
- id: story-template-v2
3
- name: Story Document
4
- version: 2.0
5
- output:
6
- format: markdown
7
- filename: docs/stories/{{epic_num}}.{{story_num}}.{{story_title_short}}.md
8
- title: "Story {{epic_num}}.{{story_num}}: {{story_title_short}}"
9
-
10
- workflow:
11
- mode: interactive
12
- elicitation: advanced-elicitation
13
-
14
- agent_config:
15
- editable_sections:
16
- - Status
17
- - Story
18
- - Acceptance Criteria
19
- - Tasks / Subtasks
20
- - Dev Notes
21
- - Testing
22
- - Change Log
23
-
24
- sections:
25
- - id: status
26
- title: Status
27
- type: choice
28
- choices: [Draft, Approved, InProgress, Review, Done]
29
- instruction: Select the current status of the story
30
- owner: scrum-master
31
- editors: [scrum-master, dev-agent]
32
-
33
- - id: story
34
- title: Story
35
- type: template-text
36
- template: |
37
- **As a** {{role}},
38
- **I want** {{action}},
39
- **so that** {{benefit}}
40
- instruction: Define the user story using the standard format with role, action, and benefit
41
- elicit: true
42
- owner: scrum-master
43
- editors: [scrum-master]
44
-
45
- - id: acceptance-criteria
46
- title: Acceptance Criteria
47
- type: numbered-list
48
- instruction: Copy the acceptance criteria numbered list from the epic file
49
- elicit: true
50
- owner: scrum-master
51
- editors: [scrum-master]
52
-
53
- - id: tasks-subtasks
54
- title: Tasks / Subtasks
55
- type: bullet-list
56
- instruction: |
57
- Break down the story into specific tasks and subtasks needed for implementation.
58
- Reference applicable acceptance criteria numbers where relevant.
59
- template: |
60
- - [ ] Task 1 (AC: # if applicable)
61
- - [ ] Subtask1.1...
62
- - [ ] Task 2 (AC: # if applicable)
63
- - [ ] Subtask 2.1...
64
- - [ ] Task 3 (AC: # if applicable)
65
- - [ ] Subtask 3.1...
66
- elicit: true
67
- owner: scrum-master
68
- editors: [scrum-master, dev-agent]
69
-
70
- - id: dev-notes
71
- title: Dev Notes
72
- instruction: |
73
- Populate relevant information, only what was pulled from actual artifacts from docs folder, relevant to this story:
74
- - Do not invent information
75
- - If known add Relevant Source Tree info that relates to this story
76
- - If there were important notes from previous story that are relevant to this one, include them here
77
- - Put enough information in this section so that the dev agent should NEVER need to read the architecture documents, these notes along with the tasks and subtasks must give the Dev Agent the complete context it needs to comprehend with the least amount of overhead the information to complete the story, meeting all AC and completing all tasks+subtasks
78
- elicit: true
79
- owner: scrum-master
80
- editors: [scrum-master]
81
- sections:
82
- - id: testing-standards
83
- title: Testing
84
- instruction: |
85
- List Relevant Testing Standards from Architecture the Developer needs to conform to:
86
- - Test file location
87
- - Test standards
88
- - Testing frameworks and patterns to use
89
- - Any specific testing requirements for this story
90
- elicit: true
91
- owner: scrum-master
92
- editors: [scrum-master]
93
-
94
- - id: change-log
95
- title: Change Log
96
- type: table
97
- columns: [Date, Version, Description, Author]
98
- instruction: Track changes made to this story document
99
- owner: scrum-master
100
- editors: [scrum-master, dev-agent, qa-agent]
101
-
102
- - id: dev-agent-record
103
- title: Dev Agent Record
104
- instruction: This section is populated by the development agent during implementation
105
- owner: dev-agent
106
- editors: [dev-agent]
107
- sections:
108
- - id: agent-model
109
- title: Agent Model Used
110
- template: "{{agent_model_name_version}}"
111
- instruction: Record the specific AI agent model and version used for development
112
- owner: dev-agent
113
- editors: [dev-agent]
114
-
115
- - id: debug-log-references
116
- title: Debug Log References
117
- instruction: Reference any debug logs or traces generated during development
118
- owner: dev-agent
119
- editors: [dev-agent]
120
-
121
- - id: completion-notes
122
- title: Completion Notes List
123
- instruction: Notes about the completion of tasks and any issues encountered
124
- owner: dev-agent
125
- editors: [dev-agent]
126
-
127
- - id: file-list
128
- title: File List
129
- instruction: List all files created, modified, or affected during story implementation
130
- owner: dev-agent
131
- editors: [dev-agent]
132
-
133
- - id: qa-results
134
- title: QA Results
135
- instruction: Results from QA Agent QA review of the completed story implementation
136
- owner: qa-agent
137
- editors: [qa-agent]
@@ -1,297 +0,0 @@
1
- workflow:
2
- id: brownfield-fullstack
3
- name: Brownfield Full-Stack Enhancement
4
- description: >-
5
- Agent workflow for enhancing existing full-stack applications with new features,
6
- modernization, or significant changes. Handles existing system analysis and safe integration.
7
- type: brownfield
8
- project_types:
9
- - feature-addition
10
- - refactoring
11
- - modernization
12
- - integration-enhancement
13
-
14
- sequence:
15
- - step: enhancement_classification
16
- agent: analyst
17
- action: classify enhancement scope
18
- notes: |
19
- Determine enhancement complexity to route to appropriate path:
20
- - Single story (< 4 hours) → Use brownfield-create-story task
21
- - Small feature (1-3 stories) → Use brownfield-create-epic task
22
- - Major enhancement (multiple epics) → Continue with full workflow
23
-
24
- Ask user: "Can you describe the enhancement scope? Is this a small fix, a feature addition, or a major enhancement requiring architectural changes?"
25
-
26
- - step: routing_decision
27
- condition: based_on_classification
28
- routes:
29
- single_story:
30
- agent: pm
31
- uses: brownfield-create-story
32
- notes: "Create single story for immediate implementation. Exit workflow after story creation."
33
- small_feature:
34
- agent: pm
35
- uses: brownfield-create-epic
36
- notes: "Create focused epic with 1-3 stories. Exit workflow after epic creation."
37
- major_enhancement:
38
- continue: to_next_step
39
- notes: "Continue with comprehensive planning workflow below."
40
-
41
- - step: documentation_check
42
- agent: analyst
43
- action: check existing documentation
44
- condition: major_enhancement_path
45
- notes: |
46
- Check if adequate project documentation exists:
47
- - Look for existing architecture docs, API specs, coding standards
48
- - Assess if documentation is current and comprehensive
49
- - If adequate: Skip document-project, proceed to PRD
50
- - If inadequate: Run document-project first
51
-
52
- - step: project_analysis
53
- agent: architect
54
- action: analyze existing project and use task document-project
55
- creates: brownfield-architecture.md (or multiple documents)
56
- condition: documentation_inadequate
57
- notes: "Run document-project to capture current system state, technical debt, and constraints. Pass findings to PRD creation."
58
-
59
- - agent: pm
60
- creates: prd.md
61
- uses: brownfield-prd-tmpl
62
- requires: existing_documentation_or_analysis
63
- notes: |
64
- Creates PRD for major enhancement. If document-project was run, reference its output to avoid re-analysis.
65
- If skipped, use existing project documentation.
66
- SAVE OUTPUT: Copy final prd.md to your project's docs/ folder.
67
-
68
- - step: architecture_decision
69
- agent: pm/architect
70
- action: determine if architecture document needed
71
- condition: after_prd_creation
72
- notes: |
73
- Review PRD to determine if architectural planning is needed:
74
- - New architectural patterns → Create architecture doc
75
- - New libraries/frameworks → Create architecture doc
76
- - Platform/infrastructure changes → Create architecture doc
77
- - Following existing patterns → Skip to story creation
78
-
79
- - agent: architect
80
- creates: architecture.md
81
- uses: brownfield-architecture-tmpl
82
- requires: prd.md
83
- condition: architecture_changes_needed
84
- notes: "Creates architecture ONLY for significant architectural changes. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
85
-
86
- - agent: po
87
- validates: all_artifacts
88
- uses: po-master-checklist
89
- notes: "Validates all documents for integration safety and completeness. May require updates to any document."
90
-
91
- - agent: various
92
- updates: any_flagged_documents
93
- condition: po_checklist_issues
94
- notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
95
-
96
- - agent: po
97
- action: shard_documents
98
- creates: sharded_docs
99
- requires: all_artifacts_in_project
100
- notes: |
101
- Shard documents for IDE development:
102
- - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
103
- - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
104
- - Creates docs/prd/ and docs/architecture/ folders with sharded content
105
-
106
- - agent: sm
107
- action: create_story
108
- creates: story.md
109
- requires: sharded_docs_or_brownfield_docs
110
- repeats: for_each_epic_or_enhancement
111
- notes: |
112
- Story creation cycle:
113
- - For sharded PRD: @sm → *create (uses create-next-story)
114
- - For brownfield docs: @sm → use create-brownfield-story task
115
- - Creates story from available documentation
116
- - Story starts in "Draft" status
117
- - May require additional context gathering for brownfield
118
-
119
- - agent: analyst/pm
120
- action: review_draft_story
121
- updates: story.md
122
- requires: story.md
123
- optional: true
124
- condition: user_wants_story_review
125
- notes: |
126
- OPTIONAL: Review and approve draft story
127
- - NOTE: story-review task coming soon
128
- - Review story completeness and alignment
129
- - Update story status: Draft → Approved
130
-
131
- - agent: dev
132
- action: implement_story
133
- creates: implementation_files
134
- requires: story.md
135
- notes: |
136
- Dev Agent (New Chat): @dev
137
- - Implements approved story
138
- - Updates File List with all changes
139
- - Marks story as "Review" when complete
140
-
141
- - agent: qa
142
- action: review_implementation
143
- updates: implementation_files
144
- requires: implementation_files
145
- optional: true
146
- notes: |
147
- OPTIONAL: QA Agent (New Chat): @qa → review-story
148
- - Senior dev review with refactoring ability
149
- - Fixes small issues directly
150
- - Leaves checklist for remaining items
151
- - Updates story status (Review → Done or stays Review)
152
-
153
- - agent: dev
154
- action: address_qa_feedback
155
- updates: implementation_files
156
- condition: qa_left_unchecked_items
157
- notes: |
158
- If QA left unchecked items:
159
- - Dev Agent (New Chat): Address remaining items
160
- - Return to QA for final approval
161
-
162
- - repeat_development_cycle:
163
- action: continue_for_all_stories
164
- notes: |
165
- Repeat story cycle (SM → Dev → QA) for all epic stories
166
- Continue until all stories in PRD are complete
167
-
168
- - agent: po
169
- action: epic_retrospective
170
- creates: epic-retrospective.md
171
- condition: epic_complete
172
- optional: true
173
- notes: |
174
- OPTIONAL: After epic completion
175
- - NOTE: epic-retrospective task coming soon
176
- - Validate epic was completed correctly
177
- - Document learnings and improvements
178
-
179
- - workflow_end:
180
- action: project_complete
181
- notes: |
182
- All stories implemented and reviewed!
183
- Project development phase complete.
184
-
185
- Reference: {root}/data/bmad-kb.md#IDE Development Workflow
186
-
187
- flow_diagram: |
188
- ```mermaid
189
- graph TD
190
- A[Start: Brownfield Enhancement] --> B[analyst: classify enhancement scope]
191
- B --> C{Enhancement Size?}
192
-
193
- C -->|Single Story| D[pm: brownfield-create-story]
194
- C -->|1-3 Stories| E[pm: brownfield-create-epic]
195
- C -->|Major Enhancement| F[analyst: check documentation]
196
-
197
- D --> END1[To Dev Implementation]
198
- E --> END2[To Story Creation]
199
-
200
- F --> G{Docs Adequate?}
201
- G -->|No| H[architect: document-project]
202
- G -->|Yes| I[pm: brownfield PRD]
203
- H --> I
204
-
205
- I --> J{Architecture Needed?}
206
- J -->|Yes| K[architect: architecture.md]
207
- J -->|No| L[po: validate artifacts]
208
- K --> L
209
-
210
- L --> M{PO finds issues?}
211
- M -->|Yes| N[Fix issues]
212
- M -->|No| O[po: shard documents]
213
- N --> L
214
-
215
- O --> P[sm: create story]
216
- P --> Q{Story Type?}
217
- Q -->|Sharded PRD| R[create-next-story]
218
- Q -->|Brownfield Docs| S[create-brownfield-story]
219
-
220
- R --> T{Review draft?}
221
- S --> T
222
- T -->|Yes| U[review & approve]
223
- T -->|No| V[dev: implement]
224
- U --> V
225
-
226
- V --> W{QA review?}
227
- W -->|Yes| X[qa: review]
228
- W -->|No| Y{More stories?}
229
- X --> Z{Issues?}
230
- Z -->|Yes| AA[dev: fix]
231
- Z -->|No| Y
232
- AA --> X
233
- Y -->|Yes| P
234
- Y -->|No| AB{Retrospective?}
235
- AB -->|Yes| AC[po: retrospective]
236
- AB -->|No| AD[Complete]
237
- AC --> AD
238
-
239
- style AD fill:#90EE90
240
- style END1 fill:#90EE90
241
- style END2 fill:#90EE90
242
- style D fill:#87CEEB
243
- style E fill:#87CEEB
244
- style I fill:#FFE4B5
245
- style K fill:#FFE4B5
246
- style O fill:#ADD8E6
247
- style P fill:#ADD8E6
248
- style V fill:#ADD8E6
249
- style U fill:#F0E68C
250
- style X fill:#F0E68C
251
- style AC fill:#F0E68C
252
- ```
253
-
254
- decision_guidance:
255
- when_to_use:
256
- - Enhancement requires coordinated stories
257
- - Architectural changes are needed
258
- - Significant integration work required
259
- - Risk assessment and mitigation planning necessary
260
- - Multiple team members will work on related changes
261
-
262
- handoff_prompts:
263
- classification_complete: |
264
- Enhancement classified as: {{enhancement_type}}
265
- {{if single_story}}: Proceeding with brownfield-create-story task for immediate implementation.
266
- {{if small_feature}}: Creating focused epic with brownfield-create-epic task.
267
- {{if major_enhancement}}: Continuing with comprehensive planning workflow.
268
-
269
- documentation_assessment: |
270
- Documentation assessment complete:
271
- {{if adequate}}: Existing documentation is sufficient. Proceeding directly to PRD creation.
272
- {{if inadequate}}: Running document-project to capture current system state before PRD.
273
-
274
- document_project_to_pm: |
275
- Project analysis complete. Key findings documented in:
276
- - {{document_list}}
277
- Use these findings to inform PRD creation and avoid re-analyzing the same aspects.
278
-
279
- pm_to_architect_decision: |
280
- PRD complete and saved as docs/prd.md.
281
- Architectural changes identified: {{yes/no}}
282
- {{if yes}}: Proceeding to create architecture document for: {{specific_changes}}
283
- {{if no}}: No architectural changes needed. Proceeding to validation.
284
-
285
- architect_to_po: "Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for integration safety."
286
-
287
- po_to_sm: |
288
- All artifacts validated.
289
- Documentation type available: {{sharded_prd / brownfield_docs}}
290
- {{if sharded}}: Use standard create-next-story task.
291
- {{if brownfield}}: Use create-brownfield-story task to handle varied documentation formats.
292
-
293
- sm_story_creation: |
294
- Creating story from {{documentation_type}}.
295
- {{if missing_context}}: May need to gather additional context from user during story creation.
296
-
297
- complete: "All planning artifacts validated and development can begin. Stories will be created based on available documentation format."
@@ -1,187 +0,0 @@
1
- workflow:
2
- id: brownfield-service
3
- name: Brownfield Service/API Enhancement
4
- description: >-
5
- Agent workflow for enhancing existing backend services and APIs with new features,
6
- modernization, or performance improvements. Handles existing system analysis and safe integration.
7
- type: brownfield
8
- project_types:
9
- - service-modernization
10
- - api-enhancement
11
- - microservice-extraction
12
- - performance-optimization
13
- - integration-enhancement
14
-
15
- sequence:
16
- - step: service_analysis
17
- agent: architect
18
- action: analyze existing project and use task document-project
19
- creates: multiple documents per the document-project template
20
- notes: "Review existing service documentation, codebase, performance metrics, and identify integration dependencies."
21
-
22
- - agent: pm
23
- creates: prd.md
24
- uses: brownfield-prd-tmpl
25
- requires: existing_service_analysis
26
- notes: "Creates comprehensive PRD focused on service enhancement with existing system analysis. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
27
-
28
- - agent: architect
29
- creates: architecture.md
30
- uses: brownfield-architecture-tmpl
31
- requires: prd.md
32
- notes: "Creates architecture with service integration strategy and API evolution planning. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
33
-
34
- - agent: po
35
- validates: all_artifacts
36
- uses: po-master-checklist
37
- notes: "Validates all documents for service integration safety and API compatibility. May require updates to any document."
38
-
39
- - agent: various
40
- updates: any_flagged_documents
41
- condition: po_checklist_issues
42
- notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
43
-
44
- - agent: po
45
- action: shard_documents
46
- creates: sharded_docs
47
- requires: all_artifacts_in_project
48
- notes: |
49
- Shard documents for IDE development:
50
- - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
51
- - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
52
- - Creates docs/prd/ and docs/architecture/ folders with sharded content
53
-
54
- - agent: sm
55
- action: create_story
56
- creates: story.md
57
- requires: sharded_docs
58
- repeats: for_each_epic
59
- notes: |
60
- Story creation cycle:
61
- - SM Agent (New Chat): @sm → *create
62
- - Creates next story from sharded docs
63
- - Story starts in "Draft" status
64
-
65
- - agent: analyst/pm
66
- action: review_draft_story
67
- updates: story.md
68
- requires: story.md
69
- optional: true
70
- condition: user_wants_story_review
71
- notes: |
72
- OPTIONAL: Review and approve draft story
73
- - NOTE: story-review task coming soon
74
- - Review story completeness and alignment
75
- - Update story status: Draft → Approved
76
-
77
- - agent: dev
78
- action: implement_story
79
- creates: implementation_files
80
- requires: story.md
81
- notes: |
82
- Dev Agent (New Chat): @dev
83
- - Implements approved story
84
- - Updates File List with all changes
85
- - Marks story as "Review" when complete
86
-
87
- - agent: qa
88
- action: review_implementation
89
- updates: implementation_files
90
- requires: implementation_files
91
- optional: true
92
- notes: |
93
- OPTIONAL: QA Agent (New Chat): @qa → review-story
94
- - Senior dev review with refactoring ability
95
- - Fixes small issues directly
96
- - Leaves checklist for remaining items
97
- - Updates story status (Review → Done or stays Review)
98
-
99
- - agent: dev
100
- action: address_qa_feedback
101
- updates: implementation_files
102
- condition: qa_left_unchecked_items
103
- notes: |
104
- If QA left unchecked items:
105
- - Dev Agent (New Chat): Address remaining items
106
- - Return to QA for final approval
107
-
108
- - repeat_development_cycle:
109
- action: continue_for_all_stories
110
- notes: |
111
- Repeat story cycle (SM → Dev → QA) for all epic stories
112
- Continue until all stories in PRD are complete
113
-
114
- - agent: po
115
- action: epic_retrospective
116
- creates: epic-retrospective.md
117
- condition: epic_complete
118
- optional: true
119
- notes: |
120
- OPTIONAL: After epic completion
121
- - NOTE: epic-retrospective task coming soon
122
- - Validate epic was completed correctly
123
- - Document learnings and improvements
124
-
125
- - workflow_end:
126
- action: project_complete
127
- notes: |
128
- All stories implemented and reviewed!
129
- Project development phase complete.
130
-
131
- Reference: {root}/data/bmad-kb.md#IDE Development Workflow
132
-
133
- flow_diagram: |
134
- ```mermaid
135
- graph TD
136
- A[Start: Service Enhancement] --> B[analyst: analyze existing service]
137
- B --> C[pm: prd.md]
138
- C --> D[architect: architecture.md]
139
- D --> E[po: validate with po-master-checklist]
140
- E --> F{PO finds issues?}
141
- F -->|Yes| G[Return to relevant agent for fixes]
142
- F -->|No| H[po: shard documents]
143
- G --> E
144
-
145
- H --> I[sm: create story]
146
- I --> J{Review draft story?}
147
- J -->|Yes| K[analyst/pm: review & approve story]
148
- J -->|No| L[dev: implement story]
149
- K --> L
150
- L --> M{QA review?}
151
- M -->|Yes| N[qa: review implementation]
152
- M -->|No| O{More stories?}
153
- N --> P{QA found issues?}
154
- P -->|Yes| Q[dev: address QA feedback]
155
- P -->|No| O
156
- Q --> N
157
- O -->|Yes| I
158
- O -->|No| R{Epic retrospective?}
159
- R -->|Yes| S[po: epic retrospective]
160
- R -->|No| T[Project Complete]
161
- S --> T
162
-
163
- style T fill:#90EE90
164
- style H fill:#ADD8E6
165
- style I fill:#ADD8E6
166
- style L fill:#ADD8E6
167
- style C fill:#FFE4B5
168
- style D fill:#FFE4B5
169
- style K fill:#F0E68C
170
- style N fill:#F0E68C
171
- style S fill:#F0E68C
172
- ```
173
-
174
- decision_guidance:
175
- when_to_use:
176
- - Service enhancement requires coordinated stories
177
- - API versioning or breaking changes needed
178
- - Database schema changes required
179
- - Performance or scalability improvements needed
180
- - Multiple integration points affected
181
-
182
- handoff_prompts:
183
- analyst_to_pm: "Service analysis complete. Create comprehensive PRD with service integration strategy."
184
- pm_to_architect: "PRD ready. Save it as docs/prd.md, then create the service architecture."
185
- architect_to_po: "Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for service integration safety."
186
- po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
187
- complete: "All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."