bmad-method 4.26.0 → 4.27.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 (55) hide show
  1. package/.vscode/settings.json +2 -0
  2. package/CHANGELOG.md +15 -0
  3. package/README.md +29 -282
  4. package/bmad-core/agents/analyst.md +3 -1
  5. package/bmad-core/agents/bmad-master.md +5 -1
  6. package/bmad-core/agents/bmad-orchestrator.md +1 -1
  7. package/bmad-core/core-config.yaml +1 -1
  8. package/bmad-core/data/bmad-kb.md +74 -15
  9. package/bmad-core/data/brainstorming-techniques.md +36 -0
  10. package/bmad-core/data/elicitation-methods.md +134 -0
  11. package/bmad-core/tasks/advanced-elicitation.md +82 -57
  12. package/bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
  13. package/bmad-core/templates/architecture-tmpl.md +23 -23
  14. package/bmad-core/templates/brainstorming-output-tmpl.md +149 -0
  15. package/bmad-core/templates/prd-tmpl.md +6 -6
  16. package/bmad-core/templates/prd-tmpl2.yaml +202 -0
  17. package/bmad-core/utils/plan-management.md +9 -13
  18. package/bmad-core/workflows/greenfield-service.yaml +1 -1
  19. package/common/tasks/create-doc.md +4 -4
  20. package/common/tasks/create-doc2.md +65 -0
  21. package/common/utils/bmad-doc-template.md +296 -0
  22. package/dist/agents/analyst.txt +481 -305
  23. package/dist/agents/architect.txt +60 -59
  24. package/dist/agents/bmad-master.txt +694 -399
  25. package/dist/agents/bmad-orchestrator.txt +197 -116
  26. package/dist/agents/dev.txt +18 -17
  27. package/dist/agents/pm.txt +47 -46
  28. package/dist/agents/po.txt +31 -30
  29. package/dist/agents/qa.txt +15 -14
  30. package/dist/agents/sm.txt +23 -22
  31. package/dist/agents/ux-expert.txt +29 -28
  32. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +33 -32
  33. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +19 -18
  34. package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +21 -20
  35. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +385 -297
  36. package/dist/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.txt +103 -77
  37. package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +29 -28
  38. package/dist/teams/team-all.txt +610 -438
  39. package/dist/teams/team-fullstack.txt +597 -425
  40. package/dist/teams/team-ide-minimal.txt +238 -157
  41. package/dist/teams/team-no-ui.txt +583 -411
  42. package/docs/agentic-tools/github-copilot-guide.md +29 -9
  43. package/docs/bmad-workflow-guide.md +2 -2
  44. package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
  45. package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +2 -2
  46. package/expansion-packs/bmad-creator-tools/config.yaml +1 -1
  47. package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
  48. package/package.json +1 -1
  49. package/tools/builders/web-builder.js +117 -22
  50. package/tools/installer/config/install.config.yaml +2 -2
  51. package/tools/installer/lib/ide-setup.js +2 -2
  52. package/tools/installer/package.json +1 -1
  53. package/tools/lib/dependency-resolver.js +3 -3
  54. package/tools/md-assets/web-agent-startup-instructions.md +10 -10
  55. package/bmad-core/tasks/brainstorming-techniques.md +0 -238
@@ -8,14 +8,14 @@ You are now operating as a specialized AI agent from the BMad-Method framework.
8
8
 
9
9
  2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
10
10
 
11
- - `==================== START: folder#filename ====================`
12
- - `==================== END: folder#filename ====================`
11
+ - `==================== START: .bmad-core/folder/filename.md ====================`
12
+ - `==================== END: .bmad-core/folder/filename.md ====================`
13
13
 
14
14
  When you need to reference a resource mentioned in your instructions:
15
15
 
16
16
  - Look for the corresponding START/END tags
17
- - The format is always `folder#filename` (e.g., `personas#analyst`, `tasks#create-story`)
18
- - If a section is specified (e.g., `tasks#create-story#section-name`), navigate to that section within the file
17
+ - The format is always the full path with dot prefix (e.g., `.bmad-core/personas/analyst.md`, `.bmad-core/tasks/create-story.md`)
18
+ - If a section is specified (e.g., `{root}/tasks/create-story.md#section-name`), navigate to that section within the file
19
19
 
20
20
  **Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
21
21
 
@@ -29,8 +29,8 @@ dependencies:
29
29
 
30
30
  These references map directly to bundle sections:
31
31
 
32
- - `utils: template-format` → Look for `==================== START: utils#template-format ====================`
33
- - `tasks: create-story` → Look for `==================== START: tasks#create-story ====================`
32
+ - `utils: template-format` → Look for `==================== START: .bmad-core/utils/template-format.md ====================`
33
+ - `tasks: create-story` → Look for `==================== START: .bmad-core/tasks/create-story.md ====================`
34
34
 
35
35
  3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
36
36
 
@@ -38,7 +38,8 @@ These references map directly to bundle sections:
38
38
 
39
39
  ---
40
40
 
41
- ==================== START: agent-teams#team-ide-minimal ====================
41
+
42
+ ==================== START: .bmad-core/agent-teams/team-ide-minimal.yaml ====================
42
43
  bundle:
43
44
  name: Team IDE Minimal
44
45
  icon: ⚡
@@ -49,9 +50,9 @@ agents:
49
50
  - dev
50
51
  - qa
51
52
  workflows: null
52
- ==================== END: agent-teams#team-ide-minimal ====================
53
+ ==================== END: .bmad-core/agent-teams/team-ide-minimal.yaml ====================
53
54
 
54
- ==================== START: agents#bmad-orchestrator ====================
55
+ ==================== START: .bmad-core/agents/bmad-orchestrator.md ====================
55
56
  # bmad-orchestrator
56
57
 
57
58
  CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
@@ -82,7 +83,7 @@ startup:
82
83
  - Announce: Introduce yourself as the BMad Orchestrator, explain you can coordinate agents and workflows
83
84
  - IMPORTANT: Tell users that all commands start with * (e.g., *help, *agent, *workflow)
84
85
  - Mention *help shows all available commands and options
85
- - Check for active workflow plan using utils#plan-management
86
+ - Check for active workflow plan using .bmad-core/utils/plan-management.md
86
87
  - 'If plan exists: Show 📋 Active plan: {workflow} ({progress}% complete). Use *plan-status for details.'
87
88
  - 'If plan exists: Suggest next action based on plan progress'
88
89
  - Assess user goal against available agents and workflows in this bundle
@@ -188,9 +189,9 @@ dependencies:
188
189
  - workflow-management
189
190
  - template-format
190
191
  ```
191
- ==================== END: agents#bmad-orchestrator ====================
192
+ ==================== END: .bmad-core/agents/bmad-orchestrator.md ====================
192
193
 
193
- ==================== START: agents#po ====================
194
+ ==================== START: .bmad-core/agents/po.md ====================
194
195
  # po
195
196
 
196
197
  CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
@@ -254,9 +255,9 @@ dependencies:
254
255
  utils:
255
256
  - template-format
256
257
  ```
257
- ==================== END: agents#po ====================
258
+ ==================== END: .bmad-core/agents/po.md ====================
258
259
 
259
- ==================== START: agents#sm ====================
260
+ ==================== START: .bmad-core/agents/sm.md ====================
260
261
  # sm
261
262
 
262
263
  CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
@@ -304,9 +305,9 @@ dependencies:
304
305
  utils:
305
306
  - template-format
306
307
  ```
307
- ==================== END: agents#sm ====================
308
+ ==================== END: .bmad-core/agents/sm.md ====================
308
309
 
309
- ==================== START: agents#dev ====================
310
+ ==================== START: .bmad-core/agents/dev.md ====================
310
311
  # dev
311
312
 
312
313
  CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
@@ -321,7 +322,7 @@ agent:
321
322
  customization: null
322
323
  startup:
323
324
  - Announce: Greet the user with your name and role, and inform of the *help command.
324
- - CRITICAL: Read the following full files as these are your explicit rules for development standards for this project - {root}/core-config.yaml devLoadAlwaysFiles list
325
+ - CRITICAL: Read the following full files as these are your explicit rules for development standards for this project - .bmad-core/core-config.yaml devLoadAlwaysFiles list
325
326
  - CRITICAL: Do NOT load any other files during startup aside from the assigned story and devLoadAlwaysFiles items, unless user requested you do or the following contradicts
326
327
  - CRITICAL: Do NOT begin development until a story is not in draft mode and you are told to proceed
327
328
  persona:
@@ -355,9 +356,9 @@ dependencies:
355
356
  checklists:
356
357
  - story-dod-checklist
357
358
  ```
358
- ==================== END: agents#dev ====================
359
+ ==================== END: .bmad-core/agents/dev.md ====================
359
360
 
360
- ==================== START: agents#qa ====================
361
+ ==================== START: .bmad-core/agents/qa.md ====================
361
362
  # qa
362
363
 
363
364
  CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
@@ -410,9 +411,9 @@ dependencies:
410
411
  utils:
411
412
  - template-format
412
413
  ```
413
- ==================== END: agents#qa ====================
414
+ ==================== END: .bmad-core/agents/qa.md ====================
414
415
 
415
- ==================== START: tasks#advanced-elicitation ====================
416
+ ==================== START: .bmad-core/tasks/advanced-elicitation.md ====================
416
417
  # Advanced Elicitation Task
417
418
 
418
419
  ## Purpose
@@ -420,94 +421,119 @@ dependencies:
420
421
  - Provide optional reflective and brainstorming actions to enhance content quality
421
422
  - Enable deeper exploration of ideas through structured elicitation techniques
422
423
  - Support iterative refinement through multiple analytical perspectives
424
+ - Usable during template-driven document creation or any chat conversation
423
425
 
424
- ## Task Instructions
426
+ ## Usage Scenarios
425
427
 
426
- ### 1. Section Context and Review
428
+ ### Scenario 1: Template Document Creation
427
429
 
428
- [[LLM: When invoked after outputting a section:
430
+ After outputting a section during document creation:
429
431
 
430
- 1. First, provide a brief 1-2 sentence summary of what the user should look for in the section just presented (e.g., "Please review the technology choices for completeness and alignment with your project needs. Pay special attention to version numbers and any missing categories.")
432
+ 1. **Section Review**: Ask user to review the drafted section
433
+ 2. **Offer Elicitation**: Present 9 carefully selected elicitation methods
434
+ 3. **Simple Selection**: User types a number (0-8) to engage method, or 9 to proceed
435
+ 4. **Execute & Loop**: Apply selected method, then re-offer choices until user proceeds
431
436
 
432
- 2. If the section contains Mermaid diagrams, explain each diagram briefly before offering elicitation options (e.g., "The component diagram shows the main system modules and their interactions. Notice how the API Gateway routes requests to different services.")
437
+ ### Scenario 2: General Chat Elicitation
433
438
 
434
- 3. If the section contains multiple distinct items (like multiple components, multiple patterns, etc.), inform the user they can apply elicitation actions to:
439
+ User can request advanced elicitation on any agent output:
435
440
 
436
- - The entire section as a whole
437
- - Individual items within the section (specify which item when selecting an action)
441
+ - User says "do advanced elicitation" or similar
442
+ - Agent selects 9 relevant methods for the context
443
+ - Same simple 0-9 selection process
438
444
 
439
- 4. Then present the action list as specified below.]]
445
+ ## Task Instructions
440
446
 
441
- ### 2. Ask for Review and Present Action List
447
+ ### 1. Intelligent Method Selection
442
448
 
443
- [[LLM: Ask the user to review the drafted section. In the SAME message, inform them that they can suggest additions, removals, or modifications, OR they can select an action by number from the 'Advanced Reflective, Elicitation & Brainstorming Actions'. If there are multiple items in the section, mention they can specify which item(s) to apply the action to. Then, present ONLY the numbered list (0-9) of these actions. Conclude by stating that selecting 9 will proceed to the next section. Await user selection. If an elicitation action (0-8) is chosen, execute it and then re-offer this combined review/elicitation choice. If option 9 is chosen, or if the user provides direct feedback, proceed accordingly.]]
449
+ **Context Analysis**: Before presenting options, analyze:
444
450
 
445
- **Present the numbered list (0-9) with this exact format:**
451
+ - **Content Type**: Technical specs, user stories, architecture, requirements, etc.
452
+ - **Complexity Level**: Simple, moderate, or complex content
453
+ - **Stakeholder Needs**: Who will use this information
454
+ - **Risk Level**: High-impact decisions vs routine items
455
+ - **Creative Potential**: Opportunities for innovation or alternatives
446
456
 
447
- ```text
448
- **Advanced Reflective, Elicitation & Brainstorming Actions**
449
- Choose an action (0-9 - 9 to bypass - HELP for explanation of these options):
450
-
451
- 0. Expand or Contract for Audience
452
- 1. Explain Reasoning (CoT Step-by-Step)
453
- 2. Critique and Refine
454
- 3. Analyze Logical Flow and Dependencies
455
- 4. Assess Alignment with Overall Goals
456
- 5. Identify Potential Risks and Unforeseen Issues
457
- 6. Challenge from Critical Perspective (Self or Other Persona)
458
- 7. Explore Diverse Alternatives (ToT-Inspired)
459
- 8. Hindsight is 20/20: The 'If Only...' Reflection
460
- 9. Proceed / No Further Actions
461
- ```
457
+ **Method Selection Strategy**:
462
458
 
463
- ### 2. Processing Guidelines
459
+ 1. **Always Include Core Methods** (choose 3-4):
460
+ - Expand or Contract for Audience
461
+ - Critique and Refine
462
+ - Identify Potential Risks
463
+ - Assess Alignment with Goals
464
464
 
465
- **Do NOT show:**
465
+ 2. **Context-Specific Methods** (choose 4-5):
466
+ - **Technical Content**: Tree of Thoughts, ReWOO, Meta-Prompting
467
+ - **User-Facing Content**: Agile Team Perspective, Stakeholder Roundtable
468
+ - **Creative Content**: Innovation Tournament, Escape Room Challenge
469
+ - **Strategic Content**: Red Team vs Blue Team, Hindsight Reflection
466
470
 
467
- - The full protocol text with `[[LLM: ...]]` instructions
468
- - Detailed explanations of each option unless executing or the user asks, when giving the definition you can modify to tie its relevance
469
- - Any internal template markup
471
+ 3. **Always Include**: "Proceed / No Further Actions" as option 9
470
472
 
471
- **After user selection from the list:**
473
+ ### 2. Section Context and Review
472
474
 
473
- - Execute the chosen action according to the protocol instructions below
474
- - Ask if they want to select another action or proceed with option 9 once complete
475
- - Continue until user selects option 9 or indicates completion
475
+ When invoked after outputting a section:
476
476
 
477
- ## Action Definitions
477
+ 1. **Provide Context Summary**: Give a brief 1-2 sentence summary of what the user should look for in the section just presented
478
478
 
479
- 0. Expand or Contract for Audience
480
- [[LLM: Ask the user whether they want to 'expand' on the content (add more detail, elaborate) or 'contract' it (simplify, clarify, make more concise). Also, ask if there's a specific target audience they have in mind. Once clarified, perform the expansion or contraction from your current role's perspective, tailored to the specified audience if provided.]]
479
+ 2. **Explain Visual Elements**: If the section contains diagrams, explain them briefly before offering elicitation options
481
480
 
482
- 1. Explain Reasoning (CoT Step-by-Step)
483
- [[LLM: Explain the step-by-step thinking process, characteristic of your role, that you used to arrive at the current proposal for this content.]]
481
+ 3. **Clarify Scope Options**: If the section contains multiple distinct items, inform the user they can apply elicitation actions to:
482
+ - The entire section as a whole
483
+ - Individual items within the section (specify which item when selecting an action)
484
484
 
485
- 2. Critique and Refine
486
- [[LLM: From your current role's perspective, review your last output or the current section for flaws, inconsistencies, or areas for improvement, and then suggest a refined version reflecting your expertise.]]
485
+ ### 3. Present Elicitation Options
487
486
 
488
- 3. Analyze Logical Flow and Dependencies
489
- [[LLM: From your role's standpoint, examine the content's structure for logical progression, internal consistency, and any relevant dependencies. Confirm if elements are presented in an effective order.]]
487
+ **Review Request Process:**
490
488
 
491
- 4. Assess Alignment with Overall Goals
492
- [[LLM: Evaluate how well the current content contributes to the stated overall goals of the document, interpreting this from your specific role's perspective and identifying any misalignments you perceive.]]
489
+ - Ask the user to review the drafted section
490
+ - In the SAME message, inform them they can suggest direct changes OR select an elicitation method
491
+ - Present 9 intelligently selected methods (0-8) plus "Proceed" (9)
492
+ - Keep descriptions short - just the method name
493
+ - Await simple numeric selection
493
494
 
494
- 5. Identify Potential Risks and Unforeseen Issues
495
- [[LLM: Based on your role's expertise, brainstorm potential risks, overlooked edge cases, or unintended consequences related to the current content or proposal.]]
495
+ **Action List Presentation Format:**
496
496
 
497
- 6. Challenge from Critical Perspective (Self or Other Persona)
498
- [[LLM: Adopt a critical perspective on the current content. If the user specifies another role or persona (e.g., 'as a customer', 'as [Another Persona Name]'), critique the content or play devil's advocate from that specified viewpoint. If no other role is specified, play devil's advocate from your own current persona's viewpoint, arguing against the proposal or current content and highlighting weaknesses or counterarguments specific to your concerns. This can also randomly include YAGNI when appropriate, such as when trimming the scope of an MVP, the perspective might challenge the need for something to cut MVP scope.]]
497
+ ```text
498
+ **Advanced Elicitation Options**
499
+ Choose a number (0-8) or 9 to proceed:
500
+
501
+ 0. [Method Name]
502
+ 1. [Method Name]
503
+ 2. [Method Name]
504
+ 3. [Method Name]
505
+ 4. [Method Name]
506
+ 5. [Method Name]
507
+ 6. [Method Name]
508
+ 7. [Method Name]
509
+ 8. [Method Name]
510
+ 9. Proceed / No Further Actions
511
+ ```
499
512
 
500
- 7. Explore Diverse Alternatives (ToT-Inspired)
501
- [[LLM: From your role's perspective, first broadly brainstorm a range of diverse approaches or solutions to the current topic. Then, from this wider exploration, select and present 2 distinct alternatives, detailing the pros, cons, and potential implications you foresee for each.]]
513
+ **Response Handling:**
502
514
 
503
- 8. Hindsight is 20/20: The 'If Only...' Reflection
504
- [[LLM: In your current persona, imagine it's a retrospective for a project based on the current content. What's the one 'if only we had known/done X...' that your role would humorously or dramatically highlight, along with the imagined consequences?]]
515
+ - **Numbers 0-8**: Execute the selected method, then re-offer the choice
516
+ - **Number 9**: Proceed to next section or continue conversation
517
+ - **Direct Feedback**: Apply user's suggested changes and continue
505
518
 
506
- 9. Proceed / No Further Actions
507
- [[LLM: Acknowledge the user's choice to finalize the current work, accept the AI's last output as is, or move on to the next step without selecting another action from this list. Prepare to proceed accordingly.]]
508
- ==================== END: tasks#advanced-elicitation ====================
519
+ ### 4. Method Execution Framework
520
+
521
+ **Execution Process:**
522
+
523
+ 1. **Retrieve Method**: Access the specific elicitation method from the elicitation-methods data file
524
+ 2. **Apply Context**: Execute the method from your current role's perspective
525
+ 3. **Provide Results**: Deliver insights, critiques, or alternatives relevant to the content
526
+ 4. **Re-offer Choice**: Present the same 9 options again until user selects 9 or gives direct feedback
509
527
 
510
- ==================== START: tasks#create-doc ====================
528
+ **Execution Guidelines:**
529
+
530
+ - **Be Concise**: Focus on actionable insights, not lengthy explanations
531
+ - **Stay Relevant**: Tie all elicitation back to the specific content being analyzed
532
+ - **Identify Personas**: For multi-persona methods, clearly identify which viewpoint is speaking
533
+ - **Maintain Flow**: Keep the process moving efficiently
534
+ ==================== END: .bmad-core/tasks/advanced-elicitation.md ====================
535
+
536
+ ==================== START: .bmad-core/tasks/create-doc.md ====================
511
537
  # Create Document from Template Task
512
538
 
513
539
  ## Purpose
@@ -527,7 +553,7 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
527
553
 
528
554
  [[LLM: Check if plan tracking is enabled in core-config.yaml]]
529
555
 
530
- - If `workflow.trackProgress: true`, check for active plan using utils#plan-management
556
+ - If `workflow.trackProgress: true`, check for active plan using .bmad-core/utils/plan-management.md
531
557
  - If plan exists and this document creation is part of the plan:
532
558
  - Verify this is the expected next step
533
559
  - If out of sequence and `enforceSequence: true`, warn user and halt without user override
@@ -536,7 +562,7 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
536
562
 
537
563
  ### 1. Identify Template
538
564
 
539
- - Load from `templates#*` or `{root}/templates directory`
565
+ - Load from `.bmad-core/templates/*.md` or `.bmad-core/templates directory`
540
566
  - Agent-specific templates are listed in agent's dependencies
541
567
  - If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
542
568
 
@@ -554,14 +580,14 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
554
580
 
555
581
  ### 4. Key Execution Patterns
556
582
 
557
- **When you see:** `[[LLM: Draft X and immediately execute tasks#advanced-elicitation]]`
583
+ **When you see:** `[[LLM: Draft X and immediately execute .bmad-core/tasks/advanced-elicitation.md]]`
558
584
 
559
585
  - Draft the content
560
586
  - Present it to user
561
587
  - IMMEDIATELY execute the task
562
588
  - Wait for completion before continuing
563
589
 
564
- **When you see:** `[[LLM: After section completion, apply tasks#Y]]`
590
+ **When you see:** `[[LLM: After section completion, apply .bmad-core/tasks/Y.md]]`
565
591
 
566
592
  - Finish the section
567
593
  - STOP and execute the task
@@ -599,9 +625,9 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
599
625
  ## Remember
600
626
 
601
627
  Templates contain precise instructions for a reason. Follow them exactly to ensure document quality and completeness.
602
- ==================== END: tasks#create-doc ====================
628
+ ==================== END: .bmad-core/tasks/create-doc.md ====================
603
629
 
604
- ==================== START: tasks#create-workflow-plan ====================
630
+ ==================== START: .bmad-core/tasks/create-workflow-plan.md ====================
605
631
  # Create Workflow Plan Task
606
632
 
607
633
  ## Purpose
@@ -891,9 +917,9 @@ BMad Orchestrator: "Based on your answers, I recommend the brownfield-fullstack
891
917
 
892
918
  BMad Orchestrator: "I've created a workflow plan at docs/workflow-plan.md. This shows all the steps we'll go through, what documents will be created, and where you'll need to make decisions. Would you like to review it together?"
893
919
  ```
894
- ==================== END: tasks#create-workflow-plan ====================
920
+ ==================== END: .bmad-core/tasks/create-workflow-plan.md ====================
895
921
 
896
- ==================== START: tasks#kb-mode-interaction ====================
922
+ ==================== START: .bmad-core/tasks/kb-mode-interaction.md ====================
897
923
  # KB Mode Interaction Task
898
924
 
899
925
  ## Purpose
@@ -964,9 +990,9 @@ Or ask me about anything else related to BMad-Method!
964
990
  **User**: Tell me about workflows
965
991
 
966
992
  **Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics]
967
- ==================== END: tasks#kb-mode-interaction ====================
993
+ ==================== END: .bmad-core/tasks/kb-mode-interaction.md ====================
968
994
 
969
- ==================== START: tasks#update-workflow-plan ====================
995
+ ==================== START: .bmad-core/tasks/update-workflow-plan.md ====================
970
996
  # Update Workflow Plan Task
971
997
 
972
998
  ## Purpose
@@ -1215,9 +1241,9 @@ The update is successful when:
1215
1241
  - Consider creating backup before major updates
1216
1242
  - Updates should enhance, not complicate, the workflow experience
1217
1243
  - If plan becomes too cluttered, suggest creating fresh plan for next phase
1218
- ==================== END: tasks#update-workflow-plan ====================
1244
+ ==================== END: .bmad-core/tasks/update-workflow-plan.md ====================
1219
1245
 
1220
- ==================== START: data#bmad-kb ====================
1246
+ ==================== START: .bmad-core/data/bmad-kb.md ====================
1221
1247
  # BMad Knowledge Base
1222
1248
 
1223
1249
  ## Overview
@@ -1253,13 +1279,15 @@ BMad transforms you into a "Vibe CEO" - directing a team of specialized AI agent
1253
1279
 
1254
1280
  ### The Two-Phase Approach
1255
1281
 
1256
- **Phase 1: Planning (Web UI - Cost Effective)**
1282
+ #### Phase 1: Planning (Web UI - Cost Effective)
1283
+
1257
1284
  - Use large context windows (Gemini's 1M tokens)
1258
1285
  - Generate comprehensive documents (PRD, Architecture)
1259
1286
  - Leverage multiple agents for brainstorming
1260
1287
  - Create once, use throughout development
1261
1288
 
1262
- **Phase 2: Development (IDE - Implementation)**
1289
+ #### Phase 2: Development (IDE - Implementation)
1290
+
1263
1291
  - Shard documents into manageable pieces
1264
1292
  - Execute focused SM → Dev cycles
1265
1293
  - One story at a time, sequential progress
@@ -1289,6 +1317,7 @@ BMad transforms you into a "Vibe CEO" - directing a team of specialized AI agent
1289
1317
  ### Quick Start Options
1290
1318
 
1291
1319
  #### Option 1: Web UI
1320
+
1292
1321
  **Best for**: ChatGPT, Claude, Gemini users who want to start immediately
1293
1322
 
1294
1323
  1. Navigate to `dist/teams/`
@@ -1298,6 +1327,7 @@ BMad transforms you into a "Vibe CEO" - directing a team of specialized AI agent
1298
1327
  5. Type `/help` to see available commands
1299
1328
 
1300
1329
  #### Option 2: IDE Integration
1330
+
1301
1331
  **Best for**: Cursor, Claude Code, Windsurf, Trae, Cline, Roo Code, Github Copilot users
1302
1332
 
1303
1333
  ```bash
@@ -1306,6 +1336,7 @@ npx bmad-method install
1306
1336
  ```
1307
1337
 
1308
1338
  **Installation Steps**:
1339
+
1309
1340
  - Choose "Complete installation"
1310
1341
  - Select your IDE from supported options:
1311
1342
  - **Cursor**: Native AI integration
@@ -1314,11 +1345,12 @@ npx bmad-method install
1314
1345
  - **Trae**: Built-in AI capabilities
1315
1346
  - **Cline**: VS Code extension with AI features
1316
1347
  - **Roo Code**: Web-based IDE with agent support
1317
- - **Github Copilot**: AI-powered coding assistant
1348
+ - **GitHub Copilot**: VS Code extension with AI peer programming assistant
1318
1349
 
1319
1350
  **Note for VS Code Users**: BMad-Method assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
1320
1351
 
1321
1352
  **Verify Installation**:
1353
+
1322
1354
  - `.bmad-core/` folder created with all agents
1323
1355
  - IDE-specific integration files created
1324
1356
  - All agent commands/rules/modes available
@@ -1328,12 +1360,14 @@ npx bmad-method install
1328
1360
  ### Environment Selection Guide
1329
1361
 
1330
1362
  **Use Web UI for**:
1363
+
1331
1364
  - Initial planning and documentation (PRD, architecture)
1332
1365
  - Cost-effective document creation (especially with Gemini)
1333
1366
  - Brainstorming and analysis phases
1334
1367
  - Multi-agent consultation and planning
1335
1368
 
1336
1369
  **Use IDE for**:
1370
+
1337
1371
  - Active development and coding
1338
1372
  - File operations and project integration
1339
1373
  - Document sharding and story management
@@ -1346,35 +1380,41 @@ npx bmad-method install
1346
1380
  **Can you do everything in IDE?** Yes, but understand the tradeoffs:
1347
1381
 
1348
1382
  **Pros of IDE-Only**:
1383
+
1349
1384
  - Single environment workflow
1350
1385
  - Direct file operations from start
1351
1386
  - No copy/paste between environments
1352
1387
  - Immediate project integration
1353
1388
 
1354
1389
  **Cons of IDE-Only**:
1390
+
1355
1391
  - Higher token costs for large document creation
1356
1392
  - Smaller context windows (varies by IDE/model)
1357
1393
  - May hit limits during planning phases
1358
1394
  - Less cost-effective for brainstorming
1359
1395
 
1360
1396
  **Using Web Agents in IDE**:
1397
+
1361
1398
  - **NOT RECOMMENDED**: Web agents (PM, Architect) have rich dependencies designed for large contexts
1362
1399
  - **Why it matters**: Dev agents are kept lean to maximize coding context
1363
1400
  - **The principle**: "Dev agents code, planning agents plan" - mixing breaks this optimization
1364
1401
 
1365
1402
  **About bmad-master and bmad-orchestrator**:
1403
+
1366
1404
  - **bmad-master**: CAN do any task without switching agents, BUT...
1367
1405
  - **Still use specialized agents for planning**: PM, Architect, and UX Expert have tuned personas that produce better results
1368
1406
  - **Why specialization matters**: Each agent's personality and focus creates higher quality outputs
1369
1407
  - **If using bmad-master/orchestrator**: Fine for planning phases, but...
1370
1408
 
1371
1409
  **CRITICAL RULE for Development**:
1410
+
1372
1411
  - **ALWAYS use SM agent for story creation** - Never use bmad-master/orchestrator
1373
1412
  - **ALWAYS use Dev agent for implementation** - Never use bmad-master/orchestrator
1374
1413
  - **Why this matters**: SM and Dev agents are specifically optimized for the development workflow
1375
1414
  - **No exceptions**: Even if using bmad-master for everything else, switch to SM → Dev for implementation
1376
1415
 
1377
1416
  **Best Practice for IDE-Only**:
1417
+
1378
1418
  1. Use PM/Architect/UX agents for planning (better than bmad-master)
1379
1419
  2. Create documents directly in project
1380
1420
  3. Shard immediately after creation
@@ -1398,17 +1438,20 @@ This configuration file acts as a map for BMad agents, telling them exactly wher
1398
1438
  ### Key Configuration Areas
1399
1439
 
1400
1440
  #### PRD Configuration
1441
+
1401
1442
  - **prdVersion**: Tells agents if PRD follows v3 or v4 conventions
1402
1443
  - **prdSharded**: Whether epics are embedded (false) or in separate files (true)
1403
1444
  - **prdShardedLocation**: Where to find sharded epic files
1404
1445
  - **epicFilePattern**: Pattern for epic filenames (e.g., `epic-{n}*.md`)
1405
1446
 
1406
1447
  #### Architecture Configuration
1448
+
1407
1449
  - **architectureVersion**: v3 (monolithic) or v4 (sharded)
1408
1450
  - **architectureSharded**: Whether architecture is split into components
1409
1451
  - **architectureShardedLocation**: Where sharded architecture files live
1410
1452
 
1411
1453
  #### Developer Files
1454
+
1412
1455
  - **devLoadAlwaysFiles**: List of files the dev agent loads for every task
1413
1456
  - **devDebugLog**: Where dev agent logs repeated failures
1414
1457
  - **agentCoreDump**: Export location for chat conversations
@@ -1423,6 +1466,7 @@ This configuration file acts as a map for BMad agents, telling them exactly wher
1423
1466
  ### Common Configurations
1424
1467
 
1425
1468
  **Legacy V3 Project**:
1469
+
1426
1470
  ```yaml
1427
1471
  prdVersion: v3
1428
1472
  prdSharded: false
@@ -1431,6 +1475,7 @@ architectureSharded: false
1431
1475
  ```
1432
1476
 
1433
1477
  **V4 Optimized Project**:
1478
+
1434
1479
  ```yaml
1435
1480
  prdVersion: v4
1436
1481
  prdSharded: true
@@ -1496,18 +1541,21 @@ You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a sing
1496
1541
  #### IDE-Specific Syntax
1497
1542
 
1498
1543
  **Agent Loading by IDE**:
1544
+
1499
1545
  - **Claude Code**: `/agent-name` (e.g., `/bmad-master`)
1500
1546
  - **Cursor**: `@agent-name` (e.g., `@bmad-master`)
1501
1547
  - **Windsurf**: `@agent-name` (e.g., `@bmad-master`)
1502
1548
  - **Trae**: `@agent-name` (e.g., `@bmad-master`)
1503
1549
  - **Roo Code**: Select mode from mode selector (e.g., `bmad-bmad-master`)
1504
- - **Github Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select **Agent** from the chat mode selector.
1550
+ - **GitHub Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select **Agent** from the chat mode selector.
1505
1551
 
1506
1552
  **Chat Management Guidelines**:
1553
+
1507
1554
  - **Claude Code, Cursor, Windsurf, Trae**: Start new chats when switching agents
1508
1555
  - **Roo Code**: Switch modes within the same conversation
1509
1556
 
1510
1557
  **Common Task Commands**:
1558
+
1511
1559
  - `*help` - Show available commands
1512
1560
  - `*status` - Show current context/progress
1513
1561
  - `*exit` - Exit the agent mode
@@ -1516,6 +1564,7 @@ You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a sing
1516
1564
  - `*create` - Run create-next-story task (SM agent)
1517
1565
 
1518
1566
  **In Web UI**:
1567
+
1519
1568
  ```text
1520
1569
  /pm create-doc prd
1521
1570
  /architect review system design
@@ -1529,16 +1578,19 @@ You are the "Vibe CEO" - thinking like a CEO with unlimited resources and a sing
1529
1578
  ### Pre-Built Teams
1530
1579
 
1531
1580
  #### Team All
1581
+
1532
1582
  - **Includes**: All 10 agents + orchestrator
1533
1583
  - **Use Case**: Complete projects requiring all roles
1534
1584
  - **Bundle**: `team-all.txt`
1535
1585
 
1536
1586
  #### Team Fullstack
1587
+
1537
1588
  - **Includes**: PM, Architect, Developer, QA, UX Expert
1538
1589
  - **Use Case**: End-to-end web/mobile development
1539
1590
  - **Bundle**: `team-fullstack.txt`
1540
1591
 
1541
1592
  #### Team No-UI
1593
+
1542
1594
  - **Includes**: PM, Architect, Developer, QA (no UX Expert)
1543
1595
  - **Use Case**: Backend services, APIs, system development
1544
1596
  - **Bundle**: `team-no-ui.txt`
@@ -1552,22 +1604,26 @@ The BMad-Method is built around a modular architecture centered on the `bmad-cor
1552
1604
  ### Key Architectural Components
1553
1605
 
1554
1606
  #### 1. Agents (`bmad-core/agents/`)
1607
+
1555
1608
  - **Purpose**: Each markdown file defines a specialized AI agent for a specific Agile role (PM, Dev, Architect, etc.)
1556
1609
  - **Structure**: Contains YAML headers specifying the agent's persona, capabilities, and dependencies
1557
1610
  - **Dependencies**: Lists of tasks, templates, checklists, and data files the agent can use
1558
1611
  - **Startup Instructions**: Can load project-specific documentation for immediate context
1559
1612
 
1560
1613
  #### 2. Agent Teams (`bmad-core/agent-teams/`)
1614
+
1561
1615
  - **Purpose**: Define collections of agents bundled together for specific purposes
1562
1616
  - **Examples**: `team-all.yaml` (comprehensive bundle), `team-fullstack.yaml` (full-stack development)
1563
1617
  - **Usage**: Creates pre-packaged contexts for web UI environments
1564
1618
 
1565
1619
  #### 3. Workflows (`bmad-core/workflows/`)
1620
+
1566
1621
  - **Purpose**: YAML files defining prescribed sequences of steps for specific project types
1567
1622
  - **Types**: Greenfield (new projects) and Brownfield (existing projects) for UI, service, and fullstack development
1568
1623
  - **Structure**: Defines agent interactions, artifacts created, and transition conditions
1569
1624
 
1570
1625
  #### 4. Reusable Resources
1626
+
1571
1627
  - **Templates** (`bmad-core/templates/`): Markdown templates for PRDs, architecture specs, user stories
1572
1628
  - **Tasks** (`bmad-core/tasks/`): Instructions for specific repeatable actions like "shard-doc" or "create-next-story"
1573
1629
  - **Checklists** (`bmad-core/checklists/`): Quality assurance checklists for validation and review
@@ -1607,6 +1663,7 @@ BMad employs a sophisticated template system with three key components:
1607
1663
  ### Technical Preferences Integration
1608
1664
 
1609
1665
  The `technical-preferences.md` file serves as a persistent technical profile that:
1666
+
1610
1667
  - Ensures consistency across all agents and projects
1611
1668
  - Eliminates repetitive technology specification
1612
1669
  - Provides personalized recommendations aligned with user preferences
@@ -1615,6 +1672,7 @@ The `technical-preferences.md` file serves as a persistent technical profile tha
1615
1672
  ### Build and Delivery Process
1616
1673
 
1617
1674
  The `web-builder.js` tool creates web-ready bundles by:
1675
+
1618
1676
  1. Reading agent or team definition files
1619
1677
  2. Recursively resolving all dependencies
1620
1678
  3. Concatenating content into single text files with clear separators
@@ -1629,11 +1687,13 @@ This architecture enables seamless operation across environments while maintaini
1629
1687
  **Ideal for cost efficiency with Gemini's massive context:**
1630
1688
 
1631
1689
  **For Brownfield Projects - Start Here!**:
1690
+
1632
1691
  1. **Upload entire project to Gemini Web** (GitHub URL, files, or zip)
1633
1692
  2. **Document existing system**: `/analyst` → `*document-project`
1634
1693
  3. **Creates comprehensive docs** from entire codebase analysis
1635
1694
 
1636
1695
  **For All Projects**:
1696
+
1637
1697
  1. **Optional Analysis**: `/analyst` - Market research, competitive analysis
1638
1698
  2. **Project Brief**: Create foundation document (Analyst or user)
1639
1699
  3. **PRD Creation**: `/pm create-doc prd` - Comprehensive product requirements
@@ -1644,12 +1704,14 @@ This architecture enables seamless operation across environments while maintaini
1644
1704
  #### Example Planning Prompts
1645
1705
 
1646
1706
  **For PRD Creation**:
1707
+
1647
1708
  ```text
1648
1709
  "I want to build a [type] application that [core purpose].
1649
1710
  Help me brainstorm features and create a comprehensive PRD."
1650
1711
  ```
1651
1712
 
1652
1713
  **For Architecture Design**:
1714
+
1653
1715
  ```text
1654
1716
  "Based on this PRD, design a scalable technical architecture
1655
1717
  that can handle [specific requirements]."
@@ -1667,7 +1729,7 @@ that can handle [specific requirements]."
1667
1729
 
1668
1730
  **Prerequisites**: Planning documents must exist in `docs/` folder
1669
1731
 
1670
- 1. **Document Sharding** (CRITICAL STEP):
1732
+ 1. **Document Sharding** (CRITICAL STEP):
1671
1733
  - Documents created by PM/Architect (in Web or IDE) MUST be sharded for development
1672
1734
  - Two methods to shard:
1673
1735
  a) **Manual**: Drag `shard-doc` task + document file into chat
@@ -1681,32 +1743,33 @@ that can handle [specific requirements]."
1681
1743
  - Source tree document and coding standards for dev agent reference
1682
1744
  - Sharded docs for SM agent story creation
1683
1745
 
1684
- **Resulting Folder Structure**:
1746
+ Resulting Folder Structure:
1747
+
1685
1748
  - `docs/prd/` - Broken down PRD sections
1686
1749
  - `docs/architecture/` - Broken down architecture sections
1687
1750
  - `docs/stories/` - Generated user stories
1688
1751
 
1689
- 3. **Development Cycle** (Sequential, one story at a time):
1752
+ 1. **Development Cycle** (Sequential, one story at a time):
1690
1753
 
1691
1754
  **CRITICAL CONTEXT MANAGEMENT**:
1692
1755
  - **Context windows matter!** Always use fresh, clean context windows
1693
1756
  - **Model selection matters!** Use most powerful thinking model for SM story creation
1694
1757
  - **ALWAYS start new chat between SM, Dev, and QA work**
1695
1758
 
1696
- **Step 1 - Story Creation**:
1759
+ **Step 1 - Story Creation**:
1697
1760
  - **NEW CLEAN CHAT** → Select powerful model → `@sm` → `*create`
1698
1761
  - SM executes create-next-story task
1699
1762
  - Review generated story in `docs/stories/`
1700
1763
  - Update status from "Draft" to "Approved"
1701
-
1702
- **Step 2 - Story Implementation**:
1764
+
1765
+ **Step 2 - Story Implementation**:
1703
1766
  - **NEW CLEAN CHAT** → `@dev`
1704
1767
  - Agent asks which story to implement
1705
1768
  - Include story file content to save dev agent lookup time
1706
1769
  - Dev follows tasks/subtasks, marking completion
1707
1770
  - Dev maintains File List of all changes
1708
1771
  - Dev marks story as "Review" when complete with all tests passing
1709
-
1772
+
1710
1773
  **Step 3 - Senior QA Review**:
1711
1774
  - **NEW CLEAN CHAT** → `@qa` → execute review-story task
1712
1775
  - QA performs senior developer code review
@@ -1714,7 +1777,7 @@ that can handle [specific requirements]."
1714
1777
  - QA appends results to story's QA Results section
1715
1778
  - If approved: Status → "Done"
1716
1779
  - If changes needed: Status stays "Review" with unchecked items for dev
1717
-
1780
+
1718
1781
  **Step 4 - Repeat**: Continue SM → Dev → QA cycle until all epic stories complete
1719
1782
 
1720
1783
  **Important**: Only 1 story in progress at a time, worked sequentially until all epic stories complete.
@@ -1722,6 +1785,7 @@ that can handle [specific requirements]."
1722
1785
  ### Status Tracking Workflow
1723
1786
 
1724
1787
  Stories progress through defined statuses:
1788
+
1725
1789
  - **Draft** → **Approved** → **InProgress** → **Done**
1726
1790
 
1727
1791
  Each status change requires user verification and approval before proceeding.
@@ -1729,6 +1793,7 @@ Each status change requires user verification and approval before proceeding.
1729
1793
  ### Workflow Types
1730
1794
 
1731
1795
  #### Greenfield Development
1796
+
1732
1797
  - Business analysis and market research
1733
1798
  - Product requirements and feature definition
1734
1799
  - System architecture and design
@@ -1742,6 +1807,7 @@ Each status change requires user verification and approval before proceeding.
1742
1807
  **Complete Brownfield Workflow Options**:
1743
1808
 
1744
1809
  **Option 1: PRD-First (Recommended for Large Codebases/Monorepos)**:
1810
+
1745
1811
  1. **Upload project to Gemini Web** (GitHub URL, files, or zip)
1746
1812
  2. **Create PRD first**: `@pm` → `*create-doc brownfield-prd`
1747
1813
  3. **Focused documentation**: `@analyst` → `*document-project`
@@ -1752,18 +1818,19 @@ Each status change requires user verification and approval before proceeding.
1752
1818
  - Avoids bloating docs with unused code
1753
1819
 
1754
1820
  **Option 2: Document-First (Good for Smaller Projects)**:
1821
+
1755
1822
  1. **Upload project to Gemini Web**
1756
1823
  2. **Document everything**: `@analyst` → `*document-project`
1757
1824
  3. **Then create PRD**: `@pm` → `*create-doc brownfield-prd`
1758
1825
  - More thorough but can create excessive documentation
1759
1826
 
1760
- 2. **Requirements Gathering**:
1827
+ 4. **Requirements Gathering**:
1761
1828
  - **Brownfield PRD**: Use PM agent with `brownfield-prd-tmpl`
1762
1829
  - **Analyzes**: Existing system, constraints, integration points
1763
1830
  - **Defines**: Enhancement scope, compatibility requirements, risk assessment
1764
1831
  - **Creates**: Epic and story structure for changes
1765
1832
 
1766
- 3. **Architecture Planning**:
1833
+ 5. **Architecture Planning**:
1767
1834
  - **Brownfield Architecture**: Use Architect agent with `brownfield-architecture-tmpl`
1768
1835
  - **Integration Strategy**: How new features integrate with existing system
1769
1836
  - **Migration Planning**: Gradual rollout and backwards compatibility
@@ -1772,10 +1839,12 @@ Each status change requires user verification and approval before proceeding.
1772
1839
  **Brownfield-Specific Resources**:
1773
1840
 
1774
1841
  **Templates**:
1842
+
1775
1843
  - `brownfield-prd-tmpl.md`: Comprehensive enhancement planning with existing system analysis
1776
1844
  - `brownfield-architecture-tmpl.md`: Integration-focused architecture for existing systems
1777
1845
 
1778
1846
  **Tasks**:
1847
+
1779
1848
  - `document-project`: Generates comprehensive documentation from existing codebase
1780
1849
  - `brownfield-create-epic`: Creates single epic for focused enhancements (when full PRD is overkill)
1781
1850
  - `brownfield-create-story`: Creates individual story for small, isolated changes
@@ -1783,18 +1852,21 @@ Each status change requires user verification and approval before proceeding.
1783
1852
  **When to Use Each Approach**:
1784
1853
 
1785
1854
  **Full Brownfield Workflow** (Recommended for):
1855
+
1786
1856
  - Major feature additions
1787
1857
  - System modernization
1788
1858
  - Complex integrations
1789
1859
  - Multiple related changes
1790
1860
 
1791
1861
  **Quick Epic/Story Creation** (Use when):
1862
+
1792
1863
  - Single, focused enhancement
1793
1864
  - Isolated bug fixes
1794
1865
  - Small feature additions
1795
1866
  - Well-documented existing system
1796
1867
 
1797
1868
  **Critical Success Factors**:
1869
+
1798
1870
  1. **Documentation First**: Always run `document-project` if docs are outdated/missing
1799
1871
  2. **Context Matters**: Provide agents access to relevant code sections
1800
1872
  3. **Integration Focus**: Emphasize compatibility and non-breaking changes
@@ -1810,6 +1882,7 @@ Each status change requires user verification and approval before proceeding.
1810
1882
  - `docs/architecture.md` - System Architecture Document
1811
1883
 
1812
1884
  **Why These Names Matter**:
1885
+
1813
1886
  - Agents automatically reference these files during development
1814
1887
  - Sharding tasks expect these specific filenames
1815
1888
  - Workflow automation depends on standard naming
@@ -1828,6 +1901,7 @@ Each status change requires user verification and approval before proceeding.
1828
1901
  Templates with Level 2 headings (`##`) can be automatically sharded:
1829
1902
 
1830
1903
  **Original PRD**:
1904
+
1831
1905
  ```markdown
1832
1906
  ## Goals and Background Context
1833
1907
  ## Requirements
@@ -1836,6 +1910,7 @@ Templates with Level 2 headings (`##`) can be automatically sharded:
1836
1910
  ```
1837
1911
 
1838
1912
  **After Sharding**:
1913
+
1839
1914
  - `docs/prd/goals-and-background-context.md`
1840
1915
  - `docs/prd/requirements.md`
1841
1916
  - `docs/prd/user-interface-design-goals.md`
@@ -1848,12 +1923,14 @@ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sh
1848
1923
  ### Environment-Specific Usage
1849
1924
 
1850
1925
  **Web UI Best For**:
1926
+
1851
1927
  - Initial planning and documentation phases
1852
1928
  - Cost-effective large document creation
1853
1929
  - Agent consultation and brainstorming
1854
1930
  - Multi-agent workflows with orchestrator
1855
1931
 
1856
1932
  **IDE Best For**:
1933
+
1857
1934
  - Active development and implementation
1858
1935
  - File operations and project integration
1859
1936
  - Story management and development cycles
@@ -1888,6 +1965,7 @@ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sh
1888
1965
  For full details, see `CONTRIBUTING.md`. Key points:
1889
1966
 
1890
1967
  **Fork Workflow**:
1968
+
1891
1969
  1. Fork the repository
1892
1970
  2. Create feature branches
1893
1971
  3. Submit PRs to `next` branch (default) or `main` for critical fixes only
@@ -1895,12 +1973,14 @@ For full details, see `CONTRIBUTING.md`. Key points:
1895
1973
  5. One feature/fix per PR
1896
1974
 
1897
1975
  **PR Requirements**:
1976
+
1898
1977
  - Clear descriptions (max 200 words) with What/Why/How/Testing
1899
1978
  - Use conventional commits (feat:, fix:, docs:)
1900
1979
  - Atomic commits - one logical change per commit
1901
1980
  - Must align with guiding principles
1902
1981
 
1903
1982
  **Core Principles** (from GUIDING-PRINCIPLES.md):
1983
+
1904
1984
  - **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
1905
1985
  - **Natural Language First**: Everything in markdown, no code in core
1906
1986
  - **Core vs Expansion Packs**: Core for universal needs, packs for specialized domains
@@ -1922,12 +2002,14 @@ Expansion packs extend BMad-Method beyond traditional software development into
1922
2002
  ### Available Expansion Packs
1923
2003
 
1924
2004
  **Technical Packs**:
2005
+
1925
2006
  - **Infrastructure/DevOps**: Cloud architects, SRE experts, security specialists
1926
2007
  - **Game Development**: Game designers, level designers, narrative writers
1927
2008
  - **Mobile Development**: iOS/Android specialists, mobile UX experts
1928
2009
  - **Data Science**: ML engineers, data scientists, visualization experts
1929
2010
 
1930
2011
  **Non-Technical Packs**:
2012
+
1931
2013
  - **Business Strategy**: Consultants, financial analysts, marketing strategists
1932
2014
  - **Creative Writing**: Plot architects, character developers, world builders
1933
2015
  - **Health & Wellness**: Fitness trainers, nutritionists, habit engineers
@@ -1935,6 +2017,7 @@ Expansion packs extend BMad-Method beyond traditional software development into
1935
2017
  - **Legal Support**: Contract analysts, compliance checkers
1936
2018
 
1937
2019
  **Specialty Packs**:
2020
+
1938
2021
  - **Expansion Creator**: Tools to build your own expansion packs
1939
2022
  - **RPG Game Master**: Tabletop gaming assistance
1940
2023
  - **Life Event Planning**: Wedding planners, event coordinators
@@ -1944,11 +2027,13 @@ Expansion packs extend BMad-Method beyond traditional software development into
1944
2027
 
1945
2028
  1. **Browse Available Packs**: Check `expansion-packs/` directory
1946
2029
  2. **Get Inspiration**: See `docs/expansion-packs.md` for detailed examples and ideas
1947
- 3. **Install via CLI**:
2030
+ 3. **Install via CLI**:
2031
+
1948
2032
  ```bash
1949
2033
  npx bmad-method install
1950
2034
  # Select "Install expansion pack" option
1951
2035
  ```
2036
+
1952
2037
  4. **Use in Your Workflow**: Installed packs integrate seamlessly with existing agents
1953
2038
 
1954
2039
  ### Creating Custom Expansion Packs
@@ -1969,9 +2054,9 @@ Use the **expansion-creator** pack to build your own:
1969
2054
  - **Documentation**: Check `docs/` folder for project-specific context
1970
2055
  - **Community**: Discord and GitHub resources available for support
1971
2056
  - **Contributing**: See `CONTRIBUTING.md` for full guidelines
1972
- ==================== END: data#bmad-kb ====================
2057
+ ==================== END: .bmad-core/data/bmad-kb.md ====================
1973
2058
 
1974
- ==================== START: utils#plan-management ====================
2059
+ ==================== START: .bmad-core/utils/plan-management.md ====================
1975
2060
  # Plan Management Utility
1976
2061
 
1977
2062
  ## Purpose
@@ -1982,14 +2067,10 @@ Provides utilities for agents and tasks to interact with workflow plans, check p
1982
2067
 
1983
2068
  ### 1. Check Plan Existence
1984
2069
 
1985
- [[LLM: When any agent starts or task begins, check if a workflow plan exists]]
1986
-
1987
- ```
1988
2070
  Check for workflow plan:
2071
+
1989
2072
  1. Look for docs/workflow-plan.md (default location)
1990
- 2. Check core-config.yaml for custom plan location
1991
- 3. Return plan status (exists/not exists)
1992
- ```
2073
+ 2. Return plan status to user (exists/not exists) - if not exists then HALT.
1993
2074
 
1994
2075
  ### 2. Parse Plan Status
1995
2076
 
@@ -2030,7 +2111,7 @@ Check for workflow plan:
2030
2111
 
2031
2112
  **Warning Templates:**
2032
2113
 
2033
- ```
2114
+ ```text
2034
2115
  SEQUENCE WARNING:
2035
2116
  The workflow plan shows you should complete "{expected_step}" next.
2036
2117
  You're attempting to: "{requested_action}"
@@ -2064,7 +2145,7 @@ In flexible mode: Allow with confirmation
2064
2145
 
2065
2146
  **For Agents (startup sequence)**:
2066
2147
 
2067
- ```
2148
+ ```text
2068
2149
  1. Check if plan exists using this utility
2069
2150
  2. If exists:
2070
2151
  - Parse current status
@@ -2075,7 +2156,7 @@ In flexible mode: Allow with confirmation
2075
2156
 
2076
2157
  **For Tasks (pre-execution)**:
2077
2158
 
2078
- ```
2159
+ ```text
2079
2160
  1. Check if plan exists
2080
2161
  2. If exists:
2081
2162
  - Verify this task aligns with plan
@@ -2091,7 +2172,7 @@ In flexible mode: Allow with confirmation
2091
2172
 
2092
2173
  [[LLM: Standard format for showing plan status]]
2093
2174
 
2094
- ```
2175
+ ```text
2095
2176
  📋 Workflow Plan Status
2096
2177
  ━━━━━━━━━━━━━━━━━━━━
2097
2178
  Workflow: {workflow_name}
@@ -2144,7 +2225,7 @@ If user wants to abandon plan:
2144
2225
 
2145
2226
  ### Example 1: Agent Startup Check
2146
2227
 
2147
- ```
2228
+ ```text
2148
2229
  BMad Master starting...
2149
2230
 
2150
2231
  [Check for plan]
@@ -2158,7 +2239,7 @@ Use *agent pm to switch, or *plan-status to see full progress.
2158
2239
 
2159
2240
  ### Example 2: Task Sequence Warning
2160
2241
 
2161
- ```
2242
+ ```text
2162
2243
  User: *task create-next-story
2163
2244
 
2164
2245
  [Plan check triggered]
@@ -2174,7 +2255,7 @@ Would you like to:
2174
2255
 
2175
2256
  ### Example 3: Automatic Plan Update
2176
2257
 
2177
- ```
2258
+ ```text
2178
2259
  [After completing create-doc task for PRD]
2179
2260
 
2180
2261
  ✅ Plan Updated: Marked "Create PRD" as complete
@@ -2195,9 +2276,9 @@ Would you like to:
2195
2276
  - Malformed plan: Warn but continue, treat as no plan
2196
2277
  - Update failures: Log but don't block task completion
2197
2278
  - Parse errors: Fallback to basic text search
2198
- ==================== END: utils#plan-management ====================
2279
+ ==================== END: .bmad-core/utils/plan-management.md ====================
2199
2280
 
2200
- ==================== START: utils#workflow-management ====================
2281
+ ==================== START: .bmad-core/utils/workflow-management.md ====================
2201
2282
  # Workflow Management
2202
2283
 
2203
2284
  Enables BMad orchestrator to manage and execute team workflows.
@@ -2267,9 +2348,9 @@ Handle conditional paths by asking clarifying questions when needed.
2267
2348
  ## Agent Integration
2268
2349
 
2269
2350
  Agents should be workflow-aware: know active workflow, their role, access artifacts, understand expected outputs.
2270
- ==================== END: utils#workflow-management ====================
2351
+ ==================== END: .bmad-core/utils/workflow-management.md ====================
2271
2352
 
2272
- ==================== START: utils#template-format ====================
2353
+ ==================== START: .bmad-core/utils/template-format.md ====================
2273
2354
  # Template Format Conventions
2274
2355
 
2275
2356
  Templates in the BMad method use standardized markup for AI processing. These conventions ensure consistent document generation.
@@ -2296,16 +2377,16 @@ Templates in the BMad method use standardized markup for AI processing. These co
2296
2377
  - Template elements are for AI processing only
2297
2378
  - Focus on faithful template execution and clean output
2298
2379
  - All template-specific instructions are embedded within templates
2299
- ==================== END: utils#template-format ====================
2380
+ ==================== END: .bmad-core/utils/template-format.md ====================
2300
2381
 
2301
- ==================== START: tasks#execute-checklist ====================
2382
+ ==================== START: .bmad-core/tasks/execute-checklist.md ====================
2302
2383
  # Checklist Validation Task
2303
2384
 
2304
2385
  This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
2305
2386
 
2306
2387
  ## Available Checklists
2307
2388
 
2308
- If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the {root}/checklists folder to select the appropriate one to run.
2389
+ If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-core/checklists folder to select the appropriate one to run.
2309
2390
 
2310
2391
  ## Instructions
2311
2392
 
@@ -2314,7 +2395,7 @@ If the user asks or does not specify a specific checklist, list the checklists a
2314
2395
  - If user or the task being run provides a checklist name:
2315
2396
  - Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
2316
2397
  - If multiple matches found, ask user to clarify
2317
- - Load the appropriate checklist from {root}/checklists/
2398
+ - Load the appropriate checklist from .bmad-core/checklists/
2318
2399
  - If no checklist specified:
2319
2400
  - Ask the user which checklist they want to use
2320
2401
  - Present the available options from the files in the checklists folder
@@ -2392,9 +2473,9 @@ The LLM will:
2392
2473
  - Execute the complete checklist validation
2393
2474
  - Present a final report with pass/fail rates and key findings
2394
2475
  - Offer to provide detailed analysis of any section, especially those with warnings or failures
2395
- ==================== END: tasks#execute-checklist ====================
2476
+ ==================== END: .bmad-core/tasks/execute-checklist.md ====================
2396
2477
 
2397
- ==================== START: tasks#shard-doc ====================
2478
+ ==================== START: .bmad-core/tasks/shard-doc.md ====================
2398
2479
  # Document Sharding Task
2399
2480
 
2400
2481
  ## Purpose
@@ -2586,9 +2667,9 @@ Document sharded successfully:
2586
2667
  - Preserve ALL formatting, including whitespace where significant
2587
2668
  - Handle edge cases like sections with code blocks containing ## symbols
2588
2669
  - Ensure the sharding is reversible (could reconstruct the original from shards)
2589
- ==================== END: tasks#shard-doc ====================
2670
+ ==================== END: .bmad-core/tasks/shard-doc.md ====================
2590
2671
 
2591
- ==================== START: tasks#correct-course ====================
2672
+ ==================== START: .bmad-core/tasks/correct-course.md ====================
2592
2673
  # Correct Course Task
2593
2674
 
2594
2675
  ## Purpose
@@ -2662,9 +2743,9 @@ Document sharded successfully:
2662
2743
  - A summary of the `change-checklist` analysis (issue, impact, rationale for the chosen path).
2663
2744
  - Specific, clearly drafted proposed edits for all affected project artifacts.
2664
2745
  - **Implicit:** An annotated `change-checklist` (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
2665
- ==================== END: tasks#correct-course ====================
2746
+ ==================== END: .bmad-core/tasks/correct-course.md ====================
2666
2747
 
2667
- ==================== START: tasks#brownfield-create-epic ====================
2748
+ ==================== START: .bmad-core/tasks/brownfield-create-epic.md ====================
2668
2749
  # Create Brownfield Epic Task
2669
2750
 
2670
2751
  ## Purpose
@@ -2825,9 +2906,9 @@ The epic creation is successful when:
2825
2906
  - If the scope grows beyond 3 stories, consider the full brownfield PRD process
2826
2907
  - Always prioritize existing system integrity over new functionality
2827
2908
  - When in doubt about scope or complexity, escalate to full brownfield planning
2828
- ==================== END: tasks#brownfield-create-epic ====================
2909
+ ==================== END: .bmad-core/tasks/brownfield-create-epic.md ====================
2829
2910
 
2830
- ==================== START: tasks#brownfield-create-story ====================
2911
+ ==================== START: .bmad-core/tasks/brownfield-create-story.md ====================
2831
2912
  # Create Brownfield Story Task
2832
2913
 
2833
2914
  ## Purpose
@@ -2975,9 +3056,9 @@ The story creation is successful when:
2975
3056
  - Always prioritize existing system integrity
2976
3057
  - When in doubt about integration complexity, use brownfield-create-epic instead
2977
3058
  - Stories should take no more than 4 hours of focused development work
2978
- ==================== END: tasks#brownfield-create-story ====================
3059
+ ==================== END: .bmad-core/tasks/brownfield-create-story.md ====================
2979
3060
 
2980
- ==================== START: tasks#validate-next-story ====================
3061
+ ==================== START: .bmad-core/tasks/validate-next-story.md ====================
2981
3062
  # Validate Next Story Task
2982
3063
 
2983
3064
  ## Purpose
@@ -3112,9 +3193,9 @@ Provide a structured validation report including:
3112
3193
  - **NO-GO**: Story requires fixes before implementation
3113
3194
  - **Implementation Readiness Score**: 1-10 scale
3114
3195
  - **Confidence Level**: High/Medium/Low for successful implementation
3115
- ==================== END: tasks#validate-next-story ====================
3196
+ ==================== END: .bmad-core/tasks/validate-next-story.md ====================
3116
3197
 
3117
- ==================== START: templates#story-tmpl ====================
3198
+ ==================== START: .bmad-core/templates/story-tmpl.md ====================
3118
3199
  ---
3119
3200
  defaultOutput: docs/stories/{{EpicNum}}.{{StoryNum}}.{{Short Title Copied from Epic File specific story}}.md
3120
3201
  smAgent:
@@ -3173,9 +3254,9 @@ smAgent:
3173
3254
  ### File List
3174
3255
 
3175
3256
  ## QA Results
3176
- ==================== END: templates#story-tmpl ====================
3257
+ ==================== END: .bmad-core/templates/story-tmpl.md ====================
3177
3258
 
3178
- ==================== START: checklists#po-master-checklist ====================
3259
+ ==================== START: .bmad-core/checklists/po-master-checklist.md ====================
3179
3260
  # Product Owner (PO) Master Validation Checklist
3180
3261
 
3181
3262
  This checklist serves as a comprehensive framework for the Product Owner to validate project plans before development execution. It adapts intelligently based on project type (greenfield vs brownfield) and includes UI/UX considerations when applicable.
@@ -3617,9 +3698,9 @@ After presenting the report, ask if the user wants:
3617
3698
  - **APPROVED**: The plan is comprehensive, properly sequenced, and ready for implementation.
3618
3699
  - **CONDITIONAL**: The plan requires specific adjustments before proceeding.
3619
3700
  - **REJECTED**: The plan requires significant revision to address critical deficiencies.
3620
- ==================== END: checklists#po-master-checklist ====================
3701
+ ==================== END: .bmad-core/checklists/po-master-checklist.md ====================
3621
3702
 
3622
- ==================== START: checklists#change-checklist ====================
3703
+ ==================== START: .bmad-core/checklists/change-checklist.md ====================
3623
3704
  # Change Navigation Checklist
3624
3705
 
3625
3706
  **Purpose:** To systematically guide the selected Agent and user through the analysis and planning required when a significant change (pivot, tech issue, missing requirement, failed story) is identified during the BMad workflow.
@@ -3802,9 +3883,9 @@ Keep it action-oriented and forward-looking.]]
3802
3883
  - [ ] **Confirm Next Steps:** Reiterate the handoff plan and the next actions to be taken by specific agents.
3803
3884
 
3804
3885
  ---
3805
- ==================== END: checklists#change-checklist ====================
3886
+ ==================== END: .bmad-core/checklists/change-checklist.md ====================
3806
3887
 
3807
- ==================== START: tasks#create-next-story ====================
3888
+ ==================== START: .bmad-core/tasks/create-next-story.md ====================
3808
3889
  # Create Next Story Task
3809
3890
 
3810
3891
  ## Purpose
@@ -3919,9 +4000,9 @@ ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
3919
4000
  - Any deviations or conflicts noted between epic and architecture
3920
4001
  - Checklist Results
3921
4002
  - Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `validate-next-story`
3922
- ==================== END: tasks#create-next-story ====================
4003
+ ==================== END: .bmad-core/tasks/create-next-story.md ====================
3923
4004
 
3924
- ==================== START: checklists#story-draft-checklist ====================
4005
+ ==================== START: .bmad-core/checklists/story-draft-checklist.md ====================
3925
4006
  # Story Draft Checklist
3926
4007
 
3927
4008
  The Scrum Master should use this checklist to validate that each story contains sufficient context for a developer agent to implement it successfully, while assuming the dev agent has reasonable capabilities to figure things out.
@@ -4078,9 +4159,9 @@ Be pragmatic - perfect documentation doesn't exist, but it must be enough to pro
4078
4159
  - READY: The story provides sufficient context for implementation
4079
4160
  - NEEDS REVISION: The story requires updates (see issues)
4080
4161
  - BLOCKED: External information required (specify what information)
4081
- ==================== END: checklists#story-draft-checklist ====================
4162
+ ==================== END: .bmad-core/checklists/story-draft-checklist.md ====================
4082
4163
 
4083
- ==================== START: checklists#story-dod-checklist ====================
4164
+ ==================== START: .bmad-core/checklists/story-dod-checklist.md ====================
4084
4165
  # Story Definition of Done (DoD) Checklist
4085
4166
 
4086
4167
  ## Instructions for Developer Agent
@@ -4182,9 +4263,9 @@ After completing the checklist:
4182
4263
  Be honest - it's better to flag issues now than have them discovered later.]]
4183
4264
 
4184
4265
  - [ ] I, the Developer Agent, confirm that all applicable items above have been addressed.
4185
- ==================== END: checklists#story-dod-checklist ====================
4266
+ ==================== END: .bmad-core/checklists/story-dod-checklist.md ====================
4186
4267
 
4187
- ==================== START: tasks#review-story ====================
4268
+ ==================== START: .bmad-core/tasks/review-story.md ====================
4188
4269
  # review-story
4189
4270
 
4190
4271
  When a developer marks a story as "Ready for Review", perform a comprehensive senior developer code review with the ability to refactor and improve code directly.
@@ -4330,10 +4411,10 @@ After review:
4330
4411
  1. If all items are checked and approved: Update story status to "Done"
4331
4412
  2. If unchecked items remain: Keep status as "Review" for dev to address
4332
4413
  3. Always provide constructive feedback and explanations for learning
4333
- ==================== END: tasks#review-story ====================
4414
+ ==================== END: .bmad-core/tasks/review-story.md ====================
4334
4415
 
4335
- ==================== START: data#technical-preferences ====================
4416
+ ==================== START: .bmad-core/data/technical-preferences.md ====================
4336
4417
  # User-Defined Preferred Patterns and Preferences
4337
4418
 
4338
4419
  None Listed
4339
- ==================== END: data#technical-preferences ====================
4420
+ ==================== END: .bmad-core/data/technical-preferences.md ====================