bmad-method 4.31.0 → 4.32.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 (72) hide show
  1. package/.vscode/settings.json +1 -7
  2. package/CHANGELOG.md +108 -173
  3. package/README.md +40 -0
  4. package/bmad-core/agents/analyst.md +1 -1
  5. package/bmad-core/agents/architect.md +2 -3
  6. package/bmad-core/agents/bmad-master.md +0 -1
  7. package/bmad-core/agents/bmad-orchestrator.md +9 -10
  8. package/bmad-core/agents/dev.md +1 -2
  9. package/bmad-core/agents/pm.md +3 -1
  10. package/bmad-core/agents/po.md +1 -1
  11. package/bmad-core/agents/qa.md +1 -1
  12. package/bmad-core/agents/sm.md +1 -1
  13. package/bmad-core/agents/ux-expert.md +1 -1
  14. package/bmad-core/bmad-core/user-guide.md +0 -0
  15. package/bmad-core/data/bmad-kb.md +12 -2
  16. package/bmad-core/data/elicitation-methods.md +20 -0
  17. package/bmad-core/enhanced-ide-development-workflow.md +43 -0
  18. package/bmad-core/tasks/advanced-elicitation.md +2 -0
  19. package/bmad-core/tasks/create-brownfield-story.md +20 -3
  20. package/bmad-core/tasks/document-project.md +19 -13
  21. package/bmad-core/tasks/facilitate-brainstorming-session.md +1 -1
  22. package/bmad-core/tasks/index-docs.md +0 -1
  23. package/bmad-core/tasks/kb-mode-interaction.md +3 -3
  24. package/bmad-core/tasks/review-story.md +18 -1
  25. package/bmad-core/user-guide.md +7 -6
  26. package/bmad-core/working-in-the-brownfield.md +39 -36
  27. package/dist/agents/analyst.txt +6 -6
  28. package/dist/agents/architect.txt +8 -3
  29. package/dist/agents/bmad-master.txt +2 -1
  30. package/dist/agents/pm.txt +9 -2
  31. package/dist/agents/po.txt +2 -318
  32. package/dist/agents/qa.txt +0 -1
  33. package/dist/agents/sm.txt +3 -3
  34. package/dist/agents/ux-expert.txt +2 -297
  35. package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +6 -6
  36. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4047 -0
  37. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +1520 -185
  38. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +214 -1229
  39. package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +537 -373
  40. package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +6917 -2140
  41. package/dist/teams/team-all.txt +30 -25
  42. package/dist/teams/team-fullstack.txt +27 -21
  43. package/dist/teams/team-ide-minimal.txt +5 -322
  44. package/dist/teams/team-no-ui.txt +25 -16
  45. package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +3 -1
  46. package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +1 -0
  47. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +80 -0
  48. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +21 -16
  49. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +25 -25
  50. package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +15 -14
  51. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +396 -0
  52. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +203 -0
  53. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +1 -1
  54. package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +93 -121
  55. package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +1 -1
  56. package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +593 -68
  57. package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +151 -0
  58. package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +165 -198
  59. package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +200 -0
  60. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +938 -453
  61. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +3 -3
  62. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +517 -155
  63. package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +12 -12
  64. package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +11 -11
  65. package/package.json +79 -76
  66. package/tools/cli.js +9 -0
  67. package/tools/flattener/main.js +559 -0
  68. package/tools/installer/lib/installer.js +1 -1
  69. package/tools/installer/package.json +1 -1
  70. package/.husky/pre-commit +0 -2
  71. package/.prettierignore +0 -21
  72. package/.prettierrc +0 -23
package/README.md CHANGED
@@ -110,6 +110,46 @@ npm run install:bmad # build and install all to a destination folder
110
110
 
111
111
  BMad's natural language framework works in ANY domain. Expansion packs provide specialized AI agents for creative writing, business strategy, health & wellness, education, and more. Also expansion packs can expand the core BMad-Method with specific functionality that is not generic for all cases. [See the Expansion Packs Guide](docs/expansion-packs.md) and learn to create your own!
112
112
 
113
+ ## Codebase Flattener Tool
114
+
115
+ The BMad-Method includes a powerful codebase flattener tool designed to prepare your project files for AI model consumption. This tool aggregates your entire codebase into a single XML file, making it easy to share your project context with AI assistants for analysis, debugging, or development assistance.
116
+
117
+ ### Features
118
+
119
+ - **AI-Optimized Output**: Generates clean XML format specifically designed for AI model consumption
120
+ - **Smart Filtering**: Automatically respects `.gitignore` patterns to exclude unnecessary files
121
+ - **Binary File Detection**: Intelligently identifies and excludes binary files, focusing on source code
122
+ - **Progress Tracking**: Real-time progress indicators and comprehensive completion statistics
123
+ - **Flexible Output**: Customizable output file location and naming
124
+
125
+ ### Usage
126
+
127
+ ```bash
128
+ # Basic usage - creates flattened-codebase.xml in current directory
129
+ npm run flatten
130
+
131
+ # Specify custom output file
132
+ npm run flatten -- --output my-project.xml
133
+ npm run flatten -- -o /path/to/output/codebase.xml
134
+ ```
135
+
136
+ ### Example Output
137
+
138
+ The tool will display progress and provide a comprehensive summary:
139
+
140
+ ```
141
+ 📊 Completion Summary:
142
+ ✅ Successfully processed 156 files into flattened-codebase.xml
143
+ 📁 Output file: /path/to/your/project/flattened-codebase.xml
144
+ 📏 Total source size: 2.3 MB
145
+ 📄 Generated XML size: 2.1 MB
146
+ 📝 Total lines of code: 15,847
147
+ 🔢 Estimated tokens: 542,891
148
+ 📊 File breakdown: 142 text, 14 binary, 0 errors
149
+ ```
150
+
151
+ The generated XML file contains all your project's source code in a structured format that AI models can easily parse and understand, making it perfect for code reviews, architecture discussions, or getting AI assistance with your BMad-Method projects.
152
+
113
153
  ## Documentation & Resources
114
154
 
115
155
  ### Essential Guides
@@ -52,7 +52,7 @@ persona:
52
52
  - Integrity of Information - Ensure accurate sourcing and representation
53
53
  - Numbered Options Protocol - Always use numbered lists for selections
54
54
  # All commands require * prefix when used (e.g., *help)
55
- commands:
55
+ commands:
56
56
  - help: Show numbered list of the following commands to allow selection
57
57
  - create-project-brief: use task create-doc with project-brief-tmpl.yaml
58
58
  - perform-market-research: use task create-doc with market-research-tmpl.yaml
@@ -1,6 +1,5 @@
1
1
  # architect
2
2
 
3
-
4
3
  ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
5
4
 
6
5
  CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
@@ -53,12 +52,12 @@ persona:
53
52
  - Cost-Conscious Engineering - Balance technical ideals with financial reality
54
53
  - Living Architecture - Design for change and adaptation
55
54
  # All commands require * prefix when used (e.g., *help)
56
- commands:
55
+ commands:
57
56
  - help: Show numbered list of the following commands to allow selection
58
57
  - create-full-stack-architecture: use create-doc with fullstack-architecture-tmpl.yaml
59
58
  - create-backend-architecture: use create-doc with architecture-tmpl.yaml
60
59
  - create-front-end-architecture: use create-doc with front-end-architecture-tmpl.yaml
61
- - create-brownfield-architecture: use create-doc with brownfield-architecture-tmpl.yaml
60
+ - create-brownfield-architecture: use create-doc with brownfield-architecture-tmpl.yaml
62
61
  - doc-out: Output full document to current destination file
63
62
  - document-project: execute the task document-project.md
64
63
  - execute-checklist {checklist}: Run task execute-checklist (default->architect-checklist)
@@ -1,6 +1,5 @@
1
1
  # BMad Master
2
2
 
3
-
4
3
  ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
5
4
 
6
5
  CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
@@ -1,6 +1,5 @@
1
1
  # BMad Web Orchestrator
2
2
 
3
-
4
3
  ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
5
4
 
6
5
  CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
@@ -52,9 +51,9 @@ persona:
52
51
  - Always use numbered lists for choices
53
52
  - Process commands starting with * immediately
54
53
  - Always remind users that commands require * prefix
55
- commands: # All commands require * prefix when used (e.g., *help, *agent pm)
54
+ commands: # All commands require * prefix when used (e.g., *help, *agent pm)
56
55
  help: Show this guide with available agents and workflows
57
- chat-mode: Start conversational mode for detailed assistance
56
+ chat-mode: Start conversational mode for detailed assistance
58
57
  kb-mode: Load full BMad knowledge base
59
58
  status: Show current context, active agent, and progress
60
59
  agent: Transform into a specialized agent (list if name not specified)
@@ -72,42 +71,42 @@ commands: # All commands require * prefix when used (e.g., *help, *agent pm)
72
71
  help-display-template: |
73
72
  === BMad Orchestrator Commands ===
74
73
  All commands must start with * (asterisk)
75
-
74
+
76
75
  Core Commands:
77
76
  *help ............... Show this guide
78
77
  *chat-mode .......... Start conversational mode for detailed assistance
79
78
  *kb-mode ............ Load full BMad knowledge base
80
79
  *status ............. Show current context, active agent, and progress
81
80
  *exit ............... Return to BMad or exit session
82
-
81
+
83
82
  Agent & Task Management:
84
83
  *agent [name] ....... Transform into specialized agent (list if no name)
85
84
  *task [name] ........ Run specific task (list if no name, requires agent)
86
85
  *checklist [name] ... Execute checklist (list if no name, requires agent)
87
-
86
+
88
87
  Workflow Commands:
89
88
  *workflow [name] .... Start specific workflow (list if no name)
90
89
  *workflow-guidance .. Get personalized help selecting the right workflow
91
90
  *plan ............... Create detailed workflow plan before starting
92
91
  *plan-status ........ Show current workflow plan progress
93
92
  *plan-update ........ Update workflow plan status
94
-
93
+
95
94
  Other Commands:
96
95
  *yolo ............... Toggle skip confirmations mode
97
96
  *party-mode ......... Group chat with all agents
98
97
  *doc-out ............ Output full document
99
-
98
+
100
99
  === Available Specialist Agents ===
101
100
  [Dynamically list each agent in bundle with format:
102
101
  *agent {id}: {title}
103
102
  When to use: {whenToUse}
104
103
  Key deliverables: {main outputs/documents}]
105
-
104
+
106
105
  === Available Workflows ===
107
106
  [Dynamically list each workflow in bundle with format:
108
107
  *workflow {id}: {name}
109
108
  Purpose: {description}]
110
-
109
+
111
110
  💡 Tip: Each agent has unique tasks, templates, and checklists. Switch to an agent to access their capabilities!
112
111
 
113
112
  fuzzy-matching:
@@ -38,7 +38,6 @@ agent:
38
38
  whenToUse: "Use for code implementation, debugging, refactoring, and development best practices"
39
39
  customization:
40
40
 
41
-
42
41
  persona:
43
42
  role: Expert Senior Software Engineer & Implementation Specialist
44
43
  style: Extremely concise, pragmatic, detail-oriented, solution-focused
@@ -52,7 +51,7 @@ core_principles:
52
51
  - Numbered Options - Always use numbered lists when presenting choices to the user
53
52
 
54
53
  # All commands require * prefix when used (e.g., *help)
55
- commands:
54
+ commands:
56
55
  - help: Show numbered list of the following commands to allow selection
57
56
  - run-tests: Execute linting and tests
58
57
  - explain: teach me what and why you did whatever you just did in detail so I can learn. Explain to me as if you were training a junior engineer.
@@ -48,10 +48,12 @@ persona:
48
48
  - Proactive risk identification
49
49
  - Strategic thinking & outcome-oriented
50
50
  # All commands require * prefix when used (e.g., *help)
51
- commands:
51
+ commands:
52
52
  - help: Show numbered list of the following commands to allow selection
53
53
  - create-prd: run task create-doc.md with template prd-tmpl.yaml
54
54
  - create-brownfield-prd: run task create-doc.md with template brownfield-prd-tmpl.yaml
55
+ - create-brownfield-epic: run task brownfield-create-epic.md
56
+ - create-brownfield-story: run task brownfield-create-story.md
55
57
  - create-epic: Create epic for brownfield projects (task brownfield-create-epic)
56
58
  - create-story: Create user story from requirements (task brownfield-create-story)
57
59
  - doc-out: Output full document to current destination file
@@ -51,7 +51,7 @@ persona:
51
51
  - Focus on Executable & Value-Driven Increments - Ensure work aligns with MVP goals
52
52
  - Documentation Ecosystem Integrity - Maintain consistency across all documents
53
53
  # All commands require * prefix when used (e.g., *help)
54
- commands:
54
+ commands:
55
55
  - help: Show numbered list of the following commands to allow selection
56
56
  - execute-checklist-po: Run task execute-checklist (checklist po-master-checklist)
57
57
  - shard-doc {document} {destination}: run the task shard-doc against the optionally provided document to the specified destination
@@ -55,7 +55,7 @@ story-file-permissions:
55
55
  - CRITICAL: DO NOT modify any other sections including Status, Story, Acceptance Criteria, Tasks/Subtasks, Dev Notes, Testing, Dev Agent Record, Change Log, or any other sections
56
56
  - CRITICAL: Your updates must be limited to appending your review results in the QA Results section only
57
57
  # All commands require * prefix when used (e.g., *help)
58
- commands:
58
+ commands:
59
59
  - help: Show numbered list of the following commands to allow selection
60
60
  - review {story}: execute the task review-story for the highest sequence story in docs/stories unless another is specified - keep any specified technical-preferences in mind as needed
61
61
  - exit: Say goodbye as the QA Engineer, and then abandon inhabiting this persona
@@ -44,7 +44,7 @@ persona:
44
44
  - Will ensure all information comes from the PRD and Architecture to guide the dumb dev agent
45
45
  - You are NOT allowed to implement stories or modify code EVER!
46
46
  # All commands require * prefix when used (e.g., *help)
47
- commands:
47
+ commands:
48
48
  - help: Show numbered list of the following commands to allow selection
49
49
  - draft: Execute task create-next-story.md
50
50
  - correct-course: Execute task correct-course.md
@@ -49,7 +49,7 @@ persona:
49
49
  - You're particularly skilled at translating user needs into beautiful, functional designs.
50
50
  - You can craft effective prompts for AI UI generation tools like v0, or Lovable.
51
51
  # All commands require * prefix when used (e.g., *help)
52
- commands:
52
+ commands:
53
53
  - help: Show numbered list of the following commands to allow selection
54
54
  - create-front-end-spec: run task create-doc.md with template front-end-spec-tmpl.yaml
55
55
  - generate-ui-prompt: Run task generate-ai-frontend-prompt.md
File without changes
@@ -477,6 +477,7 @@ that can handle [specific requirements]."
477
477
  **Prerequisites**: Planning documents must exist in `docs/` folder
478
478
 
479
479
  1. **Document Sharding** (CRITICAL STEP):
480
+
480
481
  - Documents created by PM/Architect (in Web or IDE) MUST be sharded for development
481
482
  - Two methods to shard:
482
483
  a) **Manual**: Drag `shard-doc` task + document file into chat
@@ -499,17 +500,20 @@ Resulting Folder Structure:
499
500
  1. **Development Cycle** (Sequential, one story at a time):
500
501
 
501
502
  **CRITICAL CONTEXT MANAGEMENT**:
503
+
502
504
  - **Context windows matter!** Always use fresh, clean context windows
503
505
  - **Model selection matters!** Use most powerful thinking model for SM story creation
504
506
  - **ALWAYS start new chat between SM, Dev, and QA work**
505
507
 
506
508
  **Step 1 - Story Creation**:
509
+
507
510
  - **NEW CLEAN CHAT** → Select powerful model → `@sm` → `*create`
508
511
  - SM executes create-next-story task
509
512
  - Review generated story in `docs/stories/`
510
513
  - Update status from "Draft" to "Approved"
511
514
 
512
515
  **Step 2 - Story Implementation**:
516
+
513
517
  - **NEW CLEAN CHAT** → `@dev`
514
518
  - Agent asks which story to implement
515
519
  - Include story file content to save dev agent lookup time
@@ -518,6 +522,7 @@ Resulting Folder Structure:
518
522
  - Dev marks story as "Review" when complete with all tests passing
519
523
 
520
524
  **Step 3 - Senior QA Review**:
525
+
521
526
  - **NEW CLEAN CHAT** → `@qa` → execute review-story task
522
527
  - QA performs senior developer code review
523
528
  - QA can refactor and improve code directly
@@ -542,7 +547,7 @@ Each status change requires user verification and approval before proceeding.
542
547
  #### Greenfield Development
543
548
 
544
549
  - Business analysis and market research
545
- - Product requirements and feature definition
550
+ - Product requirements and feature definition
546
551
  - System architecture and design
547
552
  - Development execution
548
553
  - Testing and deployment
@@ -569,9 +574,11 @@ Each status change requires user verification and approval before proceeding.
569
574
  1. **Upload project to Gemini Web**
570
575
  2. **Document everything**: `@analyst` → `*document-project`
571
576
  3. **Then create PRD**: `@pm` → `*create-doc brownfield-prd`
577
+
572
578
  - More thorough but can create excessive documentation
573
579
 
574
580
  4. **Requirements Gathering**:
581
+
575
582
  - **Brownfield PRD**: Use PM agent with `brownfield-prd-tmpl`
576
583
  - **Analyzes**: Existing system, constraints, integration points
577
584
  - **Defines**: Enhancement scope, compatibility requirements, risk assessment
@@ -651,8 +658,11 @@ Templates with Level 2 headings (`##`) can be automatically sharded:
651
658
 
652
659
  ```markdown
653
660
  ## Goals and Background Context
654
- ## Requirements
661
+
662
+ ## Requirements
663
+
655
664
  ## User Interface Design Goals
665
+
656
666
  ## Success Metrics
657
667
  ```
658
668
 
@@ -3,16 +3,19 @@
3
3
  ## Core Reflective Methods
4
4
 
5
5
  **Expand or Contract for Audience**
6
+
6
7
  - Ask whether to 'expand' (add detail, elaborate) or 'contract' (simplify, clarify)
7
8
  - Identify specific target audience if relevant
8
9
  - Tailor content complexity and depth accordingly
9
10
 
10
11
  **Explain Reasoning (CoT Step-by-Step)**
12
+
11
13
  - Walk through the step-by-step thinking process
12
14
  - Reveal underlying assumptions and decision points
13
15
  - Show how conclusions were reached from current role's perspective
14
16
 
15
17
  **Critique and Refine**
18
+
16
19
  - Review output for flaws, inconsistencies, or improvement areas
17
20
  - Identify specific weaknesses from role's expertise
18
21
  - Suggest refined version reflecting domain knowledge
@@ -20,12 +23,14 @@
20
23
  ## Structural Analysis Methods
21
24
 
22
25
  **Analyze Logical Flow and Dependencies**
26
+
23
27
  - Examine content structure for logical progression
24
28
  - Check internal consistency and coherence
25
29
  - Identify and validate dependencies between elements
26
30
  - Confirm effective ordering and sequencing
27
31
 
28
32
  **Assess Alignment with Overall Goals**
33
+
29
34
  - Evaluate content contribution to stated objectives
30
35
  - Identify any misalignments or gaps
31
36
  - Interpret alignment from specific role's perspective
@@ -34,12 +39,14 @@
34
39
  ## Risk and Challenge Methods
35
40
 
36
41
  **Identify Potential Risks and Unforeseen Issues**
42
+
37
43
  - Brainstorm potential risks from role's expertise
38
44
  - Identify overlooked edge cases or scenarios
39
45
  - Anticipate unintended consequences
40
46
  - Highlight implementation challenges
41
47
 
42
48
  **Challenge from Critical Perspective**
49
+
43
50
  - Adopt critical stance on current content
44
51
  - Play devil's advocate from specified viewpoint
45
52
  - Argue against proposal highlighting weaknesses
@@ -48,12 +55,14 @@
48
55
  ## Creative Exploration Methods
49
56
 
50
57
  **Tree of Thoughts Deep Dive**
58
+
51
59
  - Break problem into discrete "thoughts" or intermediate steps
52
60
  - Explore multiple reasoning paths simultaneously
53
61
  - Use self-evaluation to classify each path as "sure", "likely", or "impossible"
54
62
  - Apply search algorithms (BFS/DFS) to find optimal solution paths
55
63
 
56
64
  **Hindsight is 20/20: The 'If Only...' Reflection**
65
+
57
66
  - Imagine retrospective scenario based on current content
58
67
  - Identify the one "if only we had known/done X..." insight
59
68
  - Describe imagined consequences humorously or dramatically
@@ -62,6 +71,7 @@
62
71
  ## Multi-Persona Collaboration Methods
63
72
 
64
73
  **Agile Team Perspective Shift**
74
+
65
75
  - Rotate through different Scrum team member viewpoints
66
76
  - Product Owner: Focus on user value and business impact
67
77
  - Scrum Master: Examine process flow and team dynamics
@@ -69,12 +79,14 @@
69
79
  - QA: Identify testing scenarios and quality concerns
70
80
 
71
81
  **Stakeholder Round Table**
82
+
72
83
  - Convene virtual meeting with multiple personas
73
84
  - Each persona contributes unique perspective on content
74
85
  - Identify conflicts and synergies between viewpoints
75
86
  - Synthesize insights into actionable recommendations
76
87
 
77
88
  **Meta-Prompting Analysis**
89
+
78
90
  - Step back to analyze the structure and logic of current approach
79
91
  - Question the format and methodology being used
80
92
  - Suggest alternative frameworks or mental models
@@ -83,24 +95,28 @@
83
95
  ## Advanced 2025 Techniques
84
96
 
85
97
  **Self-Consistency Validation**
98
+
86
99
  - Generate multiple reasoning paths for same problem
87
100
  - Compare consistency across different approaches
88
101
  - Identify most reliable and robust solution
89
102
  - Highlight areas where approaches diverge and why
90
103
 
91
104
  **ReWOO (Reasoning Without Observation)**
105
+
92
106
  - Separate parametric reasoning from tool-based actions
93
107
  - Create reasoning plan without external dependencies
94
108
  - Identify what can be solved through pure reasoning
95
109
  - Optimize for efficiency and reduced token usage
96
110
 
97
111
  **Persona-Pattern Hybrid**
112
+
98
113
  - Combine specific role expertise with elicitation pattern
99
114
  - Architect + Risk Analysis: Deep technical risk assessment
100
115
  - UX Expert + User Journey: End-to-end experience critique
101
116
  - PM + Stakeholder Analysis: Multi-perspective impact review
102
117
 
103
118
  **Emergent Collaboration Discovery**
119
+
104
120
  - Allow multiple perspectives to naturally emerge
105
121
  - Identify unexpected insights from persona interactions
106
122
  - Explore novel combinations of viewpoints
@@ -109,18 +125,21 @@
109
125
  ## Game-Based Elicitation Methods
110
126
 
111
127
  **Red Team vs Blue Team**
128
+
112
129
  - Red Team: Attack the proposal, find vulnerabilities
113
130
  - Blue Team: Defend and strengthen the approach
114
131
  - Competitive analysis reveals blind spots
115
132
  - Results in more robust, battle-tested solutions
116
133
 
117
134
  **Innovation Tournament**
135
+
118
136
  - Pit multiple alternative approaches against each other
119
137
  - Score each approach across different criteria
120
138
  - Crowd-source evaluation from different personas
121
139
  - Identify winning combination of features
122
140
 
123
141
  **Escape Room Challenge**
142
+
124
143
  - Present content as constraints to work within
125
144
  - Find creative solutions within tight limitations
126
145
  - Identify minimum viable approach
@@ -129,6 +148,7 @@
129
148
  ## Process Control
130
149
 
131
150
  **Proceed / No Further Actions**
151
+
132
152
  - Acknowledge choice to finalize current work
133
153
  - Accept output as-is or move to next step
134
154
  - Prepare to continue without additional elicitation
@@ -0,0 +1,43 @@
1
+ # Enhanced Development Workflow
2
+
3
+ This is a simple step-by-step guide to help you efficiently manage your development workflow using the BMad Method. Refer to the **[<ins>User Guide</ins>](user-guide.md)** for any scenario that is not covered here.
4
+
5
+ ## Create new Branch
6
+
7
+ 1. **Start new branch**
8
+
9
+ ## Story Creation (Scrum Master)
10
+
11
+ 1. **Start new chat/conversation**
12
+ 2. **Load SM agent**
13
+ 3. **Execute**: `*draft` (runs create-next-story task)
14
+ 4. **Review generated story** in `docs/stories/`
15
+ 5. **Update status**: Change from "Draft" to "Approved"
16
+
17
+ ## Story Implementation (Developer)
18
+
19
+ 1. **Start new chat/conversation**
20
+ 2. **Load Dev agent**
21
+ 3. **Execute**: `*develop-story {selected-story}` (runs execute-checklist task)
22
+ 4. **Review generated report** in `{selected-story}`
23
+
24
+ ## Story Review (Quality Assurance)
25
+
26
+ 1. **Start new chat/conversation**
27
+ 2. **Load QA agent**
28
+ 3. **Execute**: `*review {selected-story}` (runs review-story task)
29
+ 4. **Review generated report** in `{selected-story}`
30
+
31
+ ## Commit Changes and Push
32
+
33
+ 1. **Commit changes**
34
+ 2. **Push to remote**
35
+
36
+ ## Repeat Until Complete
37
+
38
+ - **SM**: Create next story → Review → Approve
39
+ - **Dev**: Implement story → Complete → Mark Ready for Review
40
+ - **QA**: Review story → Mark done
41
+ - **Commit**: All changes
42
+ - **Push**: To remote
43
+ - **Continue**: Until all features implemented
@@ -41,12 +41,14 @@ User can request advanced elicitation on any agent output:
41
41
  **Method Selection Strategy**:
42
42
 
43
43
  1. **Always Include Core Methods** (choose 3-4):
44
+
44
45
  - Expand or Contract for Audience
45
46
  - Critique and Refine
46
47
  - Identify Potential Risks
47
48
  - Assess Alignment with Goals
48
49
 
49
50
  2. **Context-Specific Methods** (choose 4-5):
51
+
50
52
  - **Technical Content**: Tree of Thoughts, ReWOO, Meta-Prompting
51
53
  - **User-Facing Content**: Agile Team Perspective, Stakeholder Roundtable
52
54
  - **Creative Content**: Innovation Tournament, Escape Room Challenge
@@ -27,16 +27,20 @@ Create detailed, implementation-ready stories for brownfield projects where trad
27
27
  Check for available documentation in this order:
28
28
 
29
29
  1. **Sharded PRD/Architecture** (docs/prd/, docs/architecture/)
30
+
30
31
  - If found, recommend using create-next-story task instead
31
32
 
32
33
  2. **Brownfield Architecture Document** (docs/brownfield-architecture.md or similar)
34
+
33
35
  - Created by document-project task
34
36
  - Contains actual system state, technical debt, workarounds
35
37
 
36
38
  3. **Brownfield PRD** (docs/prd.md)
39
+
37
40
  - May contain embedded technical details
38
41
 
39
42
  4. **Epic Files** (docs/epics/ or similar)
43
+
40
44
  - Created by brownfield-create-epic task
41
45
 
42
46
  5. **User-Provided Documentation**
@@ -128,7 +132,7 @@ Critical: For brownfield, ALWAYS include criteria about maintaining existing fun
128
132
  Standard structure:
129
133
 
130
134
  1. New functionality works as specified
131
- 2. Existing {{affected feature}} continues to work unchanged
135
+ 2. Existing {{affected feature}} continues to work unchanged
132
136
  3. Integration with {{existing system}} maintains current behavior
133
137
  4. No regression in {{related area}}
134
138
  5. Performance remains within acceptable bounds
@@ -139,16 +143,19 @@ Critical: This is where you'll need to be interactive with the user if informati
139
143
 
140
144
  Create Dev Technical Guidance section with available information:
141
145
 
142
- ```markdown
146
+ ````markdown
143
147
  ## Dev Technical Guidance
144
148
 
145
149
  ### Existing System Context
150
+
146
151
  [Extract from available documentation]
147
152
 
148
153
  ### Integration Approach
154
+
149
155
  [Based on patterns found or ask user]
150
156
 
151
157
  ### Technical Constraints
158
+
152
159
  [From documentation or user input]
153
160
 
154
161
  ### Missing Information
@@ -172,16 +179,19 @@ Example task structure for brownfield:
172
179
  ## Tasks / Subtasks
173
180
 
174
181
  - [ ] Task 1: Analyze existing {{component/feature}} implementation
182
+
175
183
  - [ ] Review {{specific files}} for current patterns
176
184
  - [ ] Document integration points
177
185
  - [ ] Identify potential impacts
178
186
 
179
187
  - [ ] Task 2: Implement {{new functionality}}
188
+
180
189
  - [ ] Follow pattern from {{example file}}
181
190
  - [ ] Integrate with {{existing component}}
182
191
  - [ ] Maintain compatibility with {{constraint}}
183
192
 
184
193
  - [ ] Task 3: Verify existing functionality
194
+
185
195
  - [ ] Test {{existing feature 1}} still works
186
196
  - [ ] Verify {{integration point}} behavior unchanged
187
197
  - [ ] Check performance impact
@@ -191,6 +201,7 @@ Example task structure for brownfield:
191
201
  - [ ] Integration test for {{integration point}}
192
202
  - [ ] Update existing tests if needed
193
203
  ```
204
+ ````
194
205
 
195
206
  ### 5. Risk Assessment and Mitigation
196
207
 
@@ -202,14 +213,17 @@ Add section for brownfield-specific risks:
202
213
  ## Risk Assessment
203
214
 
204
215
  ### Implementation Risks
216
+
205
217
  - **Primary Risk**: {{main risk to existing system}}
206
218
  - **Mitigation**: {{how to address}}
207
219
  - **Verification**: {{how to confirm safety}}
208
220
 
209
221
  ### Rollback Plan
222
+
210
223
  - {{Simple steps to undo changes if needed}}
211
224
 
212
225
  ### Safety Checks
226
+
213
227
  - [ ] Existing {{feature}} tested before changes
214
228
  - [ ] Changes can be feature-flagged or isolated
215
229
  - [ ] Rollback procedure documented
@@ -220,12 +234,14 @@ Add section for brownfield-specific risks:
220
234
  Before finalizing:
221
235
 
222
236
  1. **Completeness Check**:
237
+
223
238
  - [ ] Story has clear scope and acceptance criteria
224
239
  - [ ] Technical context is sufficient for implementation
225
240
  - [ ] Integration approach is defined
226
241
  - [ ] Risks are identified with mitigation
227
242
 
228
243
  2. **Safety Check**:
244
+
229
245
  - [ ] Existing functionality protection included
230
246
  - [ ] Rollback plan is feasible
231
247
  - [ ] Testing covers both new and existing features
@@ -252,6 +268,7 @@ Include header noting documentation context:
252
268
  <!-- Context: Brownfield enhancement to {{existing system}} -->
253
269
 
254
270
  ## Status: Draft
271
+
255
272
  [Rest of story content...]
256
273
  ```
257
274
 
@@ -272,7 +289,7 @@ Key Integration Points Identified:
272
289
  Risks Noted:
273
290
  - {{primary risk}}
274
291
 
275
- {{If missing info}}:
292
+ {{If missing info}}:
276
293
  Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
277
294
 
278
295
  Next Steps: