bmad-method 4.13.0 → 4.14.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.
@@ -2314,9 +2314,27 @@ Would you like to proceed with documentation indexing? Please provide the requir
2314
2314
  - Create a folder structure to organize the sharded documents
2315
2315
  - Maintain all content integrity including code blocks, diagrams, and markdown formatting
2316
2316
 
2317
- ## Recommended Method: @kayvan/markdown-tree-parser
2317
+ ## Primary Method: Automatic with markdown-tree
2318
2318
 
2319
- [[LLM: First, suggest the user install and use the @kayvan/markdown-tree-parser tool if the md-tree command is unavailable so we can have the best performance and reliable document sharding. Let the user know this will save cost of having the LLM to the expensive sharding operation. Give instructions for MPV NPX and PNPM global installs.]]
2319
+ [[LLM: First, check if markdownExploder is set to true in bmad-core/core-config.yml. If it is, attempt to run the command: `md-tree explode {input file} {output path}`.
2320
+
2321
+ If the command succeeds, inform the user that the document has been sharded successfully and STOP - do not proceed further.
2322
+
2323
+ If the command fails (especially with an error indicating the command is not found or not available), inform the user: "The markdownExploder setting is enabled but the md-tree command is not available. Please either:
2324
+
2325
+ 1. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
2326
+ 2. Or set markdownExploder to false in bmad-core/core-config.yml
2327
+
2328
+ **IMPORTANT: STOP HERE - do not proceed with manual sharding until one of the above actions is taken.**"
2329
+
2330
+ If markdownExploder is set to false, inform the user: "The markdownExploder setting is currently false. For better performance and reliability, you should:
2331
+
2332
+ 1. Set markdownExploder to true in bmad-core/core-config.yml
2333
+ 2. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
2334
+
2335
+ I will now proceed with the manual sharding process."
2336
+
2337
+ Then proceed with the manual method below ONLY if markdownExploder is false.]]
2320
2338
 
2321
2339
  ### Installation and Usage
2322
2340
 
@@ -2349,19 +2367,19 @@ If the user has @kayvan/markdown-tree-parser installed, use it and skip the manu
2349
2367
 
2350
2368
  ---
2351
2369
 
2352
- ## Manual Method (if @kayvan/markdown-tree-parser is not available)
2370
+ ## Manual Method (if @kayvan/markdown-tree-parser is not available or user indicated manual method)
2353
2371
 
2354
2372
  [[LLM: Only proceed with the manual instructions below if the user cannot or does not want to use @kayvan/markdown-tree-parser.]]
2355
2373
 
2356
2374
  ### Task Instructions
2357
2375
 
2358
- ### 1. Identify Document and Target Location
2376
+ 1. Identify Document and Target Location
2359
2377
 
2360
2378
  - Determine which document to shard (user-provided path)
2361
2379
  - Create a new folder under `docs/` with the same name as the document (without extension)
2362
2380
  - Example: `docs/prd.md` → create folder `docs/prd/`
2363
2381
 
2364
- ### 2. Parse and Extract Sections
2382
+ 2. Parse and Extract Sections
2365
2383
 
2366
2384
  [[LLM: When sharding the document:
2367
2385
 
@@ -2371,7 +2389,7 @@ If the user has @kayvan/markdown-tree-parser installed, use it and skip the manu
2371
2389
  - Extract the section heading and ALL content until the next level 2 section
2372
2390
  - Include all subsections, code blocks, diagrams, lists, tables, etc.
2373
2391
  - Be extremely careful with:
2374
- - Fenced code blocks (```) - ensure you capture the full block including closing backticks
2392
+ - Fenced code blocks (```) - ensure you capture the full block including closing backticks and account for potential misleading level 2's that are actually part of a fenced section example
2375
2393
  - Mermaid diagrams - preserve the complete diagram syntax
2376
2394
  - Nested markdown elements
2377
2395
  - Multi-line content that might contain ## inside code blocks
@@ -2390,7 +2408,7 @@ For each extracted section:
2390
2408
 
2391
2409
  2. **Adjust heading levels**:
2392
2410
 
2393
- - The level 2 heading becomes level 1 (# instead of ##)
2411
+ - The level 2 heading becomes level 1 (# instead of ##) in the sharded new document
2394
2412
  - All subsection levels decrease by 1:
2395
2413
 
2396
2414
  ```txt
@@ -6720,6 +6738,10 @@ Manual Test Steps: [[LLM: Include how if possible the user can manually test the
6720
6738
  [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update - remove this line to the SM]]
6721
6739
  [[LLM: (Dev Agent) Anything the SM needs to know that deviated from the story that might impact drafting the next story.]]
6722
6740
 
6741
+ ### File List
6742
+
6743
+ [[LLM: (Dev Agent) List every new file created, or existing file modified in a bullet list.]]
6744
+
6723
6745
  ### Change Log
6724
6746
 
6725
6747
  [[LLM: (SM Agent) When Drafting Story, leave next prompt in place for dev agent to remove and update- remove this line to the SM]]
@@ -6727,6 +6749,10 @@ Manual Test Steps: [[LLM: Include how if possible the user can manually test the
6727
6749
 
6728
6750
  | Date | Version | Description | Author |
6729
6751
  | :--- | :------ | :---------- | :----- |
6752
+
6753
+ ## QA Results
6754
+
6755
+ [[LLM: QA Agent Results]]
6730
6756
  ==================== END: templates#story-tmpl ====================
6731
6757
 
6732
6758
  ==================== START: checklists#architect-checklist ====================
@@ -8468,6 +8494,50 @@ BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework
8468
8494
  - **Quality Assurance**: Structured testing and validation
8469
8495
  - **Documentation**: Professional PRDs, architecture docs, user stories
8470
8496
 
8497
+ ## How BMAD Works
8498
+
8499
+ ### The Core Method
8500
+
8501
+ BMAD transforms you into a "Vibe CEO" - directing a team of specialized AI agents through structured workflows. Here's how:
8502
+
8503
+ 1. **You Direct, AI Executes**: You provide vision and decisions; agents handle implementation details
8504
+ 2. **Specialized Agents**: Each agent masters one role (PM, Developer, Architect, etc.)
8505
+ 3. **Structured Workflows**: Proven patterns guide you from idea to deployed code
8506
+ 4. **Clean Handoffs**: Fresh context windows ensure agents stay focused and effective
8507
+
8508
+ ### The Two-Phase Approach
8509
+
8510
+ **Phase 1: Planning (Web UI - Cost Effective)**
8511
+ - Use large context windows (Gemini's 1M tokens)
8512
+ - Generate comprehensive documents (PRD, Architecture)
8513
+ - Leverage multiple agents for brainstorming
8514
+ - Create once, use throughout development
8515
+
8516
+ **Phase 2: Development (IDE - Implementation)**
8517
+ - Shard documents into manageable pieces
8518
+ - Execute focused SM → Dev cycles
8519
+ - One story at a time, sequential progress
8520
+ - Real-time file operations and testing
8521
+
8522
+ ### The Development Loop
8523
+
8524
+ ```text
8525
+ 1. SM Agent (New Chat) → Creates next story from sharded docs
8526
+ 2. You → Review and approve story
8527
+ 3. Dev Agent (New Chat) → Implements approved story
8528
+ 4. QA Agent (New Chat) → Reviews and refactors code
8529
+ 5. You → Verify completion
8530
+ 6. Repeat until epic complete
8531
+ ```
8532
+
8533
+ ### Why This Works
8534
+
8535
+ - **Context Optimization**: Clean chats = better AI performance
8536
+ - **Role Clarity**: Agents don't context-switch = higher quality
8537
+ - **Incremental Progress**: Small stories = manageable complexity
8538
+ - **Human Oversight**: You validate each step = quality control
8539
+ - **Document-Driven**: Specs guide everything = consistency
8540
+
8471
8541
  ## Getting Started
8472
8542
 
8473
8543
  ### Quick Start Options
@@ -8482,7 +8552,7 @@ BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework
8482
8552
  5. Type `/help` to see available commands
8483
8553
 
8484
8554
  #### Option 2: IDE Integration
8485
- **Best for**: Cursor, Claude Code, Windsurf, VS Code users
8555
+ **Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code users
8486
8556
 
8487
8557
  ```bash
8488
8558
  # Interactive installation (recommended)
@@ -8491,13 +8561,22 @@ npx bmad-method install
8491
8561
 
8492
8562
  **Installation Steps**:
8493
8563
  - Choose "Complete installation"
8494
- - Select your IDE (Cursor, Claude Code, Windsurf, or Roo Code)
8564
+ - Select your IDE from supported options:
8565
+ - **Cursor**: Native AI integration
8566
+ - **Claude Code**: Anthropic's official IDE
8567
+ - **Windsurf**: Built-in AI capabilities
8568
+ - **Cline**: VS Code extension with AI features
8569
+ - **Roo Code**: Web-based IDE with agent support
8570
+
8571
+ **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.
8495
8572
 
8496
8573
  **Verify Installation**:
8497
8574
  - `.bmad-core/` folder created with all agents
8498
8575
  - IDE-specific integration files created
8499
8576
  - All agent commands/rules/modes available
8500
8577
 
8578
+ **Remember**: At its core, BMAD-METHOD is about mastering and harnessing prompt engineering. Any IDE with AI agent support can use BMAD - the framework provides the structured prompts and workflows that make AI development effective
8579
+
8501
8580
  ### Environment Selection Guide
8502
8581
 
8503
8582
  **Use Web UI for**:
@@ -8514,6 +8593,47 @@ npx bmad-method install
8514
8593
 
8515
8594
  **Cost-Saving Tip**: Create large documents (PRDs, architecture) in web UI, then copy to `docs/prd.md` and `docs/architecture.md` in your project before switching to IDE for development.
8516
8595
 
8596
+ ### IDE-Only Workflow Considerations
8597
+
8598
+ **Can you do everything in IDE?** Yes, but understand the tradeoffs:
8599
+
8600
+ **Pros of IDE-Only**:
8601
+ - Single environment workflow
8602
+ - Direct file operations from start
8603
+ - No copy/paste between environments
8604
+ - Immediate project integration
8605
+
8606
+ **Cons of IDE-Only**:
8607
+ - Higher token costs for large document creation
8608
+ - Smaller context windows (varies by IDE/model)
8609
+ - May hit limits during planning phases
8610
+ - Less cost-effective for brainstorming
8611
+
8612
+ **Using Web Agents in IDE**:
8613
+ - **NOT RECOMMENDED**: Web agents (PM, Architect) have rich dependencies designed for large contexts
8614
+ - **Why it matters**: Dev agents are kept lean to maximize coding context
8615
+ - **The principle**: "Dev agents code, planning agents plan" - mixing breaks this optimization
8616
+
8617
+ **About bmad-master and bmad-orchestrator**:
8618
+ - **bmad-master**: CAN do any task without switching agents, BUT...
8619
+ - **Still use specialized agents for planning**: PM, Architect, and UX Expert have tuned personas that produce better results
8620
+ - **Why specialization matters**: Each agent's personality and focus creates higher quality outputs
8621
+ - **If using bmad-master/orchestrator**: Fine for planning phases, but...
8622
+
8623
+ **CRITICAL RULE for Development**:
8624
+ - **ALWAYS use SM agent for story creation** - Never use bmad-master/orchestrator
8625
+ - **ALWAYS use Dev agent for implementation** - Never use bmad-master/orchestrator
8626
+ - **Why this matters**: SM and Dev agents are specifically optimized for the development workflow
8627
+ - **No exceptions**: Even if using bmad-master for everything else, switch to SM → Dev for implementation
8628
+
8629
+ **Best Practice for IDE-Only**:
8630
+ 1. Use PM/Architect/UX agents for planning (better than bmad-master)
8631
+ 2. Create documents directly in project
8632
+ 3. Shard immediately after creation
8633
+ 4. **MUST switch to SM agent** for story creation
8634
+ 5. **MUST switch to Dev agent** for implementation
8635
+ 6. Keep planning and coding in separate chat sessions
8636
+
8517
8637
  ## Core Configuration (core-config.yml)
8518
8638
 
8519
8639
  **New in V4**: The `bmad-core/core-config.yml` file is a critical innovation that enables BMAD to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
@@ -8791,10 +8911,14 @@ that can handle [specific requirements]."
8791
8911
 
8792
8912
  **Prerequisites**: Planning documents must exist in `docs/` folder
8793
8913
 
8794
- 1. **Document Sharding**:
8795
- - `@bmad-master` or `@po` shard `docs/prd.md` to `docs/prd/` folder
8796
- - If architecture exists, shard to `docs/architecture/` folder
8797
- - Results in multiple manageable documents and epic files
8914
+ 1. **Document Sharding** (CRITICAL STEP):
8915
+ - Documents created by PM/Architect (in Web or IDE) MUST be sharded for development
8916
+ - Two methods to shard:
8917
+ a) **Manual**: Drag `shard-doc` task + document file into chat
8918
+ b) **Agent**: Ask `@bmad-master` or `@po` to shard documents
8919
+ - Shards `docs/prd.md` → `docs/prd/` folder
8920
+ - Shards `docs/architecture.md` → `docs/architecture/` folder
8921
+ - **WARNING**: Do NOT shard in Web UI - copying many small files is painful!
8798
8922
 
8799
8923
  2. **Verify Sharded Content**:
8800
8924
  - At least one `epic-n.md` file in `docs/prd/` with stories in development order
@@ -8808,19 +8932,34 @@ that can handle [specific requirements]."
8808
8932
 
8809
8933
  3. **Development Cycle** (Sequential, one story at a time):
8810
8934
 
8811
- **Step 1 - Story Creation**: New chat window → `@sm` → `*create`
8935
+ **CRITICAL CONTEXT MANAGEMENT**:
8936
+ - **Context windows matter!** Always use fresh, clean context windows
8937
+ - **Model selection matters!** Use most powerful thinking model for SM story creation
8938
+ - **ALWAYS start new chat between SM, Dev, and QA work**
8939
+
8940
+ **Step 1 - Story Creation**:
8941
+ - **NEW CLEAN CHAT** → Select powerful model → `@sm` → `*create`
8812
8942
  - SM executes create-next-story task
8813
8943
  - Review generated story in `docs/stories/`
8814
8944
  - Update status from "Draft" to "Approved"
8815
8945
 
8816
- **Step 2 - Story Implementation**: New chat window → `@dev`
8946
+ **Step 2 - Story Implementation**:
8947
+ - **NEW CLEAN CHAT** → `@dev`
8817
8948
  - Agent asks which story to implement
8818
8949
  - Include story file content to save dev agent lookup time
8819
8950
  - Dev follows tasks/subtasks, marking completion
8820
- - Dev leaves notes for SM about any deviations
8821
- - Update status to "Done"
8951
+ - Dev maintains File List of all changes
8952
+ - Dev marks story as "Review" when complete with all tests passing
8822
8953
 
8823
- **Step 3 - Repeat**: Continue SM → Dev cycle until all epic stories complete
8954
+ **Step 3 - Senior QA Review**:
8955
+ - **NEW CLEAN CHAT** → `@qa` → execute review-story task
8956
+ - QA performs senior developer code review
8957
+ - QA can refactor and improve code directly
8958
+ - QA appends results to story's QA Results section
8959
+ - If approved: Status → "Done"
8960
+ - If changes needed: Status stays "Review" with unchecked items for dev
8961
+
8962
+ **Step 4 - Repeat**: Continue SM → Dev → QA cycle until all epic stories complete
8824
8963
 
8825
8964
  **Important**: Only 1 story in progress at a time, worked sequentially until all epic stories complete.
8826
8965
 
@@ -8840,12 +8979,27 @@ Each status change requires user verification and approval before proceeding.
8840
8979
  - Development execution
8841
8980
  - Testing and deployment
8842
8981
 
8843
- #### Brownfield Enhancement
8844
- - Current system analysis
8845
- - Enhancement planning
8846
- - Impact assessment
8847
- - Incremental development
8848
- - Integration testing
8982
+ #### Brownfield Enhancement (Existing Projects)
8983
+
8984
+ **Key Concept**: Brownfield development requires generating good documentation for agents to understand your existing project.
8985
+
8986
+ **Recommended Approach**:
8987
+ 1. **Analysis Phase**: Use Gemini Web or AI Studio with their 1M+ context windows
8988
+ 2. **Document Generation**: Ask Architect agent to analyze your project and run `document-project` task
8989
+ 3. **PRD Creation**: Even brownfield projects typically need a PRD unless:
8990
+ - Very small, focused changes
8991
+ - Using `brownfield-create-epic` for single epic without full PRD
8992
+ 4. **Architecture Assessment**: Use brownfield-specific templates for complex enhancements
8993
+
8994
+ **Brownfield Templates Available**:
8995
+ - `brownfield-prd-tmpl.md`: For substantial enhancements requiring multiple stories
8996
+ - `brownfield-architecture-tmpl.md`: For complex changes impacting system architecture
8997
+ - Both templates emphasize compatibility and integration with existing systems
8998
+
8999
+ **When to Skip PRD**:
9000
+ - For focused, single-epic work, use `brownfield-create-epic` task with detailed guidance
9001
+ - For one-off stories without larger context
9002
+ - Note: These tasks will evolve to require some documentation (potentially from `document-project`)
8849
9003
 
8850
9004
  ## Document Creation Best Practices
8851
9005
 
@@ -8926,12 +9080,94 @@ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sh
8926
9080
  - **Keep conversations focused** - One agent, one task per conversation
8927
9081
  - **Review everything** - Always review and approve before marking complete
8928
9082
 
9083
+ ## Contributing to BMAD-METHOD
9084
+
9085
+ ### Quick Contribution Guidelines
9086
+
9087
+ For full details, see `CONTRIBUTING.md`. Key points:
9088
+
9089
+ **Fork Workflow**:
9090
+ 1. Fork the repository
9091
+ 2. Create feature branches
9092
+ 3. Submit PRs to `next` branch (default) or `main` for critical fixes only
9093
+ 4. Keep PRs small: 200-400 lines ideal, 800 lines maximum
9094
+ 5. One feature/fix per PR
9095
+
9096
+ **PR Requirements**:
9097
+ - Clear descriptions (max 200 words) with What/Why/How/Testing
9098
+ - Use conventional commits (feat:, fix:, docs:)
9099
+ - Atomic commits - one logical change per commit
9100
+ - Must align with guiding principles
9101
+
9102
+ **Core Principles** (from GUIDING-PRINCIPLES.md):
9103
+ - **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
9104
+ - **Natural Language First**: Everything in markdown, no code in core
9105
+ - **Core vs Expansion Packs**: Core for universal needs, packs for specialized domains
9106
+ - **Design Philosophy**: "Dev agents code, planning agents plan"
9107
+
9108
+ ## Expansion Packs
9109
+
9110
+ ### What Are Expansion Packs?
9111
+
9112
+ Expansion packs extend BMAD-METHOD beyond traditional software development into ANY domain. They provide specialized agent teams, templates, and workflows while keeping the core framework lean and focused on development.
9113
+
9114
+ ### Why Use Expansion Packs?
9115
+
9116
+ 1. **Keep Core Lean**: Dev agents maintain maximum context for coding
9117
+ 2. **Domain Expertise**: Deep, specialized knowledge without bloating core
9118
+ 3. **Community Innovation**: Anyone can create and share packs
9119
+ 4. **Modular Design**: Install only what you need
9120
+
9121
+ ### Available Expansion Packs
9122
+
9123
+ **Technical Packs**:
9124
+ - **Infrastructure/DevOps**: Cloud architects, SRE experts, security specialists
9125
+ - **Game Development**: Game designers, level designers, narrative writers
9126
+ - **Mobile Development**: iOS/Android specialists, mobile UX experts
9127
+ - **Data Science**: ML engineers, data scientists, visualization experts
9128
+
9129
+ **Non-Technical Packs**:
9130
+ - **Business Strategy**: Consultants, financial analysts, marketing strategists
9131
+ - **Creative Writing**: Plot architects, character developers, world builders
9132
+ - **Health & Wellness**: Fitness trainers, nutritionists, habit engineers
9133
+ - **Education**: Curriculum designers, assessment specialists
9134
+ - **Legal Support**: Contract analysts, compliance checkers
9135
+
9136
+ **Specialty Packs**:
9137
+ - **Expansion Creator**: Tools to build your own expansion packs
9138
+ - **RPG Game Master**: Tabletop gaming assistance
9139
+ - **Life Event Planning**: Wedding planners, event coordinators
9140
+ - **Scientific Research**: Literature reviewers, methodology designers
9141
+
9142
+ ### Using Expansion Packs
9143
+
9144
+ 1. **Browse Available Packs**: Check `expansion-packs/` directory
9145
+ 2. **Get Inspiration**: See `docs/expansion-pack-ideas.md` for detailed examples
9146
+ 3. **Install via CLI**:
9147
+ ```bash
9148
+ npx bmad-method install
9149
+ # Select "Install expansion pack" option
9150
+ ```
9151
+ 4. **Use in Your Workflow**: Installed packs integrate seamlessly with existing agents
9152
+
9153
+ ### Creating Custom Expansion Packs
9154
+
9155
+ Use the **expansion-creator** pack to build your own:
9156
+
9157
+ 1. **Define Domain**: What expertise are you capturing?
9158
+ 2. **Design Agents**: Create specialized roles with clear boundaries
9159
+ 3. **Build Resources**: Tasks, templates, checklists for your domain
9160
+ 4. **Test & Share**: Validate with real use cases, share with community
9161
+
9162
+ **Key Principle**: Expansion packs democratize expertise by making specialized knowledge accessible through AI agents.
9163
+
8929
9164
  ## Getting Help
8930
9165
 
8931
9166
  - **Commands**: Use `/help` in any environment to see available commands
8932
9167
  - **Agent Switching**: Use `/switch agent-name` with orchestrator for role changes
8933
9168
  - **Documentation**: Check `docs/` folder for project-specific context
8934
9169
  - **Community**: Discord and GitHub resources available for support
9170
+ - **Contributing**: See `CONTRIBUTING.md` for full guidelines
8935
9171
  ==================== END: data#bmad-kb ====================
8936
9172
 
8937
9173
  ==================== START: data#technical-preferences ====================