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.
@@ -1633,6 +1633,50 @@ BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework
1633
1633
  - **Quality Assurance**: Structured testing and validation
1634
1634
  - **Documentation**: Professional PRDs, architecture docs, user stories
1635
1635
 
1636
+ ## How BMAD Works
1637
+
1638
+ ### The Core Method
1639
+
1640
+ BMAD transforms you into a "Vibe CEO" - directing a team of specialized AI agents through structured workflows. Here's how:
1641
+
1642
+ 1. **You Direct, AI Executes**: You provide vision and decisions; agents handle implementation details
1643
+ 2. **Specialized Agents**: Each agent masters one role (PM, Developer, Architect, etc.)
1644
+ 3. **Structured Workflows**: Proven patterns guide you from idea to deployed code
1645
+ 4. **Clean Handoffs**: Fresh context windows ensure agents stay focused and effective
1646
+
1647
+ ### The Two-Phase Approach
1648
+
1649
+ **Phase 1: Planning (Web UI - Cost Effective)**
1650
+ - Use large context windows (Gemini's 1M tokens)
1651
+ - Generate comprehensive documents (PRD, Architecture)
1652
+ - Leverage multiple agents for brainstorming
1653
+ - Create once, use throughout development
1654
+
1655
+ **Phase 2: Development (IDE - Implementation)**
1656
+ - Shard documents into manageable pieces
1657
+ - Execute focused SM → Dev cycles
1658
+ - One story at a time, sequential progress
1659
+ - Real-time file operations and testing
1660
+
1661
+ ### The Development Loop
1662
+
1663
+ ```text
1664
+ 1. SM Agent (New Chat) → Creates next story from sharded docs
1665
+ 2. You → Review and approve story
1666
+ 3. Dev Agent (New Chat) → Implements approved story
1667
+ 4. QA Agent (New Chat) → Reviews and refactors code
1668
+ 5. You → Verify completion
1669
+ 6. Repeat until epic complete
1670
+ ```
1671
+
1672
+ ### Why This Works
1673
+
1674
+ - **Context Optimization**: Clean chats = better AI performance
1675
+ - **Role Clarity**: Agents don't context-switch = higher quality
1676
+ - **Incremental Progress**: Small stories = manageable complexity
1677
+ - **Human Oversight**: You validate each step = quality control
1678
+ - **Document-Driven**: Specs guide everything = consistency
1679
+
1636
1680
  ## Getting Started
1637
1681
 
1638
1682
  ### Quick Start Options
@@ -1647,7 +1691,7 @@ BMAD-METHOD (Breakthrough Method of Agile AI-driven Development) is a framework
1647
1691
  5. Type `/help` to see available commands
1648
1692
 
1649
1693
  #### Option 2: IDE Integration
1650
- **Best for**: Cursor, Claude Code, Windsurf, VS Code users
1694
+ **Best for**: Cursor, Claude Code, Windsurf, Cline, Roo Code users
1651
1695
 
1652
1696
  ```bash
1653
1697
  # Interactive installation (recommended)
@@ -1656,13 +1700,22 @@ npx bmad-method install
1656
1700
 
1657
1701
  **Installation Steps**:
1658
1702
  - Choose "Complete installation"
1659
- - Select your IDE (Cursor, Claude Code, Windsurf, or Roo Code)
1703
+ - Select your IDE from supported options:
1704
+ - **Cursor**: Native AI integration
1705
+ - **Claude Code**: Anthropic's official IDE
1706
+ - **Windsurf**: Built-in AI capabilities
1707
+ - **Cline**: VS Code extension with AI features
1708
+ - **Roo Code**: Web-based IDE with agent support
1709
+
1710
+ **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.
1660
1711
 
1661
1712
  **Verify Installation**:
1662
1713
  - `.bmad-core/` folder created with all agents
1663
1714
  - IDE-specific integration files created
1664
1715
  - All agent commands/rules/modes available
1665
1716
 
1717
+ **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
1718
+
1666
1719
  ### Environment Selection Guide
1667
1720
 
1668
1721
  **Use Web UI for**:
@@ -1679,6 +1732,47 @@ npx bmad-method install
1679
1732
 
1680
1733
  **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.
1681
1734
 
1735
+ ### IDE-Only Workflow Considerations
1736
+
1737
+ **Can you do everything in IDE?** Yes, but understand the tradeoffs:
1738
+
1739
+ **Pros of IDE-Only**:
1740
+ - Single environment workflow
1741
+ - Direct file operations from start
1742
+ - No copy/paste between environments
1743
+ - Immediate project integration
1744
+
1745
+ **Cons of IDE-Only**:
1746
+ - Higher token costs for large document creation
1747
+ - Smaller context windows (varies by IDE/model)
1748
+ - May hit limits during planning phases
1749
+ - Less cost-effective for brainstorming
1750
+
1751
+ **Using Web Agents in IDE**:
1752
+ - **NOT RECOMMENDED**: Web agents (PM, Architect) have rich dependencies designed for large contexts
1753
+ - **Why it matters**: Dev agents are kept lean to maximize coding context
1754
+ - **The principle**: "Dev agents code, planning agents plan" - mixing breaks this optimization
1755
+
1756
+ **About bmad-master and bmad-orchestrator**:
1757
+ - **bmad-master**: CAN do any task without switching agents, BUT...
1758
+ - **Still use specialized agents for planning**: PM, Architect, and UX Expert have tuned personas that produce better results
1759
+ - **Why specialization matters**: Each agent's personality and focus creates higher quality outputs
1760
+ - **If using bmad-master/orchestrator**: Fine for planning phases, but...
1761
+
1762
+ **CRITICAL RULE for Development**:
1763
+ - **ALWAYS use SM agent for story creation** - Never use bmad-master/orchestrator
1764
+ - **ALWAYS use Dev agent for implementation** - Never use bmad-master/orchestrator
1765
+ - **Why this matters**: SM and Dev agents are specifically optimized for the development workflow
1766
+ - **No exceptions**: Even if using bmad-master for everything else, switch to SM → Dev for implementation
1767
+
1768
+ **Best Practice for IDE-Only**:
1769
+ 1. Use PM/Architect/UX agents for planning (better than bmad-master)
1770
+ 2. Create documents directly in project
1771
+ 3. Shard immediately after creation
1772
+ 4. **MUST switch to SM agent** for story creation
1773
+ 5. **MUST switch to Dev agent** for implementation
1774
+ 6. Keep planning and coding in separate chat sessions
1775
+
1682
1776
  ## Core Configuration (core-config.yml)
1683
1777
 
1684
1778
  **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.
@@ -1956,10 +2050,14 @@ that can handle [specific requirements]."
1956
2050
 
1957
2051
  **Prerequisites**: Planning documents must exist in `docs/` folder
1958
2052
 
1959
- 1. **Document Sharding**:
1960
- - `@bmad-master` or `@po` shard `docs/prd.md` to `docs/prd/` folder
1961
- - If architecture exists, shard to `docs/architecture/` folder
1962
- - Results in multiple manageable documents and epic files
2053
+ 1. **Document Sharding** (CRITICAL STEP):
2054
+ - Documents created by PM/Architect (in Web or IDE) MUST be sharded for development
2055
+ - Two methods to shard:
2056
+ a) **Manual**: Drag `shard-doc` task + document file into chat
2057
+ b) **Agent**: Ask `@bmad-master` or `@po` to shard documents
2058
+ - Shards `docs/prd.md` → `docs/prd/` folder
2059
+ - Shards `docs/architecture.md` → `docs/architecture/` folder
2060
+ - **WARNING**: Do NOT shard in Web UI - copying many small files is painful!
1963
2061
 
1964
2062
  2. **Verify Sharded Content**:
1965
2063
  - At least one `epic-n.md` file in `docs/prd/` with stories in development order
@@ -1973,19 +2071,34 @@ that can handle [specific requirements]."
1973
2071
 
1974
2072
  3. **Development Cycle** (Sequential, one story at a time):
1975
2073
 
1976
- **Step 1 - Story Creation**: New chat window → `@sm` → `*create`
2074
+ **CRITICAL CONTEXT MANAGEMENT**:
2075
+ - **Context windows matter!** Always use fresh, clean context windows
2076
+ - **Model selection matters!** Use most powerful thinking model for SM story creation
2077
+ - **ALWAYS start new chat between SM, Dev, and QA work**
2078
+
2079
+ **Step 1 - Story Creation**:
2080
+ - **NEW CLEAN CHAT** → Select powerful model → `@sm` → `*create`
1977
2081
  - SM executes create-next-story task
1978
2082
  - Review generated story in `docs/stories/`
1979
2083
  - Update status from "Draft" to "Approved"
1980
2084
 
1981
- **Step 2 - Story Implementation**: New chat window → `@dev`
2085
+ **Step 2 - Story Implementation**:
2086
+ - **NEW CLEAN CHAT** → `@dev`
1982
2087
  - Agent asks which story to implement
1983
2088
  - Include story file content to save dev agent lookup time
1984
2089
  - Dev follows tasks/subtasks, marking completion
1985
- - Dev leaves notes for SM about any deviations
1986
- - Update status to "Done"
2090
+ - Dev maintains File List of all changes
2091
+ - Dev marks story as "Review" when complete with all tests passing
1987
2092
 
1988
- **Step 3 - Repeat**: Continue SM → Dev cycle until all epic stories complete
2093
+ **Step 3 - Senior QA Review**:
2094
+ - **NEW CLEAN CHAT** → `@qa` → execute review-story task
2095
+ - QA performs senior developer code review
2096
+ - QA can refactor and improve code directly
2097
+ - QA appends results to story's QA Results section
2098
+ - If approved: Status → "Done"
2099
+ - If changes needed: Status stays "Review" with unchecked items for dev
2100
+
2101
+ **Step 4 - Repeat**: Continue SM → Dev → QA cycle until all epic stories complete
1989
2102
 
1990
2103
  **Important**: Only 1 story in progress at a time, worked sequentially until all epic stories complete.
1991
2104
 
@@ -2005,12 +2118,27 @@ Each status change requires user verification and approval before proceeding.
2005
2118
  - Development execution
2006
2119
  - Testing and deployment
2007
2120
 
2008
- #### Brownfield Enhancement
2009
- - Current system analysis
2010
- - Enhancement planning
2011
- - Impact assessment
2012
- - Incremental development
2013
- - Integration testing
2121
+ #### Brownfield Enhancement (Existing Projects)
2122
+
2123
+ **Key Concept**: Brownfield development requires generating good documentation for agents to understand your existing project.
2124
+
2125
+ **Recommended Approach**:
2126
+ 1. **Analysis Phase**: Use Gemini Web or AI Studio with their 1M+ context windows
2127
+ 2. **Document Generation**: Ask Architect agent to analyze your project and run `document-project` task
2128
+ 3. **PRD Creation**: Even brownfield projects typically need a PRD unless:
2129
+ - Very small, focused changes
2130
+ - Using `brownfield-create-epic` for single epic without full PRD
2131
+ 4. **Architecture Assessment**: Use brownfield-specific templates for complex enhancements
2132
+
2133
+ **Brownfield Templates Available**:
2134
+ - `brownfield-prd-tmpl.md`: For substantial enhancements requiring multiple stories
2135
+ - `brownfield-architecture-tmpl.md`: For complex changes impacting system architecture
2136
+ - Both templates emphasize compatibility and integration with existing systems
2137
+
2138
+ **When to Skip PRD**:
2139
+ - For focused, single-epic work, use `brownfield-create-epic` task with detailed guidance
2140
+ - For one-off stories without larger context
2141
+ - Note: These tasks will evolve to require some documentation (potentially from `document-project`)
2014
2142
 
2015
2143
  ## Document Creation Best Practices
2016
2144
 
@@ -2091,12 +2219,94 @@ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sh
2091
2219
  - **Keep conversations focused** - One agent, one task per conversation
2092
2220
  - **Review everything** - Always review and approve before marking complete
2093
2221
 
2222
+ ## Contributing to BMAD-METHOD
2223
+
2224
+ ### Quick Contribution Guidelines
2225
+
2226
+ For full details, see `CONTRIBUTING.md`. Key points:
2227
+
2228
+ **Fork Workflow**:
2229
+ 1. Fork the repository
2230
+ 2. Create feature branches
2231
+ 3. Submit PRs to `next` branch (default) or `main` for critical fixes only
2232
+ 4. Keep PRs small: 200-400 lines ideal, 800 lines maximum
2233
+ 5. One feature/fix per PR
2234
+
2235
+ **PR Requirements**:
2236
+ - Clear descriptions (max 200 words) with What/Why/How/Testing
2237
+ - Use conventional commits (feat:, fix:, docs:)
2238
+ - Atomic commits - one logical change per commit
2239
+ - Must align with guiding principles
2240
+
2241
+ **Core Principles** (from GUIDING-PRINCIPLES.md):
2242
+ - **Dev Agents Must Be Lean**: Minimize dependencies, save context for code
2243
+ - **Natural Language First**: Everything in markdown, no code in core
2244
+ - **Core vs Expansion Packs**: Core for universal needs, packs for specialized domains
2245
+ - **Design Philosophy**: "Dev agents code, planning agents plan"
2246
+
2247
+ ## Expansion Packs
2248
+
2249
+ ### What Are Expansion Packs?
2250
+
2251
+ 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.
2252
+
2253
+ ### Why Use Expansion Packs?
2254
+
2255
+ 1. **Keep Core Lean**: Dev agents maintain maximum context for coding
2256
+ 2. **Domain Expertise**: Deep, specialized knowledge without bloating core
2257
+ 3. **Community Innovation**: Anyone can create and share packs
2258
+ 4. **Modular Design**: Install only what you need
2259
+
2260
+ ### Available Expansion Packs
2261
+
2262
+ **Technical Packs**:
2263
+ - **Infrastructure/DevOps**: Cloud architects, SRE experts, security specialists
2264
+ - **Game Development**: Game designers, level designers, narrative writers
2265
+ - **Mobile Development**: iOS/Android specialists, mobile UX experts
2266
+ - **Data Science**: ML engineers, data scientists, visualization experts
2267
+
2268
+ **Non-Technical Packs**:
2269
+ - **Business Strategy**: Consultants, financial analysts, marketing strategists
2270
+ - **Creative Writing**: Plot architects, character developers, world builders
2271
+ - **Health & Wellness**: Fitness trainers, nutritionists, habit engineers
2272
+ - **Education**: Curriculum designers, assessment specialists
2273
+ - **Legal Support**: Contract analysts, compliance checkers
2274
+
2275
+ **Specialty Packs**:
2276
+ - **Expansion Creator**: Tools to build your own expansion packs
2277
+ - **RPG Game Master**: Tabletop gaming assistance
2278
+ - **Life Event Planning**: Wedding planners, event coordinators
2279
+ - **Scientific Research**: Literature reviewers, methodology designers
2280
+
2281
+ ### Using Expansion Packs
2282
+
2283
+ 1. **Browse Available Packs**: Check `expansion-packs/` directory
2284
+ 2. **Get Inspiration**: See `docs/expansion-pack-ideas.md` for detailed examples
2285
+ 3. **Install via CLI**:
2286
+ ```bash
2287
+ npx bmad-method install
2288
+ # Select "Install expansion pack" option
2289
+ ```
2290
+ 4. **Use in Your Workflow**: Installed packs integrate seamlessly with existing agents
2291
+
2292
+ ### Creating Custom Expansion Packs
2293
+
2294
+ Use the **expansion-creator** pack to build your own:
2295
+
2296
+ 1. **Define Domain**: What expertise are you capturing?
2297
+ 2. **Design Agents**: Create specialized roles with clear boundaries
2298
+ 3. **Build Resources**: Tasks, templates, checklists for your domain
2299
+ 4. **Test & Share**: Validate with real use cases, share with community
2300
+
2301
+ **Key Principle**: Expansion packs democratize expertise by making specialized knowledge accessible through AI agents.
2302
+
2094
2303
  ## Getting Help
2095
2304
 
2096
2305
  - **Commands**: Use `/help` in any environment to see available commands
2097
2306
  - **Agent Switching**: Use `/switch agent-name` with orchestrator for role changes
2098
2307
  - **Documentation**: Check `docs/` folder for project-specific context
2099
2308
  - **Community**: Discord and GitHub resources available for support
2309
+ - **Contributing**: See `CONTRIBUTING.md` for full guidelines
2100
2310
  ==================== END: data#bmad-kb ====================
2101
2311
 
2102
2312
  ==================== START: utils#template-format ====================