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
@@ -1,1142 +0,0 @@
1
- # BMad-Method Agentic Agile Driven Development User Guide
2
-
3
- This comprehensive guide will help you understand and effectively use the BMad Method framework for AI-assisted software development along with many expansion purposes.
4
-
5
- ## Table of Contents
6
-
7
- 1. [Understanding BMad](#understanding-bmad)
8
- 2. [Getting Started](#getting-started)
9
- 3. [Agent System](#agent-system)
10
- 4. [Templates and Document Creation](#templates-and-document-creation)
11
- 5. [Development Workflow](#development-workflow)
12
- 6. [IDE Integration](#ide-integration)
13
- 7. [Web UI Usage](#web-ui-usage)
14
- 8. [Advanced Features](#advanced-features)
15
-
16
- ## Understanding BMad
17
-
18
- ### What is BMad-Method?
19
-
20
- BMad-Method (Breakthrough Method of Agile AI-Driven Development) is an AI agent orchestration framework that provides specialized AI agents for every role in a complete Agile development team. Unlike generic AI assistants, each BMad agent has deep expertise in their specific domain and can collaborate with you using advanced elicitation techniques, and guided workflows
21
-
22
- ### Core Principles
23
-
24
- 1. **Specialized Expertise**: Each agent focuses on a specific role (PM, Architect, Developer, QA, etc.)
25
- 2. **True Agile Workflow**: Follows real Agile methodologies with proper story management
26
- 3. **Self-Contained Templates**: Documents embed both output and processing instructions
27
- 4. **Dynamic Dependencies**: Agents only load resources they need
28
- 5. **Platform Agnostic**: Works with any Project Type or Agentic IDE
29
-
30
- ### When to Use BMad
31
-
32
- - **New Projects (Greenfield)**: Complete end-to-end development
33
- - **Existing Projects (Brownfield)**: Feature additions and enhancements
34
- - **Team Collaboration**: Multiple roles working together
35
- - **Quality Assurance**: Structured testing and validation
36
- - **Documentation**: Professional PRDs, architecture docs, user stories
37
-
38
- ## Getting Started
39
-
40
- ### Installation Options
41
-
42
- #### Option 1: Web UI (Fastest - 2 minutes)
43
-
44
- If you want to do the planning int he Web:
45
-
46
- 1. Navigate to `dist/teams/`
47
- 2. Copy `team-fullstack.txt` content
48
- 3. Create new Gemini Gem or CustomGPT
49
- 4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
50
- 5. Type `/help` to see available commands
51
-
52
- #### Option 2: IDE Integration (5 minutes)
53
-
54
- ```bash
55
- # Interactive installation (recommended)
56
- npx bmad-method install
57
- ```
58
-
59
- ### CLI Commands
60
-
61
- ```bash
62
- # List all available agents
63
- npx bmad-method list
64
-
65
- # Install or update (automatically detects existing installations)
66
- npx bmad-method install
67
-
68
- # Check installation status
69
- npx bmad-method status
70
- ```
71
-
72
- ## Agent System
73
-
74
- ### Core Development Team
75
-
76
- | Agent | Role | Primary Functions | When to Use |
77
- | ----------- | ------------------ | ---------------------------------------------- | ------------------------------------------------- |
78
- | `analyst` | Business Analyst | Market research, requirements gathering | Project planning, competitive analysis |
79
- | `pm` | Product Manager | PRD creation, feature prioritization | Strategic planning, roadmaps |
80
- | `architect` | Solution Architect | System design, technical architecture | Complex systems, scalability planning |
81
- | `dev` | Developer | Sequential task execution, testing, validation | Story implementation with test-driven development |
82
- | `qa` | QA Specialist | Code review, refactoring, test validation | Senior developer review via `review-story` task |
83
- | `ux-expert` | UX Designer | UI/UX design, prototypes | User experience, interface design |
84
- | `po` | Product Owner | Backlog management, story validation | Story refinement, acceptance criteria |
85
- | `sm` | Scrum Master | Sprint planning, story creation | Project management, workflow |
86
-
87
- ### Meta Agents
88
-
89
- | Agent | Role | Primary Functions | When to Use |
90
- | ------------------- | ---------------- | ------------------------------------- | --------------------------------- |
91
- | `bmad-orchestrator` | Team Coordinator | Multi-agent workflows, role switching | Complex multi-role tasks |
92
- | `bmad-master` | Universal Expert | All capabilities without switching | Single-session comprehensive work |
93
-
94
- ### How Agents Work
95
-
96
- #### Dependencies System
97
-
98
- Each agent has a YAML header defining its dependencies:
99
-
100
- ```yaml
101
- dependencies:
102
- templates:
103
- - prd-template.md
104
- - user-story-template.md
105
- tasks:
106
- - create-doc.md
107
- - shard-doc.md
108
- data:
109
- - bmad-kb.md
110
- ```
111
-
112
- **Key Points:**
113
-
114
- - Agents only load resources they need (lean context)
115
- - Dependencies are automatically resolved during bundling
116
- - Resources are shared across agents to maintain consistency
117
-
118
- #### Agent Interaction
119
-
120
- **In IDE:**
121
-
122
- ```bash
123
- # Cursor, Windsurf, or Trae (manual rules - loaded with @)
124
- @pm Create a PRD for a task management app
125
- @architect Design the system architecture
126
- @dev Implement the user authentication
127
-
128
- # Claude Code (files in commands folder - loaded with /)
129
- /pm Create user stories
130
- /dev Fix the login bug
131
- ```
132
-
133
- **In Web UI:**
134
-
135
- ```text
136
- /pm create-doc prd
137
- /architect review system design
138
- /dev implement story 1.2
139
- ```
140
-
141
- ## Templates and Document Creation
142
-
143
- ### Understanding Templates
144
-
145
- BMad templates are **self-contained and interactive** - they embed both the desired document output and the LLM instructions needed to work with users. This means no separate task is needed for most document creation.
146
-
147
- #### Template Structure
148
-
149
- Templates follow the `template-format.md` specification:
150
-
151
- - `{{placeholders}}` for variable substitution
152
- - `[[LLM: instructions]]` for AI-only processing directives
153
- - Conditional logic blocks
154
- - Examples and guidance sections
155
-
156
- #### Template Processing Flow
157
-
158
- 1. **User Request**: "Create a PRD"
159
- 2. **Agent Selection**: PM agent loads PRD template
160
- 3. **Interactive Processing**: Template guides conversation
161
- 4. **Content Generation**: AI follows embedded instructions
162
- 5. **User Refinement**: Built-in elicitation processes
163
- 6. **Final Output**: Complete, professional document
164
-
165
- ### Document Types
166
-
167
- #### Product Requirements Document (PRD)
168
-
169
- - **Template**: `prd-template.md`
170
- - **Agent**: PM
171
- - **Use Case**: Feature specification, project planning
172
- - **Command**: `/pm create-doc prd`
173
- - **💡 Cost-Saving Tip**: For Gemini users, create PRDs in the web UI to avoid high IDE token costs. Copy the final markdown output to `docs/prd.md` in your project.
174
-
175
- #### Architecture Documents
176
-
177
- - **Template**: `architecture-template.md`
178
- - **Agent**: Architect
179
- - **Use Case**: System design, technical planning
180
- - **Command**: `/architect create-doc architecture`
181
- - **💡 Cost-Saving Tip**: For Gemini users, create architecture docs in the web UI to avoid high IDE token costs. Copy the final markdown output to `docs/architecture.md` in your project.
182
-
183
- #### User Stories
184
-
185
- - **Template**: `user-story-template.md`
186
- - **Agent**: SM (Scrum Master)
187
- - **Use Case**: Development planning, sprint preparation
188
- - **Command**: `/sm create-doc user-story`
189
-
190
- ### Document Creation Best Practices
191
-
192
- #### Web UI to IDE Workflow (Recommended for Gemini)
193
-
194
- For cost efficiency, especially with Gemini:
195
-
196
- 1. **Create Large Documents in Web UI**: Use web bundles for PRD and architecture creation
197
- 2. **Copy to Project**: Save the final markdown output to your project's `docs/` folder (use the ... menu)
198
- 3. **Standard Naming**: Use `prd.md` and `architecture.md` for consistent file name
199
- 4. **Continue in IDE**: Use IDE agents for development tasks and smaller documents
200
-
201
- #### File Naming Conventions
202
-
203
- **Required Names for Framework Integration:**
204
-
205
- - `docs/prd.md` - Product Requirements Document
206
- - `docs/architecture.md` - System Architecture Document
207
-
208
- **Why These Names Matter:**
209
-
210
- - Agents automatically reference these files during development
211
- - Sharding tasks expect these specific filenames
212
- - Workflow automation depends on standard naming
213
-
214
- #### IDE Document Creation
215
-
216
- When working directly in IDEs:
217
-
218
- - Agents should create documents in `docs/` folder automatically
219
- - If agents name files differently (e.g., `product-requirements.md`), rename to `prd.md`
220
- - Verify document location matches `docs/prd.md` and `docs/architecture.md`
221
-
222
- ### Advanced Template Features
223
-
224
- #### Embedded Elicitation
225
-
226
- Templates can include `advanced-elicitation.md` for enhanced interaction:
227
-
228
- ```markdown
229
- [[LLM: Use advanced-elicitation actions 0-3 to refine requirements]]
230
- ```
231
-
232
- This provides 10 structured brainstorming actions:
233
-
234
- - 0-3: Analysis and brainstorming
235
- - 4-6: Refinement and validation
236
- - 7-9: Review and finalization
237
-
238
- #### Interactive Modes
239
-
240
- - **Incremental Mode**: Step-by-step with user input
241
- - **YOLO Mode**: Rapid generation with minimal interaction
242
-
243
- ## Development Workflow
244
-
245
- ### The Planning Workflow (Web UI)
246
-
247
- Before development begins, BMad follows a structured planning workflow that's ideally done in web UI for cost efficiency:
248
-
249
- ```mermaid
250
- graph TD
251
- A["Start: Project Idea"] --> B{"Optional: Analyst Brainstorming"}
252
- B -->|Yes| C["Analyst: Market Research & Analysis"]
253
- B -->|No| D["Create Project Brief"]
254
- C --> D["Analyst: Create Project Brief"]
255
- D --> E["PM: Create PRD from Brief"]
256
- E --> F["Architect: Create Architecture from PRD"]
257
- F --> G["PO: Run Master Checklist"]
258
- G --> H{"Documents Aligned?"}
259
- H -->|Yes| I["Planning Complete"]
260
- H -->|No| J["PO: Update Epics & Stories"]
261
- J --> K["Update PRD/Architecture as needed"]
262
- K --> G
263
- I --> L["📁 Switch to IDE"]
264
- L --> M["PO: Shard Documents"]
265
- M --> N["Ready for SM/Dev Cycle"]
266
-
267
- style I fill:#34a853,color:#fff
268
- style G fill:#f9ab00,color:#fff
269
- style L fill:#1a73e8,color:#fff
270
- style N fill:#34a853,color:#fff
271
- ```
272
-
273
- #### Web UI to IDE Transition
274
-
275
- **Critical Transition Point**: Once the PO confirms document alignment, you must switch from web UI to IDE to begin the development workflow:
276
-
277
- 1. **Copy Documents to Project**: Ensure `docs/prd.md` and `docs/architecture.md` are in your project
278
- 2. **Switch to IDE**: Open your project in your preferred IDE (Cursor, Claude Code, Windsurf, Trae)
279
- 3. **Document Sharding**: Use PO agent to shard large documents into manageable pieces
280
- 4. **Begin Development**: Start the SM/Dev cycle for implementation
281
-
282
- ### The Core Development Cycle (IDE)
283
-
284
- Once planning is complete and documents are sharded, BMad follows a structured development workflow:
285
-
286
- ```mermaid
287
- graph TD
288
- A["Development Phase Start"] --> B["SM: Reviews Previous Story Dev/QA Notes"]
289
- B --> B2["SM: Drafts Next Story from Sharded Epic + Architecture"]
290
- B2 --> C{"User Approval"}
291
- C -->|Approved| D["Dev: Sequential Task Execution"]
292
- C -->|Needs Changes| B2
293
- D --> E["Dev: Implement Tasks + Tests"]
294
- E --> F["Dev: Run All Validations"]
295
- F --> G["Dev: Mark Ready for Review + Add Notes"]
296
- G --> H{"User Verification"}
297
- H -->|Request QA Review| I["QA: Senior Dev Review + Active Refactoring"]
298
- H -->|Approve Without QA| K["Mark Story as Done"]
299
- I --> J["QA: Review, Refactor Code, Add Tests, Document Notes"]
300
- J --> L{"QA Decision"}
301
- L -->|Needs Dev Work| D
302
- L -->|Approved| K
303
- H -->|Needs Fixes| D
304
- K --> B
305
-
306
- style K fill:#34a853,color:#fff
307
- style I fill:#f9ab00,color:#fff
308
- style J fill:#ffd54f,color:#000
309
- style E fill:#e3f2fd,color:#000
310
- style B fill:#e8f5e9,color:#000
311
- ```
312
-
313
- ### Workflow Phases
314
-
315
- #### 1. Planning Phase
316
-
317
- - **Analyst**: Market research, competitive analysis
318
- - **PM**: Create PRD, define features
319
- - **Architect**: System design, technical architecture
320
- - **UX Expert**: User experience design
321
-
322
- #### 2. Preparation Phase
323
-
324
- - **PO**: Shard epics into manageable stories
325
- - **PO**: Shard architecture into implementation tasks
326
- - **SM**: Prepare initial story backlog
327
-
328
- #### 3. Development Phase (Cyclical)
329
-
330
- - **SM**: Draft next story from sharded epic
331
- - **User**: Review and approve story
332
- - **Dev**: Sequential task execution:
333
- - Reads each task in the story
334
- - Implements code for the task
335
- - Writes tests alongside implementation
336
- - Runs validations (linting, tests)
337
- - Updates task checkbox [x] only if all validations pass
338
- - Maintains Debug Log for temporary changes
339
- - Updates File List with all created/modified files
340
- - **Dev**: After all tasks complete:
341
- - Runs integration tests (if specified)
342
- - Runs E2E tests (if specified)
343
- - Validates Definition of Done checklist
344
- - Marks story as "Ready for Review"
345
- - **User**: Verify implementation
346
- - **Optional QA Review**: User can request QA to run `review-story` task
347
- - **Repeat**: Until all stories complete
348
-
349
- #### Dev Agent Workflow Details
350
-
351
- The Dev agent follows a strict test-driven sequential workflow:
352
-
353
- **Key Behaviors:**
354
-
355
- - **Story-Centric**: Works only from the story file, never loads PRD/architecture unless specified in dev notes
356
- - **Sequential Execution**: Completes tasks one by one, marking [x] only after validations pass
357
- - **Test-Driven**: Writes tests alongside code for every task
358
- - **Quality Gates**: Never marks tasks complete if validations fail
359
- - **Debug Logging**: Tracks temporary changes in the story's Debug Log table
360
- - **File Tracking**: Maintains complete File List of all created/modified files
361
-
362
- **Blocking Conditions:**
363
- The Dev agent will stop and request help if:
364
-
365
- - Story is not approved
366
- - Requirements are ambiguous after checking the story
367
- - Validations fail 3 times for the same task
368
- - Critical configuration files are missing
369
- - Automated tests or linting fails
370
-
371
- #### 4. Quality Assurance Integration
372
-
373
- The QA agent plays a crucial role after development:
374
-
375
- - **When Dev marks "Ready for Review"**: Story is ready for user verification
376
- - **User Options**:
377
- - **Direct Approval**: If satisfied, mark story as "Done"
378
- - **Request Changes**: Send back to Dev with specific feedback
379
- - **Request QA Review**: Ask QA to run the `review-story` task for senior developer review
380
- - **QA Review Process** (`/qa run review-story`):
381
-
382
- - Reviews code as a senior developer with authority to refactor
383
- - **Active Refactoring**: Makes improvements directly in the code
384
- - **Comprehensive Review Focus**:
385
- - Code architecture and design patterns
386
- - Refactoring opportunities and code duplication
387
- - Performance optimizations and security concerns
388
- - Best practices and patterns
389
- - **Standards Compliance**: Verifies adherence to:
390
- - `docs/coding-standards.md`
391
- - `docs/unified-project-structure.md`
392
- - `docs/testing-strategy.md`
393
- - **Test Coverage Review**: Can add missing tests if critical coverage is lacking
394
- - **Documentation**: Adds comments for complex logic if missing
395
- - **Results Documentation** in story's QA Results section:
396
- - Code quality assessment
397
- - Refactoring performed with WHY and HOW explanations
398
- - Compliance check results
399
- - Improvements checklist (completed vs. pending items)
400
- - Security and performance findings
401
- - Final approval status
402
-
403
- ### Understanding the SM/Dev/QA Story Workflow
404
-
405
- The story file is the central artifact that enables seamless collaboration between the Scrum Master (SM), Developer (Dev), and Quality Assurance (QA) agents. Here's how they work together:
406
-
407
- #### Why We Have the Scrum Master
408
-
409
- The SM agent serves as a critical bridge between high-level planning and technical implementation:
410
-
411
- 1. **Document Synthesis**: Reads sharded PRD epics and architecture documents to extract relevant technical details
412
- 2. **Story Enrichment**: Creates self-contained stories with all technical context needed for implementation
413
- 3. **Continuous Learning**: Uses notes from previous stories to improve future story preparation
414
- 4. **Developer Efficiency**: Ensures developers have everything needed without searching multiple documents
415
-
416
- #### The Story Creation Process
417
-
418
- When the SM agent executes the `create-next-story` task:
419
-
420
- 1. **Loads Configuration**: Reads `core-config.yaml` to understand project structure
421
- 2. **Identifies Next Story**: Sequentially processes stories from epics (1.1, 1.2, 2.1, etc.)
422
- 3. **Gathers Architecture Context**: Reads relevant sharded architecture documents based on story type:
423
-
424
- - Backend stories: data models, API specs, database schemas
425
- - Frontend stories: component specs, UI patterns, workflows
426
- - Full-stack: both backend and frontend documents
427
-
428
- 4. **Reviews Previous Story**: Extracts Dev and QA notes to learn from past implementation
429
-
430
- #### The Story Template Structure
431
-
432
- The story template contains embedded LLM instructions for the SM Dev and QA Agent.
433
-
434
- #### How Agents Pass Information
435
-
436
- ##### SM → Dev Flow
437
-
438
- The SM prepares the story with:
439
-
440
- - **Dev Notes**: Specific technical guidance extracted from architecture
441
- - **Testing Requirements**: Unit, integration, and E2E test specifications
442
- - **Tasks/Subtasks**: Detailed implementation steps with AC mappings
443
-
444
- ##### Dev → SM Flow
445
-
446
- The Dev agent provides feedback through:
447
-
448
- - **Completion Notes**: Deviations or discoveries that impact future stories
449
- - **Debug Log References**: Technical challenges and solutions
450
- - **File List**: Complete inventory of created/modified files
451
- - **Change Log**: Any requirement modifications during development
452
-
453
- ##### QA → SM Flow
454
-
455
- The QA agent contributes:
456
-
457
- - **Code Quality Assessment**: Senior developer perspective on implementation quality
458
- - **Refactoring Performed**: Direct code improvements with:
459
- - What was changed
460
- - Why the change was made
461
- - How it improves the code
462
- - **Compliance Results**: Verification against coding standards, project structure, and testing strategy
463
- - **Test Coverage**: Added tests for critical missing coverage
464
- - **Security Review**: Any security concerns found and whether addressed
465
- - **Performance Considerations**: Performance issues found and optimizations made
466
- - **Improvements Checklist**: Items completed (marked [x]) vs. items for Dev to address (marked [ ])
467
- - **Learning Opportunities**: Explanations for junior/mid-level developer growth
468
-
469
- ### Workflow Types
470
-
471
- #### Greenfield Development
472
-
473
- For new projects:
474
-
475
- 1. Business analysis and market research
476
- 2. Product requirements and feature definition
477
- 3. System architecture and design
478
- 4. Development execution
479
- 5. Testing and deployment
480
-
481
- #### Brownfield Enhancement
482
-
483
- For existing projects:
484
-
485
- 1. Current system analysis
486
- 2. Enhancement planning
487
- 3. Impact assessment
488
- 4. Incremental development
489
- 5. Integration testing
490
-
491
- ## IDE Integration
492
-
493
- ### IDE Best Practices
494
-
495
- - **Context Management**: Keep relevant files only in context, keep files as lean and focused as necessary
496
- - **Agent Selection**: Use appropriate agent for task
497
- - **Iterative Development**: Work in small, focused tasks
498
- - **File Organization**: Maintain clean project structure
499
-
500
- ## Web UI Usage
501
-
502
- **Important**: Web UI is primarily designed for planning and documentation phases, not development. Use IDE integration for coding tasks.
503
-
504
- ### Web UI Commands
505
-
506
- type #help when in the Gem or Custom GPT with one of the teams, and the BMad-Orchestrator will give you an up to date list of commands.
507
-
508
- ### Web UI Agent Interaction
509
-
510
- Web UI agents focus on planning and documentation. Here's how to interact with each:
511
-
512
- ## Advanced Features
513
-
514
- ### Dynamic Resource Loading
515
-
516
- BMad's dependency system ensures agents only load necessary resources:
517
-
518
- - **Templates**: Only relevant document templates
519
- - **Tasks**: Only required automation tasks
520
- - **Data**: Only pertinent knowledge base sections
521
- - **Checklists**: Only applicable quality checks
522
-
523
- ### Custom Templates
524
-
525
- Create custom templates following `utils/template-format.md`:
526
-
527
- ```markdown
528
- ---
529
- title: Custom Template
530
- description: Your custom document type
531
- dependencies:
532
- - advanced-elicitation.md
533
- ---
534
-
535
- # {{document_title}}
536
-
537
- [[LLM: Guide user through custom process]]
538
-
539
- ## Section 1
540
-
541
- {{section_1_content}}
542
-
543
- [[LLM: Use elicitation action 2 for refinement]]
544
-
545
- ## Section 2
546
-
547
- {{section_2_content}}
548
- ```
549
-
550
- ### Workflow Customization
551
-
552
- Modify workflows in `.bmad-core/workflows/`:
553
-
554
- ```yaml
555
- name: Custom Workflow
556
- type: development
557
- phases:
558
- planning:
559
- agents:
560
- - analyst
561
- - pm
562
- deliverables:
563
- - market-research
564
- - prd
565
- architecture:
566
- agents:
567
- - architect
568
- deliverables:
569
- - system-design
570
- development:
571
- agents:
572
- - dev
573
- - qa
574
- deliverables:
575
- - implementation
576
- - tests
577
- ```
578
-
579
- ### Creating Custom Templates
580
-
581
- Templates are self-contained documents that embed both output structure and processing instructions. Follow these patterns from existing templates:
582
-
583
- #### Template Structure Example
584
-
585
- ```markdown
586
- # {{Project Name}} Document Title
587
-
588
- [[LLM: Opening instruction for AI processing]]
589
-
590
- ## Level 2 Section (Shardable)
591
-
592
- [[LLM: Section-specific instructions with embedded tasks]]
593
-
594
- ### Level 3 Subsection
595
-
596
- [[LLM: Detailed processing instructions]]
597
- {{placeholder_variable}}
598
-
599
- @{example: Example content for AI guidance}
600
-
601
- ^^CONDITION: condition_name^^
602
-
603
- ## Conditional Section
604
-
605
- [[LLM: Only include if condition is met]]
606
- ^^/CONDITION^^
607
- ```
608
-
609
- #### Key Template Patterns
610
-
611
- **Variable Substitution:**
612
-
613
- - `{{Project Name}}` - Dynamic project name
614
- - `{{document_title}}` - Document-specific title
615
- - `{{section_content}}` - Placeholder for generated content
616
-
617
- **AI Processing Instructions:**
618
-
619
- - `[[LLM: Instructions for AI behavior]]` - AI-only processing directives
620
- - `@{example: Sample content}` - Guidance examples (not output)
621
- - `tasks#advanced-elicitation` - Reference to embedded tasks
622
-
623
- **Conditional Content:**
624
-
625
- ```markdown
626
- ^^CONDITION: has_ui^^
627
-
628
- ## User Interface Section
629
-
630
- [[LLM: Only include for UI projects]]
631
- ^^/CONDITION^^
632
- ```
633
-
634
- #### Document Sharding
635
-
636
- Level 2 headings (`##`) in templates can be automatically sharded into separate documents:
637
-
638
- **Original PRD:**
639
-
640
- ```markdown
641
- ## Goals and Background Context
642
-
643
- ## Requirements
644
-
645
- ## User Interface Design Goals
646
-
647
- ## Success Metrics
648
- ```
649
-
650
- **After Sharding:**
651
-
652
- - `docs/prd/goals-and-background-context.md`
653
- - `docs/prd/requirements.md`
654
- - `docs/prd/user-interface-design-goals.md`
655
- - `docs/prd/success-metrics.md`
656
-
657
- Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sharding.
658
-
659
- ### Creating Custom Tasks
660
-
661
- Tasks are reusable automation instructions that agents can execute. They follow a structured format:
662
-
663
- #### Task Structure
664
-
665
- ```markdown
666
- # Task Name
667
-
668
- ## Purpose
669
-
670
- - Clear description of what the task accomplishes
671
- - When to use this task
672
-
673
- ## Instructions
674
-
675
- ### 1. Step One
676
-
677
- - Detailed instructions for the agent
678
- - Specific behaviors and outputs expected
679
-
680
- ### 2. Step Two
681
-
682
- - Additional processing steps
683
- - Integration with other resources
684
-
685
- ## Examples
686
-
687
- @{example: Concrete usage examples}
688
- ```
689
-
690
- #### Task Patterns
691
-
692
- **Resource Integration:**
693
-
694
- ```markdown
695
- [[LLM: Check if docs/coding-standards.md exists and reference it]]
696
- [[LLM: Load docs/openapi-spec.yaml for API context]]
697
- ```
698
-
699
- **Advanced Elicitation:**
700
-
701
- ```markdown
702
- [[LLM: Apply tasks#advanced-elicitation protocol after completion]]
703
- ```
704
-
705
- **Conditional Logic:**
706
-
707
- ```markdown
708
- [[LLM: If project has UI components, also check frontend standards]]
709
- ```
710
-
711
- ### Creating Custom Agents
712
-
713
- Custom agents combine persona, capabilities, and dependencies into specialized roles:
714
-
715
- #### Agent Structure
716
-
717
- ```yaml
718
- agent:
719
- name: Custom Agent Name
720
- id: custom-agent
721
- title: Specialized Role Title
722
- icon: 🎯
723
- whenToUse: Specific use case description
724
- persona:
725
- role: Primary role definition
726
- style: Communication style and approach
727
- identity: Core identity and expertise
728
- focus: Primary areas of concentration
729
- startup:
730
- - Announcement message
731
- - Initial context loading instructions
732
- - User guidance
733
- commands:
734
- - Available slash commands
735
- - Command descriptions
736
- dependencies:
737
- templates:
738
- - custom-template.md
739
- tasks:
740
- - custom-task.md
741
- data:
742
- - domain-knowledge.md
743
- ```
744
-
745
- #### Agent Startup Instructions
746
-
747
- Agents can load project-specific documents and provide custom context:
748
-
749
- ```yaml
750
- startup:
751
- - Load docs/coding-standards.md if available
752
- - Review docs/project-structure.md for context
753
- - Check for docs/third-party-apis/ folder
754
- - Announce specialized capabilities
755
- ```
756
-
757
- #### Loading Project Documents
758
-
759
- Agents can reference and load documents from the `docs/` folder:
760
-
761
- - **Coding Standards**: `docs/coding-standards.md`
762
- - **API Specifications**: `docs/openapi-spec.yaml`
763
- - **Project Structure**: `docs/project-structure.md`
764
- - **Third-party APIs**: `docs/third-party-apis/`
765
- - **Architecture Decisions**: `docs/architecture-decisions/`
766
-
767
- #### Context Integration
768
-
769
- ```markdown
770
- [[LLM: Before beginning, check for and load relevant context:
771
-
772
- - docs/coding-standards.md for development standards
773
- - docs/brand-guidelines.md for design consistency
774
- - docs/third-party-apis/ for integration requirements
775
- - Any project-specific documentation in docs/ folder]]
776
- ```
777
-
778
- ### Technical Preferences System
779
-
780
- BMad includes a powerful personalization system through the `technical-preferences.md` file located in `.bmad-core/data/`.
781
-
782
- #### What is technical-preferences.md?
783
-
784
- This file allows you to define your preferred technologies, patterns, and standards once, then have agents automatically consider them across all projects. It acts as your personal technical profile that travels with your agent bundles.
785
-
786
- #### What to Include
787
-
788
- **Technology Stack Preferences:**
789
-
790
- ```markdown
791
- ## Preferred Technologies
792
-
793
- ### Frontend
794
-
795
- - React with TypeScript
796
- - Tailwind CSS for styling
797
- - Next.js for full-stack applications
798
-
799
- ### Backend
800
-
801
- - Node.js with Express
802
- - PostgreSQL for relational data
803
- - Redis for caching
804
-
805
- ### Deployment
806
-
807
- - Vercel for frontend
808
- - Railway for backend services
809
- ```
810
-
811
- **Design Patterns & Standards:**
812
-
813
- ```markdown
814
- ## Code Standards
815
-
816
- - Use functional programming patterns where possible
817
- - Prefer composition over inheritance
818
- - Always include comprehensive error handling
819
- - Write tests for all business logic
820
-
821
- ## Architecture Preferences
822
-
823
- - Microservices for complex applications
824
- - RESTful APIs with OpenAPI documentation
825
- - Event-driven architecture for real-time features
826
- ```
827
-
828
- **External Services & APIs:**
829
-
830
- ```markdown
831
- ## Preferred External Services
832
-
833
- - Auth0 for authentication
834
- - Stripe for payments
835
- - SendGrid for email
836
- - Cloudinary for image processing
837
-
838
- ## APIs to Avoid
839
-
840
- - Legacy SOAP services
841
- - Services without proper documentation
842
- ```
843
-
844
- #### How Agents Use This File
845
-
846
- **Automatic Suggestions**: Agents will suggest your preferred technologies when appropriate for the project requirements.
847
-
848
- **Informed Alternatives**: If your preferences don't fit the project, agents explain why and suggest alternatives.
849
-
850
- **Consistency**: All agents reference the same preferences, ensuring consistent recommendations across planning and development.
851
-
852
- #### Building Your Preferences Over Time
853
-
854
- **Learning and Evolution**: As you work on projects, add discoveries to your preferences file:
855
-
856
- ## Lessons Learned
857
-
858
- - Avoid using Library X for large datasets (performance issues)
859
- - Pattern Y works well for real-time features
860
- - Service Z has excellent documentation and support
861
-
862
- ## Future Exploration
863
-
864
- - Want to try Framework A on next appropriate project
865
- - Interested in Pattern B for microservices
866
- - Consider Service C for better performance
867
-
868
- ### Using with Web Bundles
869
-
870
- When creating custom web bundles or uploading to AI platforms, include your `technical-preferences.md` content to ensure agents have your preferences from the start of any conversation.
871
-
872
- ### Core Configuration
873
-
874
- The `bmad-core/core-config.yaml` file is a critical V4 innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
875
-
876
- #### Understanding core-config.yaml
877
-
878
- This configuration file acts as a map for BMad agents, telling them exactly where to find your project documents and how they're structured. It's what makes V4 agents intelligent enough to work with V3 projects, custom layouts, or any document organization you prefer.
879
-
880
- #### Configuration Structure
881
-
882
- ```yaml
883
- coreProjectLocation:
884
- devStoryLocation: docs/stories # Where completed stories are saved
885
-
886
- prd:
887
- prdFile: docs/prd.md
888
- prdVersion: v4 # v3 or v4
889
- prdSharded: true # false if epics are embedded in PRD
890
- prdShardedLocation: docs/prd # Where sharded epics live
891
- epicFilePattern: epic-{n}*.md # Pattern for epic files
892
-
893
- architecture:
894
- architectureFile: docs/architecture.md
895
- architectureVersion: v4 # v3 or v4
896
- architectureSharded: true # false if monolithic
897
- architectureShardedLocation: docs/architecture
898
-
899
- customTechnicalDocuments: null # Additional docs for SM
900
-
901
- devLoadAlwaysFiles: # Files dev agent always loads
902
- - docs/architecture/coding-standards.md
903
- - docs/architecture/tech-stack.md
904
- - docs/architecture/project-structure.md
905
-
906
- devDebugLog: .ai/debug-log.md # Dev agent debug tracking
907
- agentCoreDump: .ai/core-dump{n}.md # Export chat contents
908
- ```
909
-
910
- #### Key Configuration Options
911
-
912
- ##### PRD Configuration
913
-
914
- The Scrum Master agent uses these settings to locate epics:
915
-
916
- **V4 Sharded Structure:**
917
-
918
- ```yaml
919
- prd:
920
- prdFile: docs/prd.md
921
- prdVersion: v4
922
- prdSharded: true
923
- prdShardedLocation: docs/prd
924
- epicFilePattern: epic-{n}*.md
925
- ```
926
-
927
- **V3 Embedded Epics:**
928
-
929
- ```yaml
930
- prd:
931
- prdFile: docs/prd.md
932
- prdVersion: v3
933
- prdSharded: false # Epics are inside PRD
934
- ```
935
-
936
- **Custom Sharded Location:**
937
-
938
- ```yaml
939
- prd:
940
- prdFile: docs/product-requirements.md
941
- prdVersion: v4
942
- prdSharded: true
943
- prdShardedLocation: docs # Epics in docs/ not docs/prd/
944
- epicFilePattern: epic-*.md
945
- ```
946
-
947
- ##### Architecture Configuration
948
-
949
- Similar flexibility for architecture documents:
950
-
951
- **V4 Sharded Architecture:**
952
-
953
- ```yaml
954
- architecture:
955
- architectureFile: docs/architecture.md
956
- architectureVersion: v4
957
- architectureSharded: true
958
- architectureShardedLocation: docs/architecture
959
- ```
960
-
961
- **V3 Monolithic Architecture:**
962
-
963
- ```yaml
964
- architecture:
965
- architectureFile: docs/technical-architecture.md
966
- architectureVersion: v3
967
- architectureSharded: false # All in one file
968
- ```
969
-
970
- ##### Developer Context Files
971
-
972
- Define which files the dev agent should always load:
973
-
974
- ```yaml
975
- devLoadAlwaysFiles:
976
- - docs/architecture/coding-standards.md
977
- - docs/architecture/tech-stack.md
978
- - docs/architecture/project-structure.md
979
- - docs/api-contracts.yaml
980
- - docs/database-schema.md
981
- - .env.example
982
- ```
983
-
984
- This ensures the dev agent always has critical context without needing to search for it.
985
-
986
- ##### Debug and Export Options
987
-
988
- **Debug Log:**
989
-
990
- ```yaml
991
- devDebugLog: .ai/debug-log.md
992
- ```
993
-
994
- When the dev agent encounters repeated failures implementing a story, it logs issues here to avoid repeating the same mistakes.
995
-
996
- **Core Dump:**
997
-
998
- ```yaml
999
- agentCoreDump: .ai/core-dump{n}.md
1000
- ```
1001
-
1002
- Export entire chat conversations for preservation or analysis. The `{n}` is replaced with a number.
1003
-
1004
- #### Common Configurations
1005
-
1006
- ##### Legacy V3 Project
1007
-
1008
- ```yaml
1009
- coreProjectLocation:
1010
- devStoryLocation: docs/stories
1011
- prd:
1012
- prdFile: docs/prd.md
1013
- prdVersion: v3
1014
- prdSharded: false
1015
- architecture:
1016
- architectureFile: docs/architecture.md
1017
- architectureVersion: v3
1018
- architectureSharded: false
1019
- devLoadAlwaysFiles: []
1020
- ```
1021
-
1022
- ##### Hybrid Project (V3 PRD, V4 Architecture)
1023
-
1024
- ```yaml
1025
- coreProjectLocation:
1026
- devStoryLocation: .ai/stories
1027
- prd:
1028
- prdFile: docs/product-requirements.md
1029
- prdVersion: v3
1030
- prdSharded: false
1031
- architecture:
1032
- architectureFile: docs/architecture.md
1033
- architectureVersion: v4
1034
- architectureSharded: true
1035
- architectureShardedLocation: docs/architecture
1036
- devLoadAlwaysFiles:
1037
- - docs/architecture/tech-stack.md
1038
- ```
1039
-
1040
- ##### Custom Organization
1041
-
1042
- ```yaml
1043
- coreProjectLocation:
1044
- devStoryLocation: development/completed-stories
1045
- prd:
1046
- prdFile: planning/requirements.md
1047
- prdVersion: v4
1048
- prdSharded: true
1049
- prdShardedLocation: planning/epics
1050
- epicFilePattern: requirement-{n}.md
1051
- architecture:
1052
- architectureFile: technical/system-design.md
1053
- architectureVersion: v4
1054
- architectureSharded: true
1055
- architectureShardedLocation: technical/components
1056
- customTechnicalDocuments:
1057
- - technical/api-guide.md
1058
- - technical/deployment.md
1059
- devLoadAlwaysFiles:
1060
- - technical/coding-guidelines.md
1061
- - technical/git-workflow.md
1062
- ```
1063
-
1064
- #### Migration Strategies
1065
-
1066
- ##### Gradual V3 to V4 Migration
1067
-
1068
- Start with V3 documents and gradually adopt V4 patterns:
1069
-
1070
- 1. **Initial State**: Set `prdVersion: v3` and `prdSharded: false`
1071
- 2. **Shard PRD**: Use PO agent to shard, then update to `prdSharded: true`
1072
- 3. **Update Version**: Change to `prdVersion: v4` after using V4 templates
1073
- 4. **Repeat for Architecture**: Same process for architecture documents
1074
-
1075
- ##### Working with Mixed Teams
1076
-
1077
- If some team members use V3 and others use V4:
1078
-
1079
- ```yaml
1080
- # Support both patterns
1081
- customTechnicalDocuments:
1082
- - docs/legacy-requirements.md # V3 format
1083
- - docs/prd.md # V4 format
1084
- ```
1085
-
1086
- #### Best Practices
1087
-
1088
- 1. **Always Configure for Your Structure**: Don't force your project to match BMad defaults
1089
- 2. **Keep devLoadAlwaysFiles Focused**: Only include files needed for every dev task
1090
- 3. **Use Debug Log**: Enable when troubleshooting story implementation issues
1091
- 4. **Version Control core-config.yaml**: Track changes to understand project evolution
1092
- 5. **Document Custom Patterns**: If using custom epicFilePattern, document it
1093
-
1094
- #### Troubleshooting
1095
-
1096
- **Scrum Master Can't Find Epics:**
1097
-
1098
- - Check `prdSharded` matches your structure
1099
- - Verify `prdShardedLocation` path exists
1100
- - Confirm `epicFilePattern` matches your files
1101
-
1102
- **Dev Agent Missing Context:**
1103
-
1104
- - Add critical files to `devLoadAlwaysFiles`
1105
- - Ensure file paths are correct
1106
- - Check files exist and are readable
1107
-
1108
- **Architecture Not Loading:**
1109
-
1110
- - Verify `architectureFile` path
1111
- - Check `architectureVersion` setting
1112
- - Confirm sharding configuration matches reality
1113
-
1114
- ### Extension Packs
1115
-
1116
- Add specialized capabilities:
1117
-
1118
- - **DevOps Pack**: CI/CD, deployment automation
1119
- - **Mobile Pack**: iOS/Android development
1120
- - **Data Pack**: Analytics, ML integration
1121
- - **Security Pack**: Security analysis, compliance
1122
-
1123
- ## Troubleshooting Guide
1124
-
1125
- ## Getting Help
1126
-
1127
- - **Discord Community**: [Join Discord](https://discord.gg/gk8jAdXWmj)
1128
- - **GitHub Issues**: [Report bugs](https://github.com/bmadcode/bmad-method/issues)
1129
- - **Documentation**: [Browse docs](https://github.com/bmadcode/bmad-method/tree/main/docs)
1130
- - **YouTube**: [BMadCode Channel](https://www.youtube.com/@BMadCode)
1131
-
1132
- ## Conclusion
1133
-
1134
- BMad-Method provides a comprehensive framework for AI-assisted software development. By following this guide, you'll be able to:
1135
-
1136
- - Effectively use specialized AI agents
1137
- - Create professional documentation
1138
- - Follow structured development workflows
1139
- - Integrate with your preferred tools
1140
- - Maintain high quality standards
1141
-
1142
- Remember: BMad is designed to enhance your development process, not replace your expertise. Use it as a powerful tool to accelerate your projects while maintaining control over design decisions and implementation details.