bmad-method 4.27.6 → 5.0.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 (274) hide show
  1. package/.bmad-core/agent-teams/team-all.yml +16 -0
  2. package/.bmad-core/agent-teams/team-fullstack.yml +26 -0
  3. package/.bmad-core/agent-teams/team-no-ui.yml +15 -0
  4. package/{bmad-core → .bmad-core}/agents/analyst.md +23 -29
  5. package/.bmad-core/agents/architect.md +66 -0
  6. package/.bmad-core/agents/bmad-master.md +104 -0
  7. package/.bmad-core/agents/bmad-orchestrator.md +81 -0
  8. package/.bmad-core/agents/dev.md +70 -0
  9. package/{bmad-core → .bmad-core}/agents/pm.md +24 -24
  10. package/{bmad-core → .bmad-core}/agents/po.md +24 -27
  11. package/.bmad-core/agents/qa.md +52 -0
  12. package/.bmad-core/agents/sm.md +55 -0
  13. package/.bmad-core/agents/ux-expert.md +66 -0
  14. package/{bmad-core → .bmad-core}/checklists/change-checklist.md +2 -2
  15. package/{bmad-core → .bmad-core}/checklists/story-draft-checklist.md +1 -1
  16. package/.bmad-core/data/bmad-kb.md +47 -0
  17. package/.bmad-core/schemas/agent-team-schema.yml +153 -0
  18. package/.bmad-core/tasks/advanced-elicitation.md +92 -0
  19. package/.bmad-core/tasks/brainstorming-techniques.md +238 -0
  20. package/.bmad-core/tasks/core-dump.md +74 -0
  21. package/{expansion-packs/bmad-creator-tools → .bmad-core}/tasks/create-agent.md +11 -9
  22. package/.bmad-core/tasks/create-doc.md +74 -0
  23. package/.bmad-core/tasks/create-expansion-pack.md +425 -0
  24. package/.bmad-core/tasks/create-next-story.md +206 -0
  25. package/.bmad-core/tasks/create-team.md +229 -0
  26. package/{bmad-core → .bmad-core}/tasks/doc-migration-task.md +9 -9
  27. package/{common → .bmad-core}/tasks/execute-checklist.md +6 -2
  28. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +58 -0
  29. package/{bmad-core → .bmad-core}/tasks/index-docs.md +7 -3
  30. package/{bmad-core → .bmad-core}/tasks/shard-doc.md +7 -25
  31. package/.bmad-core/templates/agent-tmpl.md +58 -0
  32. package/.bmad-core/templates/architecture-tmpl.md +771 -0
  33. package/.bmad-core/templates/brownfield-architecture-tmpl.md +542 -0
  34. package/.bmad-core/templates/brownfield-prd-tmpl.md +240 -0
  35. package/.bmad-core/templates/competitor-analysis-tmpl.md +289 -0
  36. package/.bmad-core/templates/expansion-pack-plan-tmpl.md +91 -0
  37. package/.bmad-core/templates/front-end-architecture-tmpl.md +173 -0
  38. package/.bmad-core/templates/front-end-spec-tmpl.md +411 -0
  39. package/.bmad-core/templates/fullstack-architecture-tmpl.md +1016 -0
  40. package/.bmad-core/templates/market-research-tmpl.md +261 -0
  41. package/.bmad-core/templates/prd-tmpl.md +200 -0
  42. package/.bmad-core/templates/project-brief-tmpl.md +228 -0
  43. package/.bmad-core/templates/simple-project-prd-tmpl.md +461 -0
  44. package/.bmad-core/templates/story-tmpl.md +61 -0
  45. package/.bmad-core/templates/web-agent-startup-instructions-template.md +39 -0
  46. package/.bmad-core/utils/agent-switcher.ide.md +112 -0
  47. package/.bmad-core/utils/template-format.md +26 -0
  48. package/.bmad-core/utils/workflow-management.md +224 -0
  49. package/.bmad-core/web-bundles/agents/analyst.txt +1684 -0
  50. package/.bmad-core/web-bundles/agents/architect.txt +3584 -0
  51. package/.bmad-core/web-bundles/agents/bmad-master.txt +9491 -0
  52. package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +1466 -0
  53. package/{dist → .bmad-core/web-bundles}/agents/dev.txt +71 -179
  54. package/{dist → .bmad-core/web-bundles}/agents/pm.txt +1058 -624
  55. package/{dist → .bmad-core/web-bundles}/agents/po.txt +138 -337
  56. package/.bmad-core/web-bundles/agents/qa.txt +129 -0
  57. package/.bmad-core/web-bundles/agents/sm.txt +658 -0
  58. package/.bmad-core/web-bundles/agents/ux-expert.txt +1099 -0
  59. package/.bmad-core/web-bundles/teams/team-all.txt +10757 -0
  60. package/.bmad-core/web-bundles/teams/team-fullstack.txt +10109 -0
  61. package/.bmad-core/web-bundles/teams/team-no-ui.txt +8950 -0
  62. package/.bmad-core/workflows/brownfield-fullstack.yml +116 -0
  63. package/.bmad-core/workflows/brownfield-service.yml +117 -0
  64. package/.bmad-core/workflows/brownfield-ui.yml +127 -0
  65. package/.bmad-core/workflows/greenfield-fullstack.yml +177 -0
  66. package/.bmad-core/workflows/greenfield-service.yml +143 -0
  67. package/.bmad-core/workflows/greenfield-ui.yml +172 -0
  68. package/.claude/commands/analyst.md +63 -0
  69. package/.claude/commands/architect.md +70 -0
  70. package/.claude/commands/bmad-master.md +108 -0
  71. package/.claude/commands/bmad-orchestrator.md +85 -0
  72. package/.claude/commands/dev.md +74 -0
  73. package/.claude/commands/pm.md +63 -0
  74. package/.claude/commands/po.md +64 -0
  75. package/.claude/commands/qa.md +56 -0
  76. package/.claude/commands/sm.md +59 -0
  77. package/.claude/commands/ux-expert.md +70 -0
  78. package/.cursor/rules/analyst.mdc +77 -0
  79. package/.cursor/rules/architect.mdc +84 -0
  80. package/.cursor/rules/bmad-master.mdc +122 -0
  81. package/.cursor/rules/bmad-orchestrator.mdc +99 -0
  82. package/.cursor/rules/dev.mdc +88 -0
  83. package/.cursor/rules/pm.mdc +77 -0
  84. package/.cursor/rules/po.mdc +78 -0
  85. package/.cursor/rules/qa.mdc +70 -0
  86. package/.cursor/rules/sm.mdc +73 -0
  87. package/.cursor/rules/ux-expert.mdc +84 -0
  88. package/.roo/.roomodes +95 -0
  89. package/.roo/README.md +38 -0
  90. package/.vscode/extensions.json +6 -0
  91. package/.vscode/settings.json +75 -49
  92. package/.windsurf/rules/analyst.md +71 -0
  93. package/.windsurf/rules/architect.md +78 -0
  94. package/.windsurf/rules/bmad-master.md +116 -0
  95. package/.windsurf/rules/bmad-orchestrator.md +93 -0
  96. package/.windsurf/rules/dev.md +82 -0
  97. package/.windsurf/rules/pm.md +71 -0
  98. package/.windsurf/rules/po.md +72 -0
  99. package/.windsurf/rules/qa.md +64 -0
  100. package/.windsurf/rules/sm.md +67 -0
  101. package/.windsurf/rules/ux-expert.md +78 -0
  102. package/CHANGELOG.md +16 -459
  103. package/CONTRIBUTING.md +5 -168
  104. package/LICENSE +1 -1
  105. package/README.md +230 -77
  106. package/docs/bmad-workflow-guide.md +15 -19
  107. package/docs/claude-code-guide.md +119 -0
  108. package/docs/cursor-guide.md +127 -0
  109. package/docs/roo-code-guide.md +140 -0
  110. package/docs/sample-output/simple-fullstack-greenfield/prd.md +42 -0
  111. package/docs/versioning-and-releases.md +16 -8
  112. package/docs/versions.md +5 -4
  113. package/docs/windsurf-guide.md +127 -0
  114. package/expansion-packs/README.md +112 -2
  115. package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/README.md +9 -9
  116. package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/agents/infra-devops-platform.md +15 -14
  117. package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/checklists/infrastructure-checklist.md +1 -1
  118. package/expansion-packs/infrastructure-devops/manifest.yml +38 -0
  119. package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/tasks/review-infrastructure.md +4 -4
  120. package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/tasks/validate-infrastructure.md +4 -4
  121. package/expansion-packs/infrastructure-devops/templates/infrastructure-architecture-tmpl.md +415 -0
  122. package/expansion-packs/infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
  123. package/package.json +11 -19
  124. package/tools/bmad-npx-wrapper.js +1 -1
  125. package/tools/builders/web-builder.js +28 -563
  126. package/tools/cli.js +22 -55
  127. package/tools/installer/README.md +53 -3
  128. package/tools/installer/bin/bmad.js +56 -294
  129. package/tools/installer/config/install.config.yml +139 -0
  130. package/tools/installer/lib/config-loader.js +34 -198
  131. package/tools/installer/lib/file-manager.js +7 -200
  132. package/tools/installer/lib/ide-setup.js +189 -545
  133. package/tools/installer/lib/installer.js +61 -1171
  134. package/tools/installer/package-lock.json +3 -3
  135. package/tools/installer/package.json +4 -4
  136. package/tools/installer/templates/claude-commands.md +7 -0
  137. package/tools/installer/templates/cursor-rules.md +22 -0
  138. package/tools/installer/templates/windsurf-rules.md +22 -0
  139. package/tools/lib/dependency-resolver.js +22 -22
  140. package/tools/upgraders/v3-to-v4-upgrader.js +43 -35
  141. package/tools/version-bump.js +1 -1
  142. package/tools/yaml-format.js +2 -2
  143. package/.github/FUNDING.yaml +0 -15
  144. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
  145. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -22
  146. package/.prettierignore +0 -21
  147. package/.prettierrc +0 -23
  148. package/bmad-core/agent-teams/team-all.yaml +0 -14
  149. package/bmad-core/agent-teams/team-fullstack.yaml +0 -18
  150. package/bmad-core/agent-teams/team-ide-minimal.yaml +0 -10
  151. package/bmad-core/agent-teams/team-no-ui.yaml +0 -13
  152. package/bmad-core/agents/architect.md +0 -62
  153. package/bmad-core/agents/bmad-master.md +0 -88
  154. package/bmad-core/agents/bmad-orchestrator.md +0 -135
  155. package/bmad-core/agents/dev.md +0 -56
  156. package/bmad-core/agents/qa.md +0 -54
  157. package/bmad-core/agents/sm.md +0 -45
  158. package/bmad-core/agents/ux-expert.md +0 -53
  159. package/bmad-core/core-config.yaml +0 -25
  160. package/bmad-core/data/bmad-kb.md +0 -803
  161. package/bmad-core/data/brainstorming-techniques.md +0 -36
  162. package/bmad-core/data/elicitation-methods.md +0 -134
  163. package/bmad-core/tasks/advanced-elicitation.md +0 -117
  164. package/bmad-core/tasks/create-brownfield-story.md +0 -355
  165. package/bmad-core/tasks/create-next-story.md +0 -113
  166. package/bmad-core/tasks/create-workflow-plan.md +0 -289
  167. package/bmad-core/tasks/document-project.md +0 -317
  168. package/bmad-core/tasks/facilitate-brainstorming-session.md +0 -136
  169. package/bmad-core/tasks/generate-ai-frontend-prompt.md +0 -51
  170. package/bmad-core/tasks/kb-mode-interaction.md +0 -70
  171. package/bmad-core/tasks/review-story.md +0 -145
  172. package/bmad-core/tasks/update-workflow-plan.md +0 -248
  173. package/bmad-core/tasks/validate-next-story.md +0 -134
  174. package/bmad-core/templates/architecture-tmpl.yaml +0 -650
  175. package/bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
  176. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -476
  177. package/bmad-core/templates/brownfield-prd-tmpl.yaml +0 -280
  178. package/bmad-core/templates/competitor-analysis-tmpl.yaml +0 -293
  179. package/bmad-core/templates/front-end-architecture-tmpl.yaml +0 -206
  180. package/bmad-core/templates/front-end-spec-tmpl.yaml +0 -349
  181. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -805
  182. package/bmad-core/templates/market-research-tmpl.yaml +0 -252
  183. package/bmad-core/templates/prd-tmpl.yaml +0 -202
  184. package/bmad-core/templates/project-brief-tmpl.yaml +0 -221
  185. package/bmad-core/templates/story-tmpl.yaml +0 -137
  186. package/bmad-core/workflows/brownfield-fullstack.yaml +0 -297
  187. package/bmad-core/workflows/brownfield-service.yaml +0 -187
  188. package/bmad-core/workflows/brownfield-ui.yaml +0 -197
  189. package/bmad-core/workflows/greenfield-fullstack.yaml +0 -240
  190. package/bmad-core/workflows/greenfield-service.yaml +0 -206
  191. package/bmad-core/workflows/greenfield-ui.yaml +0 -235
  192. package/common/tasks/create-doc.md +0 -79
  193. package/common/utils/bmad-doc-template.md +0 -325
  194. package/common/utils/workflow-management.md +0 -69
  195. package/dist/agents/analyst.txt +0 -2849
  196. package/dist/agents/architect.txt +0 -3505
  197. package/dist/agents/bmad-master.txt +0 -9271
  198. package/dist/agents/bmad-orchestrator.txt +0 -2006
  199. package/dist/agents/qa.txt +0 -388
  200. package/dist/agents/sm.txt +0 -672
  201. package/dist/agents/ux-expert.txt +0 -987
  202. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +0 -2401
  203. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +0 -1635
  204. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +0 -825
  205. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +0 -11504
  206. package/dist/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.txt +0 -2023
  207. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +0 -2052
  208. package/dist/teams/team-all.txt +0 -11572
  209. package/dist/teams/team-fullstack.txt +0 -10903
  210. package/dist/teams/team-ide-minimal.txt +0 -4346
  211. package/dist/teams/team-no-ui.txt +0 -9458
  212. package/docs/GUIDING-PRINCIPLES.md +0 -91
  213. package/docs/agentic-tools/claude-code-guide.md +0 -19
  214. package/docs/agentic-tools/cline-guide.md +0 -16
  215. package/docs/agentic-tools/cursor-guide.md +0 -14
  216. package/docs/agentic-tools/gemini-cli-guide.md +0 -32
  217. package/docs/agentic-tools/github-copilot-guide.md +0 -42
  218. package/docs/agentic-tools/roo-code-guide.md +0 -15
  219. package/docs/agentic-tools/trae-guide.md +0 -14
  220. package/docs/agentic-tools/windsurf-guide.md +0 -14
  221. package/docs/core-architecture.md +0 -219
  222. package/docs/expansion-packs.md +0 -280
  223. package/docs/how-to-contribute-with-pull-requests.md +0 -158
  224. package/docs/template-markup-references.md +0 -86
  225. package/docs/user-guide.md +0 -1142
  226. package/docs/working-in-the-brownfield.md +0 -361
  227. package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +0 -13
  228. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +0 -59
  229. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +0 -67
  230. package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +0 -52
  231. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +0 -201
  232. package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +0 -160
  233. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +0 -7
  234. package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -254
  235. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +0 -651
  236. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -111
  237. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +0 -216
  238. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -308
  239. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +0 -613
  240. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +0 -356
  241. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +0 -343
  242. package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +0 -253
  243. package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +0 -484
  244. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +0 -183
  245. package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +0 -175
  246. package/expansion-packs/bmad-creator-tools/README.md +0 -8
  247. package/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.md +0 -54
  248. package/expansion-packs/bmad-creator-tools/config.yaml +0 -5
  249. package/expansion-packs/bmad-creator-tools/tasks/generate-expansion-pack.md +0 -1020
  250. package/expansion-packs/bmad-creator-tools/templates/agent-teams-tmpl.yaml +0 -178
  251. package/expansion-packs/bmad-creator-tools/templates/agent-tmpl.yaml +0 -154
  252. package/expansion-packs/bmad-creator-tools/templates/expansion-pack-plan-tmpl.yaml +0 -120
  253. package/expansion-packs/bmad-infrastructure-devops/config.yaml +0 -8
  254. package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +0 -308
  255. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +0 -424
  256. package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +0 -629
  257. package/tools/bump-all-versions.js +0 -107
  258. package/tools/bump-core-version.js +0 -57
  259. package/tools/bump-expansion-version.js +0 -78
  260. package/tools/installer/config/ide-agent-config.yaml +0 -58
  261. package/tools/installer/config/install.config.yaml +0 -91
  262. package/tools/lib/yaml-utils.js +0 -29
  263. package/tools/md-assets/web-agent-startup-instructions.md +0 -39
  264. package/tools/update-expansion-version.js +0 -54
  265. /package/{bmad-core → .bmad-core}/checklists/architect-checklist.md +0 -0
  266. /package/{bmad-core → .bmad-core}/checklists/pm-checklist.md +0 -0
  267. /package/{bmad-core → .bmad-core}/checklists/po-master-checklist.md +0 -0
  268. /package/{bmad-core → .bmad-core}/checklists/story-dod-checklist.md +0 -0
  269. /package/{bmad-core → .bmad-core}/data/technical-preferences.md +0 -0
  270. /package/{bmad-core → .bmad-core}/tasks/brownfield-create-epic.md +0 -0
  271. /package/{bmad-core → .bmad-core}/tasks/brownfield-create-story.md +0 -0
  272. /package/{bmad-core → .bmad-core}/tasks/correct-course.md +0 -0
  273. /package/{bmad-core → .bmad-core}/tasks/create-deep-research-prompt.md +0 -0
  274. /package/.github/workflows/{release.yaml → release.yml} +0 -0
@@ -0,0 +1,116 @@
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
+ # For Complex Enhancements (Multiple Stories, Architectural Changes)
15
+ complex_enhancement_sequence:
16
+ - step: scope_assessment
17
+ agent: any
18
+ action: assess complexity
19
+ notes: "First, assess if this is a simple change (use simple_enhancement_sequence) or complex enhancement requiring full planning."
20
+
21
+ - step: project_analysis
22
+ agent: analyst
23
+ action: analyze existing project
24
+ notes: "Review existing documentation, codebase structure, and identify integration points. Document current system understanding before proceeding."
25
+
26
+ - agent: pm
27
+ creates: brownfield-prd.md
28
+ uses: brownfield-prd-tmpl
29
+ requires: existing_project_analysis
30
+ notes: "Creates comprehensive brownfield PRD with existing system analysis and enhancement planning. SAVE OUTPUT: Copy final brownfield-prd.md to your project's docs/ folder."
31
+
32
+ - agent: architect
33
+ creates: brownfield-architecture.md
34
+ uses: brownfield-architecture-tmpl
35
+ requires: brownfield-prd.md
36
+ notes: "Creates brownfield architecture with integration strategy and existing system constraints. SAVE OUTPUT: Copy final brownfield-architecture.md to your project's docs/ folder."
37
+
38
+ - agent: po
39
+ validates: all_artifacts
40
+ uses: po-master-checklist
41
+ notes: "Validates all brownfield documents for integration safety and completeness. May require updates to any document."
42
+
43
+ - agent: various
44
+ updates: any_flagged_documents
45
+ condition: po_checklist_issues
46
+ notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
47
+
48
+ - workflow_end:
49
+ action: move_to_ide
50
+ notes: "All planning artifacts complete. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
51
+
52
+ # For Simple Enhancements (1-3 Stories, Following Existing Patterns)
53
+ simple_enhancement_sequence:
54
+ - step: enhancement_type
55
+ action: choose approach
56
+ notes: "Choose between creating single story (very small change) or epic (1-3 related stories)."
57
+
58
+ - agent: pm|po|sm
59
+ creates: brownfield_epic OR brownfield_story
60
+ uses: brownfield-create-epic OR brownfield-create-story
61
+ notes: "Create focused enhancement with existing system integration. Choose agent based on team preference and context."
62
+
63
+ - workflow_end:
64
+ action: move_to_ide
65
+ notes: "Enhancement defined. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
66
+
67
+ flow_diagram: |
68
+ ```mermaid
69
+ graph TD
70
+ A[Start: Brownfield Enhancement] --> B{Enhancement Complexity?}
71
+ B -->|Complex/Significant| C[analyst: analyze existing project]
72
+ B -->|Simple| D{1 Story or 2-3 Stories?}
73
+
74
+ C --> E[pm: brownfield-prd.md]
75
+ E --> F[architect: brownfield-architecture.md]
76
+ F --> G[po: validate with po-master-checklist]
77
+ G --> H{PO finds issues?}
78
+ H -->|Yes| I[Return to relevant agent for fixes]
79
+ H -->|No| J[Move to IDE Environment]
80
+ I --> G
81
+
82
+ D -->|1 Story| K[pm/po/sm: brownfield-create-story]
83
+ D -->|2-3 Stories| L[pm/po/sm: brownfield-create-epic]
84
+ K --> M[Move to IDE Environment]
85
+ L --> M
86
+
87
+ style J fill:#90EE90
88
+ style M fill:#90EE90
89
+ style E fill:#FFE4B5
90
+ style F fill:#FFE4B5
91
+ style K fill:#FFB6C1
92
+ style L fill:#FFB6C1
93
+ ```
94
+
95
+ decision_guidance:
96
+ use_complex_sequence_when:
97
+ - Enhancement requires multiple coordinated stories (4+)
98
+ - Architectural changes are needed
99
+ - Significant integration work required
100
+ - Risk assessment and mitigation planning necessary
101
+ - Multiple team members will work on related changes
102
+
103
+ use_simple_sequence_when:
104
+ - Enhancement can be completed in 1-3 stories
105
+ - Follows existing project patterns
106
+ - Integration complexity is minimal
107
+ - Risk to existing system is low
108
+ - Change is isolated with clear boundaries
109
+
110
+ handoff_prompts:
111
+ analyst_to_pm: "Existing project analysis complete. Create comprehensive brownfield PRD with integration strategy."
112
+ pm_to_architect: "Brownfield PRD ready. Save it as docs/brownfield-prd.md, then create the integration architecture."
113
+ architect_to_po: "Architecture complete. Save it as docs/brownfield-architecture.md. Please validate all artifacts for integration safety."
114
+ po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
115
+ simple_to_ide: "Enhancement defined with existing system integration. Move to IDE environment to begin development."
116
+ complex_complete: "All brownfield planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."
@@ -0,0 +1,117 @@
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
+ # For Complex Service Enhancements (Multiple Stories, Architectural Changes)
16
+ complex_enhancement_sequence:
17
+ - step: scope_assessment
18
+ agent: any
19
+ action: assess complexity
20
+ notes: "First, assess if this is a simple service change (use simple_enhancement_sequence) or complex enhancement requiring full planning."
21
+
22
+ - step: service_analysis
23
+ agent: analyst
24
+ action: analyze existing service
25
+ notes: "Review existing service documentation, codebase, performance metrics, and identify integration dependencies."
26
+
27
+ - agent: pm
28
+ creates: brownfield-prd.md
29
+ uses: brownfield-prd-tmpl
30
+ requires: existing_service_analysis
31
+ notes: "Creates comprehensive brownfield PRD focused on service enhancement with existing system analysis. SAVE OUTPUT: Copy final brownfield-prd.md to your project's docs/ folder."
32
+
33
+ - agent: architect
34
+ creates: brownfield-architecture.md
35
+ uses: brownfield-architecture-tmpl
36
+ requires: brownfield-prd.md
37
+ notes: "Creates brownfield architecture with service integration strategy and API evolution planning. SAVE OUTPUT: Copy final brownfield-architecture.md to your project's docs/ folder."
38
+
39
+ - agent: po
40
+ validates: all_artifacts
41
+ uses: po-master-checklist
42
+ notes: "Validates all brownfield documents for service integration safety and API compatibility. May require updates to any document."
43
+
44
+ - agent: various
45
+ updates: any_flagged_documents
46
+ condition: po_checklist_issues
47
+ notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
48
+
49
+ - workflow_end:
50
+ action: move_to_ide
51
+ notes: "All planning artifacts complete. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
52
+
53
+ # For Simple Service Enhancements (1-3 Stories, Following Existing Patterns)
54
+ simple_enhancement_sequence:
55
+ - step: enhancement_type
56
+ action: choose approach
57
+ notes: "Choose between creating single story (simple API endpoint) or epic (1-3 related service changes)."
58
+
59
+ - agent: pm|po|sm
60
+ creates: brownfield_epic OR brownfield_story
61
+ uses: brownfield-create-epic OR brownfield-create-story
62
+ notes: "Create focused service enhancement with existing API integration. Choose agent based on team preference and context."
63
+
64
+ - workflow_end:
65
+ action: move_to_ide
66
+ notes: "Service enhancement defined. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
67
+
68
+ flow_diagram: |
69
+ ```mermaid
70
+ graph TD
71
+ A[Start: Service Enhancement] --> B{Enhancement Complexity?}
72
+ B -->|Complex/Significant| C[analyst: analyze existing service]
73
+ B -->|Simple| D{1 Story or 2-3 Stories?}
74
+
75
+ C --> E[pm: brownfield-prd.md]
76
+ E --> F[architect: brownfield-architecture.md]
77
+ F --> G[po: validate with po-master-checklist]
78
+ G --> H{PO finds issues?}
79
+ H -->|Yes| I[Return to relevant agent for fixes]
80
+ H -->|No| J[Move to IDE Environment]
81
+ I --> G
82
+
83
+ D -->|1 Story| K[pm/po/sm: brownfield-create-story]
84
+ D -->|2-3 Stories| L[pm/po/sm: brownfield-create-epic]
85
+ K --> M[Move to IDE Environment]
86
+ L --> M
87
+
88
+ style J fill:#90EE90
89
+ style M fill:#90EE90
90
+ style E fill:#FFE4B5
91
+ style F fill:#FFE4B5
92
+ style K fill:#FFB6C1
93
+ style L fill:#FFB6C1
94
+ ```
95
+
96
+ decision_guidance:
97
+ use_complex_sequence_when:
98
+ - Service enhancement requires multiple coordinated stories (4+)
99
+ - API versioning or breaking changes needed
100
+ - Database schema changes required
101
+ - Performance or scalability improvements needed
102
+ - Multiple integration points affected
103
+
104
+ use_simple_sequence_when:
105
+ - Adding simple endpoints or modifying existing ones
106
+ - Enhancement follows existing service patterns
107
+ - API compatibility maintained
108
+ - Risk to existing service is low
109
+ - Change is isolated with clear boundaries
110
+
111
+ handoff_prompts:
112
+ analyst_to_pm: "Service analysis complete. Create comprehensive brownfield PRD with service integration strategy."
113
+ pm_to_architect: "Brownfield PRD ready. Save it as docs/brownfield-prd.md, then create the service architecture."
114
+ architect_to_po: "Architecture complete. Save it as docs/brownfield-architecture.md. Please validate all artifacts for service integration safety."
115
+ po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
116
+ simple_to_ide: "Service enhancement defined with existing API integration. Move to IDE environment to begin development."
117
+ complex_complete: "All brownfield planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."
@@ -0,0 +1,127 @@
1
+ workflow:
2
+ id: brownfield-ui
3
+ name: Brownfield UI/Frontend Enhancement
4
+ description: >-
5
+ Agent workflow for enhancing existing frontend applications with new features,
6
+ modernization, or design improvements. Handles existing UI analysis and safe integration.
7
+ type: brownfield
8
+ project_types:
9
+ - ui-modernization
10
+ - framework-migration
11
+ - design-refresh
12
+ - frontend-enhancement
13
+
14
+ # For Complex UI Enhancements (Multiple Stories, Design Changes)
15
+ complex_enhancement_sequence:
16
+ - step: scope_assessment
17
+ agent: any
18
+ action: assess complexity
19
+ notes: "First, assess if this is a simple UI change (use simple_enhancement_sequence) or complex enhancement requiring full planning."
20
+
21
+ - step: ui_analysis
22
+ agent: analyst
23
+ action: analyze existing UI
24
+ notes: "Review existing frontend application, user feedback, analytics data, and identify improvement areas."
25
+
26
+ - agent: pm
27
+ creates: brownfield-prd.md
28
+ uses: brownfield-prd-tmpl
29
+ requires: existing_ui_analysis
30
+ notes: "Creates comprehensive brownfield PRD focused on UI enhancement with existing system analysis. SAVE OUTPUT: Copy final brownfield-prd.md to your project's docs/ folder."
31
+
32
+ - agent: ux-expert
33
+ creates: front-end-spec.md
34
+ uses: front-end-spec-tmpl
35
+ requires: brownfield-prd.md
36
+ notes: "Creates UI/UX specification for brownfield enhancement that integrates with existing design patterns. SAVE OUTPUT: Copy final front-end-spec.md to your project's docs/ folder."
37
+
38
+ - agent: architect
39
+ creates: brownfield-architecture.md
40
+ uses: brownfield-architecture-tmpl
41
+ requires:
42
+ - brownfield-prd.md
43
+ - front-end-spec.md
44
+ notes: "Creates brownfield frontend architecture with component integration strategy and migration planning. SAVE OUTPUT: Copy final brownfield-architecture.md to your project's docs/ folder."
45
+
46
+ - agent: po
47
+ validates: all_artifacts
48
+ uses: po-master-checklist
49
+ notes: "Validates all brownfield documents for UI integration safety and design consistency. May require updates to any document."
50
+
51
+ - agent: various
52
+ updates: any_flagged_documents
53
+ condition: po_checklist_issues
54
+ notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
55
+
56
+ - workflow_end:
57
+ action: move_to_ide
58
+ notes: "All planning artifacts complete. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
59
+
60
+ # For Simple UI Enhancements (1-3 Stories, Following Existing Design)
61
+ simple_enhancement_sequence:
62
+ - step: enhancement_type
63
+ action: choose approach
64
+ notes: "Choose between creating single story (simple component change) or epic (1-3 related UI changes)."
65
+
66
+ - agent: pm|po|sm
67
+ creates: brownfield_epic OR brownfield_story
68
+ uses: brownfield-create-epic OR brownfield-create-story
69
+ notes: "Create focused UI enhancement with existing design system integration. Choose agent based on team preference and context."
70
+
71
+ - workflow_end:
72
+ action: move_to_ide
73
+ notes: "UI enhancement defined. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
74
+
75
+ flow_diagram: |
76
+ ```mermaid
77
+ graph TD
78
+ A[Start: UI Enhancement] --> B{Enhancement Complexity?}
79
+ B -->|Complex/Significant| C[analyst: analyze existing UI]
80
+ B -->|Simple| D{1 Story or 2-3 Stories?}
81
+
82
+ C --> E[pm: brownfield-prd.md]
83
+ E --> F[ux-expert: front-end-spec.md]
84
+ F --> G[architect: brownfield-architecture.md]
85
+ G --> H[po: validate with po-master-checklist]
86
+ H --> I{PO finds issues?}
87
+ I -->|Yes| J[Return to relevant agent for fixes]
88
+ I -->|No| K[Move to IDE Environment]
89
+ J --> H
90
+
91
+ D -->|1 Story| L[pm/po/sm: brownfield-create-story]
92
+ D -->|2-3 Stories| M[pm/po/sm: brownfield-create-epic]
93
+ L --> N[Move to IDE Environment]
94
+ M --> N
95
+
96
+ style K fill:#90EE90
97
+ style N fill:#90EE90
98
+ style E fill:#FFE4B5
99
+ style F fill:#FFE4B5
100
+ style G fill:#FFE4B5
101
+ style L fill:#FFB6C1
102
+ style M fill:#FFB6C1
103
+ ```
104
+
105
+ decision_guidance:
106
+ use_complex_sequence_when:
107
+ - UI enhancement requires multiple coordinated stories (4+)
108
+ - Design system changes needed
109
+ - New component patterns required
110
+ - User research and testing needed
111
+ - Multiple team members will work on related changes
112
+
113
+ use_simple_sequence_when:
114
+ - Enhancement can be completed in 1-3 stories
115
+ - Follows existing design patterns exactly
116
+ - Component changes are isolated
117
+ - Risk to existing UI is low
118
+ - Change maintains current user experience
119
+
120
+ handoff_prompts:
121
+ analyst_to_pm: "UI analysis complete. Create comprehensive brownfield PRD with UI integration strategy."
122
+ pm_to_ux: "Brownfield PRD ready. Save it as docs/brownfield-prd.md, then create the UI/UX specification."
123
+ ux_to_architect: "UI/UX spec complete. Save it as docs/front-end-spec.md, then create the frontend architecture."
124
+ architect_to_po: "Architecture complete. Save it as docs/brownfield-architecture.md. Please validate all artifacts for UI integration safety."
125
+ po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
126
+ simple_to_ide: "UI enhancement defined with existing design integration. Move to IDE environment to begin development."
127
+ complex_complete: "All brownfield planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."
@@ -0,0 +1,177 @@
1
+ workflow:
2
+ id: greenfield-fullstack
3
+ name: Greenfield Full-Stack Application Development
4
+ description: >-
5
+ Agent workflow for building full-stack applications from concept to development.
6
+ Supports both comprehensive planning for complex projects and rapid prototyping for simple ones.
7
+ type: greenfield
8
+ project_types:
9
+ - web-app
10
+ - saas
11
+ - enterprise-app
12
+ - prototype
13
+ - mvp
14
+
15
+ # For Complex Projects (Production-Ready, Multiple Features)
16
+ complex_project_sequence:
17
+ - agent: analyst
18
+ creates: project-brief.md
19
+ optional_steps:
20
+ - brainstorming_session
21
+ - market_research_prompt
22
+ notes: "Can do brainstorming first, then optional deep research before creating project brief. SAVE OUTPUT: Copy final project-brief.md to your project's docs/ folder."
23
+
24
+ - agent: pm
25
+ creates: prd.md
26
+ requires: project-brief.md
27
+ notes: "Creates PRD from project brief using prd-tmpl. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
28
+
29
+ - agent: ux-expert
30
+ creates: front-end-spec.md
31
+ requires: prd.md
32
+ optional_steps:
33
+ - user_research_prompt
34
+ notes: "Creates UI/UX specification using front-end-spec-tmpl. SAVE OUTPUT: Copy final front-end-spec.md to your project's docs/ folder."
35
+
36
+ - agent: ux-expert
37
+ creates: v0_prompt (optional)
38
+ requires: front-end-spec.md
39
+ condition: user_wants_ai_generation
40
+ notes: "OPTIONAL BUT RECOMMENDED: Generate AI UI prompt for tools like v0, Lovable, etc. Use the generate-ai-frontend-prompt task. User can then generate UI in external tool and download project structure."
41
+
42
+ - agent: architect
43
+ creates: fullstack-architecture.md
44
+ requires:
45
+ - prd.md
46
+ - front-end-spec.md
47
+ optional_steps:
48
+ - technical_research_prompt
49
+ - review_generated_ui_structure
50
+ notes: "Creates comprehensive architecture using fullstack-architecture-tmpl. If user generated UI with v0/Lovable, can incorporate the project structure into architecture. May suggest changes to PRD stories or new stories. SAVE OUTPUT: Copy final fullstack-architecture.md to your project's docs/ folder."
51
+
52
+ - agent: pm
53
+ updates: prd.md (if needed)
54
+ requires: fullstack-architecture.md
55
+ condition: architecture_suggests_prd_changes
56
+ notes: "If architect suggests story changes, update PRD and re-export the complete unredacted prd.md to docs/ folder."
57
+
58
+ - agent: po
59
+ validates: all_artifacts
60
+ uses: po-master-checklist
61
+ notes: "Validates all documents for consistency and completeness. May require updates to any document."
62
+
63
+ - agent: various
64
+ updates: any_flagged_documents
65
+ condition: po_checklist_issues
66
+ notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
67
+
68
+ - project_setup_guidance:
69
+ action: guide_project_structure
70
+ condition: user_has_generated_ui
71
+ notes: "If user generated UI with v0/Lovable: For polyrepo setup, place downloaded project in separate frontend repo alongside backend repo. For monorepo, place in apps/web or packages/frontend directory. Review architecture document for specific guidance."
72
+
73
+ - development_order_guidance:
74
+ action: guide_development_sequence
75
+ notes: "Based on PRD stories: If stories are frontend-heavy, start with frontend project/directory first. If backend-heavy or API-first, start with backend. For tightly coupled features, follow story sequence in monorepo setup. Reference sharded PRD epics for development order."
76
+
77
+ - workflow_end:
78
+ action: move_to_ide
79
+ notes: "All planning artifacts complete. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
80
+
81
+ # For Simple Projects (Prototypes, MVPs, Quick Experiments)
82
+ simple_project_sequence:
83
+ - step: project_scope
84
+ action: assess complexity
85
+ notes: "First, assess if this needs full planning (use complex_project_sequence) or can be a simple prototype/MVP."
86
+
87
+ - agent: analyst
88
+ creates: project-brief.md
89
+ optional_steps:
90
+ - brainstorming_session
91
+ notes: "Creates focused project brief for simple project. SAVE OUTPUT: Copy final project-brief.md to your project's docs/ folder."
92
+
93
+ - agent: pm
94
+ creates: simple-project-prd.md
95
+ uses: create doc simple-project-prd OR create-epic OR create-story
96
+ requires: project-brief.md
97
+ notes: "Create simple prd, simple epic or story instead of full PRD for rapid development. Choose based on scope."
98
+
99
+ - workflow_end:
100
+ action: move_to_ide
101
+ notes: "Simple project defined. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
102
+
103
+ flow_diagram: |
104
+ ```mermaid
105
+ graph TD
106
+ A[Start: Greenfield Project] --> B{Project Complexity?}
107
+ B -->|Complex/Production| C[analyst: project-brief.md]
108
+ B -->|Simple/Prototype| D[analyst: focused project-brief.md]
109
+
110
+ C --> E[pm: prd.md]
111
+ E --> F[ux-expert: front-end-spec.md]
112
+ F --> F2{Generate v0 prompt?}
113
+ F2 -->|Yes| F3[ux-expert: create v0 prompt]
114
+ F2 -->|No| G[architect: fullstack-architecture.md]
115
+ F3 --> F4[User: generate UI in v0/Lovable]
116
+ F4 --> G
117
+ G --> H{Architecture suggests PRD changes?}
118
+ H -->|Yes| I[pm: update prd.md]
119
+ H -->|No| J[po: validate all artifacts]
120
+ I --> J
121
+ J --> K{PO finds issues?}
122
+ K -->|Yes| L[Return to relevant agent for fixes]
123
+ K -->|No| M[Move to IDE Environment]
124
+ L --> J
125
+
126
+ D --> N[pm: simple epic or story]
127
+ N --> O[Move to IDE Environment]
128
+
129
+ C -.-> C1[Optional: brainstorming]
130
+ C -.-> C2[Optional: market research]
131
+ F -.-> F1[Optional: user research]
132
+ G -.-> G1[Optional: technical research]
133
+ D -.-> D1[Optional: brainstorming]
134
+
135
+ style M fill:#90EE90
136
+ style O fill:#90EE90
137
+ style F3 fill:#E6E6FA
138
+ style F4 fill:#E6E6FA
139
+ style C fill:#FFE4B5
140
+ style E fill:#FFE4B5
141
+ style F fill:#FFE4B5
142
+ style G fill:#FFE4B5
143
+ style D fill:#FFB6C1
144
+ style N fill:#FFB6C1
145
+ ```
146
+
147
+ decision_guidance:
148
+ use_complex_sequence_when:
149
+ - Building production-ready applications
150
+ - Multiple team members will be involved
151
+ - Complex feature requirements (4+ stories)
152
+ - Need comprehensive documentation
153
+ - Long-term maintenance expected
154
+ - Enterprise or customer-facing applications
155
+
156
+ use_simple_sequence_when:
157
+ - Building prototypes or MVPs
158
+ - Solo developer or small team
159
+ - Simple requirements (1-3 stories)
160
+ - Quick experiments or proof-of-concepts
161
+ - Short-term or throwaway projects
162
+ - Learning or educational projects
163
+
164
+ handoff_prompts:
165
+ # Complex sequence prompts
166
+ analyst_to_pm: "Project brief is complete. Save it as docs/project-brief.md in your project, then create the PRD."
167
+ pm_to_ux: "PRD is ready. Save it as docs/prd.md in your project, then create the UI/UX specification."
168
+ ux_to_architect: "UI/UX spec complete. Save it as docs/front-end-spec.md in your project, then create the fullstack architecture."
169
+ architect_review: "Architecture complete. Save it as docs/fullstack-architecture.md. Do you suggest any changes to the PRD stories or need new stories added?"
170
+ architect_to_pm: "Please update the PRD with the suggested story changes, then re-export the complete prd.md to docs/."
171
+ updated_to_po: "All documents ready in docs/ folder. Please validate all artifacts for consistency."
172
+ po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
173
+ complex_complete: "All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."
174
+
175
+ # Simple sequence prompts
176
+ simple_analyst_to_pm: "Focused project brief complete. Save it as docs/project-brief.md, then create simple epic or story for rapid development."
177
+ simple_complete: "Simple project defined. Move to IDE environment to begin development."
@@ -0,0 +1,143 @@
1
+ workflow:
2
+ id: greenfield-service
3
+ name: Greenfield Service/API Development
4
+ description: >-
5
+ Agent workflow for building backend services from concept to development.
6
+ Supports both comprehensive planning for complex services and rapid prototyping for simple APIs.
7
+ type: greenfield
8
+ project_types:
9
+ - rest-api
10
+ - graphql-api
11
+ - microservice
12
+ - backend-service
13
+ - api-prototype
14
+ - simple-service
15
+
16
+ # For Complex Services (Production APIs, Multiple Endpoints)
17
+ complex_service_sequence:
18
+ - agent: analyst
19
+ creates: project-brief.md
20
+ optional_steps:
21
+ - brainstorming_session
22
+ - market_research_prompt
23
+ notes: "Can do brainstorming first, then optional deep research before creating project brief. SAVE OUTPUT: Copy final project-brief.md to your project's docs/ folder."
24
+
25
+ - agent: pm
26
+ creates: prd.md
27
+ requires: project-brief.md
28
+ notes: "Creates PRD from project brief using prd-tmpl, focused on API/service requirements. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
29
+
30
+ - agent: architect
31
+ creates: architecture.md
32
+ requires: prd.md
33
+ optional_steps:
34
+ - technical_research_prompt
35
+ notes: "Creates backend/service architecture using architecture-tmpl. May suggest changes to PRD stories or new stories. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
36
+
37
+ - agent: pm
38
+ updates: prd.md (if needed)
39
+ requires: architecture.md
40
+ condition: architecture_suggests_prd_changes
41
+ notes: "If architect suggests story changes, update PRD and re-export the complete unredacted prd.md to docs/ folder."
42
+
43
+ - agent: po
44
+ validates: all_artifacts
45
+ uses: po-master-checklist
46
+ notes: "Validates all documents for consistency and completeness. May require updates to any document."
47
+
48
+ - agent: various
49
+ updates: any_flagged_documents
50
+ condition: po_checklist_issues
51
+ notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
52
+
53
+ - workflow_end:
54
+ action: move_to_ide
55
+ notes: "All planning artifacts complete. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
56
+
57
+ # For Simple Services (Simple APIs, Single Purpose Services)
58
+ simple_service_sequence:
59
+ - step: service_scope
60
+ action: assess complexity
61
+ notes: "First, assess if this needs full planning (use complex_service_sequence) or can be a simple API/service."
62
+
63
+ - agent: analyst
64
+ creates: project-brief.md
65
+ optional_steps:
66
+ - brainstorming_session
67
+ notes: "Creates focused project brief for simple service. SAVE OUTPUT: Copy final project-brief.md to your project's docs/ folder."
68
+
69
+ - agent: pm
70
+ creates: simple_epic OR single_story
71
+ uses: create-epic OR create-story
72
+ requires: project-brief.md
73
+ notes: "Create simple epic or story for API endpoints instead of full PRD for rapid development."
74
+
75
+ - workflow_end:
76
+ action: move_to_ide
77
+ notes: "Simple service defined. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
78
+
79
+ flow_diagram: |
80
+ ```mermaid
81
+ graph TD
82
+ A[Start: Service Development] --> B{Service Complexity?}
83
+ B -->|Complex/Production| C[analyst: project-brief.md]
84
+ B -->|Simple/Prototype| D[analyst: focused project-brief.md]
85
+
86
+ C --> E[pm: prd.md]
87
+ E --> F[architect: architecture.md]
88
+ F --> G{Architecture suggests PRD changes?}
89
+ G -->|Yes| H[pm: update prd.md]
90
+ G -->|No| I[po: validate all artifacts]
91
+ H --> I
92
+ I --> J{PO finds issues?}
93
+ J -->|Yes| K[Return to relevant agent for fixes]
94
+ J -->|No| L[Move to IDE Environment]
95
+ K --> I
96
+
97
+ D --> M[pm: simple epic or story]
98
+ M --> N[Move to IDE Environment]
99
+
100
+ C -.-> C1[Optional: brainstorming]
101
+ C -.-> C2[Optional: market research]
102
+ F -.-> F1[Optional: technical research]
103
+ D -.-> D1[Optional: brainstorming]
104
+
105
+ style L fill:#90EE90
106
+ style N fill:#90EE90
107
+ style C fill:#FFE4B5
108
+ style E fill:#FFE4B5
109
+ style F fill:#FFE4B5
110
+ style D fill:#FFB6C1
111
+ style M fill:#FFB6C1
112
+ ```
113
+
114
+ decision_guidance:
115
+ use_complex_sequence_when:
116
+ - Building production APIs or microservices
117
+ - Multiple endpoints and complex business logic
118
+ - Need comprehensive documentation and testing
119
+ - Multiple team members will be involved
120
+ - Long-term maintenance expected
121
+ - Enterprise or external-facing APIs
122
+
123
+ use_simple_sequence_when:
124
+ - Building simple APIs or single-purpose services
125
+ - Few endpoints with straightforward logic
126
+ - Prototyping or proof-of-concept APIs
127
+ - Solo developer or small team
128
+ - Internal tools or utilities
129
+ - Learning or experimental projects
130
+
131
+ handoff_prompts:
132
+ # Complex sequence prompts
133
+ analyst_to_pm: "Project brief is complete. Save it as docs/project-brief.md in your project, then create the PRD."
134
+ pm_to_architect: "PRD is ready. Save it as docs/prd.md in your project, then create the service architecture."
135
+ architect_review: "Architecture complete. Save it as docs/architecture.md. Do you suggest any changes to the PRD stories or need new stories added?"
136
+ architect_to_pm: "Please update the PRD with the suggested story changes, then re-export the complete prd.md to docs/."
137
+ updated_to_po: "All documents ready in docs/ folder. Please validate all artifacts for consistency."
138
+ po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
139
+ complex_complete: "All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."
140
+
141
+ # Simple sequence prompts
142
+ simple_analyst_to_pm: "Focused project brief complete. Save it as docs/project-brief.md, then create simple epic or story for API development."
143
+ simple_complete: "Simple service defined. Move to IDE environment to begin development."