bmad-method 1.1.0 → 4.4.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 (87) hide show
  1. package/.bmad-core/agents/analyst.md +14 -20
  2. package/.bmad-core/agents/architect.md +15 -20
  3. package/.bmad-core/agents/bmad-master.md +18 -26
  4. package/.bmad-core/agents/bmad-orchestrator.md +16 -28
  5. package/.bmad-core/agents/dev.md +5 -4
  6. package/.bmad-core/agents/pm.md +11 -16
  7. package/.bmad-core/agents/sm.md +20 -25
  8. package/.bmad-core/bmad-core-config.yml +60 -0
  9. package/.bmad-core/data/bmad-kb.md +12 -1
  10. package/.bmad-core/tasks/doc-migration-task.md +91 -146
  11. package/.bmad-core/tasks/document-project.md +389 -0
  12. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +41 -48
  13. package/.bmad-core/tasks/index-docs.md +4 -1
  14. package/.bmad-core/templates/architecture-tmpl.md +15 -12
  15. package/.bmad-core/templates/fullstack-architecture-tmpl.md +85 -103
  16. package/.bmad-core/templates/prd-tmpl.md +1 -1
  17. package/.bmad-core/templates/simple-project-prd-tmpl.md +461 -0
  18. package/.bmad-core/templates/story-tmpl.md +2 -2
  19. package/.bmad-core/utils/workflow-management.md +14 -15
  20. package/.bmad-core/web-bundles/agents/analyst.txt +26 -21
  21. package/.bmad-core/web-bundles/agents/architect.txt +605 -233
  22. package/.bmad-core/web-bundles/agents/bmad-master.txt +457 -1039
  23. package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +36 -903
  24. package/.bmad-core/web-bundles/agents/dev.txt +5 -4
  25. package/.bmad-core/web-bundles/agents/pm.txt +476 -17
  26. package/.bmad-core/web-bundles/agents/po.txt +2 -2
  27. package/.bmad-core/web-bundles/agents/sm.txt +22 -27
  28. package/.bmad-core/web-bundles/agents/ux-expert.txt +41 -48
  29. package/.bmad-core/web-bundles/teams/team-all.txt +4394 -4447
  30. package/.bmad-core/web-bundles/teams/team-fullstack.txt +2760 -2809
  31. package/.bmad-core/web-bundles/teams/team-no-ui.txt +2718 -2760
  32. package/.bmad-core/workflows/greenfield-fullstack.yml +3 -3
  33. package/.claude/commands/analyst.md +14 -20
  34. package/.claude/commands/architect.md +15 -20
  35. package/.claude/commands/bmad-master.md +18 -26
  36. package/.claude/commands/bmad-orchestrator.md +16 -28
  37. package/.claude/commands/dev.md +5 -4
  38. package/.claude/commands/pm.md +11 -16
  39. package/.claude/commands/sm.md +20 -25
  40. package/.cursor/rules/analyst.mdc +13 -19
  41. package/.cursor/rules/architect.mdc +14 -19
  42. package/.cursor/rules/bmad-master.mdc +18 -26
  43. package/.cursor/rules/bmad-orchestrator.mdc +15 -27
  44. package/.cursor/rules/dev.mdc +5 -4
  45. package/.cursor/rules/pm.mdc +11 -16
  46. package/.cursor/rules/sm.mdc +19 -24
  47. package/.releaserc.json +2 -1
  48. package/.vscode/settings.json +4 -0
  49. package/.windsurf/rules/analyst.md +13 -19
  50. package/.windsurf/rules/architect.md +14 -19
  51. package/.windsurf/rules/bmad-master.md +18 -26
  52. package/.windsurf/rules/bmad-orchestrator.md +15 -27
  53. package/.windsurf/rules/dev.md +5 -4
  54. package/.windsurf/rules/pm.md +11 -16
  55. package/.windsurf/rules/sm.md +19 -24
  56. package/CHANGELOG.md +120 -2
  57. package/CONTRIBUTING.md +2 -0
  58. package/README.md +21 -3
  59. package/{.bmad-core → creator-tools}/tasks/create-agent.md +10 -12
  60. package/{.bmad-core/tasks/create-expansion-pack.md → creator-tools/tasks/generate-expansion-pack.md} +8 -6
  61. package/docs/bmad-workflow-guide.md +161 -0
  62. package/docs/claude-code-guide.md +119 -0
  63. package/docs/core-architecture.md +213 -0
  64. package/docs/cursor-guide.md +127 -0
  65. package/docs/how-to-contribute-with-pull-requests.md +141 -0
  66. package/docs/roo-code-guide.md +140 -0
  67. package/docs/user-guide.md +1044 -0
  68. package/docs/windsurf-guide.md +127 -0
  69. package/expansion-packs/README.md +1 -111
  70. package/expansion-packs/infrastructure-devops/agents/infra-devops-platform.md +1 -1
  71. package/expansion-packs/infrastructure-devops/tasks/create-doc.md +74 -0
  72. package/package.json +19 -13
  73. package/tools/builders/web-builder.js +16 -15
  74. package/tools/installer/bin/bmad.js +50 -29
  75. package/tools/installer/lib/file-manager.js +20 -3
  76. package/tools/installer/lib/ide-setup.js +11 -1
  77. package/tools/installer/lib/installer.js +149 -29
  78. package/tools/installer/package-lock.json +537 -335
  79. package/tools/installer/package.json +7 -7
  80. package/tools/lib/dependency-resolver.js +1 -1
  81. package/tools/semantic-release-sync-installer.js +31 -0
  82. package/tools/sync-installer-version.js +34 -0
  83. package/tools/upgraders/v3-to-v4-upgrader.js +18 -13
  84. package/tools/version-bump.js +33 -26
  85. package/tools/yaml-format.js +54 -25
  86. package/.bmad-core/schemas/agent-team-schema.yml +0 -153
  87. package/.bmad-core/tasks/create-team.md +0 -229
@@ -0,0 +1,141 @@
1
+ # How to Contribute with Pull Requests
2
+
3
+ **New to GitHub and pull requests?** This guide will walk you through the basics step by step.
4
+
5
+ ## What is a Pull Request?
6
+
7
+ A pull request (PR) is how you propose changes to a project on GitHub. Think of it as saying "Here are some changes I'd like to make - please review and consider adding them to the main project."
8
+
9
+ ## Before You Start
10
+
11
+ ⚠️ **Important**: Please keep your contributions small and focused! We prefer many small, clear changes rather than one massive change. If you're planning something big, please [open an issue](https://github.com/bmadcode/bmad-method/issues) or start a [discussion](https://github.com/bmadcode/bmad-method/discussions) first.
12
+
13
+ ## Step-by-Step Guide
14
+
15
+ ### 1. Fork the Repository
16
+
17
+ 1. Go to the [BMAD-METHOD repository](https://github.com/bmadcode/bmad-method)
18
+ 2. Click the "Fork" button in the top-right corner
19
+ 3. This creates your own copy of the project
20
+
21
+ ### 2. Clone Your Fork
22
+
23
+ ````bash
24
+ # Replace YOUR-USERNAME with your actual GitHub username
25
+ git clone https://github.com/YOUR-USERNAME/bmad-method.git
26
+ cd bmad-method
27
+ ```text
28
+
29
+ ### 3. Create a New Branch
30
+
31
+ **Never work directly on the `main` branch!** Always create a new branch for your changes:
32
+
33
+ ```bash
34
+ # Create and switch to a new branch
35
+ git checkout -b fix/typo-in-readme
36
+ # or
37
+ git checkout -b feature/add-new-agent
38
+ ````
39
+
40
+ **Branch naming tips:**
41
+
42
+ - `fix/description` - for bug fixes
43
+ - `feature/description` - for new features
44
+ - `docs/description` - for documentation changes
45
+
46
+ ### 4. Make Your Changes
47
+
48
+ - Edit the files you want to change
49
+ - Keep changes small and focused on one thing
50
+ - Test your changes if possible
51
+
52
+ ### 5. Commit Your Changes
53
+
54
+ ````bash
55
+ # Add your changes
56
+ git add .
57
+
58
+ # Commit with a clear message
59
+ git commit -m "Fix typo in README.md"
60
+ ```text
61
+
62
+ **Good commit messages:**
63
+
64
+ - "Fix typo in installation instructions"
65
+ - "Add example for new agent usage"
66
+ - "Update broken link in docs"
67
+
68
+ **Bad commit messages:**
69
+
70
+ - "stuff"
71
+ - "changes"
72
+ - "update"
73
+
74
+ ### 6. Push to Your Fork
75
+
76
+ ```bash
77
+ # Push your branch to your fork
78
+ git push origin fix/typo-in-readme
79
+ ````
80
+
81
+ ### 7. Create the Pull Request
82
+
83
+ 1. Go to your fork on GitHub
84
+ 2. You'll see a green "Compare & pull request" button - click it
85
+ 3. Fill out the PR template:
86
+ - **Title**: Clear, descriptive title
87
+ - **Description**: Explain what you changed and why
88
+
89
+ ### 8. Wait for Review
90
+
91
+ - A maintainer will review your PR
92
+ - They might ask for changes
93
+ - Be patient and responsive to feedback
94
+
95
+ ## What Makes a Good Pull Request?
96
+
97
+ ✅ **Good PRs:**
98
+
99
+ - Change one thing at a time
100
+ - Have clear, descriptive titles
101
+ - Explain what and why in the description
102
+ - Include only the files that need to change
103
+
104
+ ❌ **Avoid:**
105
+
106
+ - Changing formatting of entire files
107
+ - Multiple unrelated changes in one PR
108
+ - Copying your entire project/repo into the PR
109
+ - Changes without explanation
110
+
111
+ ## Common Mistakes to Avoid
112
+
113
+ 1. **Don't reformat entire files** - only change what's necessary
114
+ 2. **Don't include unrelated changes** - stick to one fix/feature per PR
115
+ 3. **Don't paste code in issues** - create a proper PR instead
116
+ 4. **Don't submit your whole project** - contribute specific improvements
117
+
118
+ ## Need Help?
119
+
120
+ - 💬 Join our [Discord Community](https://discord.gg/g6ypHytrCB) for real-time help
121
+ - 💬 Ask questions in [Discussions](https://github.com/bmadcode/bmad-method/discussions)
122
+ - 🐛 Report bugs in [Issues](https://github.com/bmadcode/bmad-method/issues)
123
+ - 📖 Read the full [Contributing Guidelines](../CONTRIBUTING.md)
124
+
125
+ ## Example: Good vs Bad PRs
126
+
127
+ ### 😀 Good PR Example
128
+
129
+ **Title**: "Fix broken link to installation guide"
130
+ **Changes**: One file, one line changed
131
+ **Description**: "The link in README.md was pointing to the wrong file. Updated to point to correct installation guide."
132
+
133
+ ### 😞 Bad PR Example
134
+
135
+ **Title**: "Updates"
136
+ **Changes**: 50 files, entire codebase reformatted
137
+ **Description**: "Made some improvements"
138
+
139
+ ---
140
+
141
+ **Remember**: We're here to help! Don't be afraid to ask questions. Every expert was once a beginner.
@@ -0,0 +1,140 @@
1
+ # BMAD Method Guide for Roo Code
2
+
3
+ This guide walks you through the complete BMAD workflow using Roo Code as your AI-powered IDE.
4
+
5
+ ## Step 1: Install BMAD in Your Project
6
+
7
+ 1. Navigate to your project directory
8
+ 2. Run the BMAD installer:
9
+ ```bash
10
+ npx bmad-method install
11
+ ```
12
+ 3. When prompted:
13
+ - **Installation Type**: Choose "Complete installation (recommended)"
14
+ - **IDE**: Select "Roo Code"
15
+
16
+ This creates a `.bmad-core` folder with all agents and a `.roo/.roomodes` file with custom modes.
17
+
18
+ ## Step 2: Set Up Team Fullstack in Gemini
19
+
20
+ For ideation and planning, use Google's Gemini with the team-fullstack configuration:
21
+
22
+ 1. Open [Google AI Studio (Gemini)](https://aistudio.google.com/)
23
+ 2. Create a new chat
24
+ 3. Copy the contents of `/Users/brianmadison/dev/BMAD-METHOD/.bmad-core/web-bundles/teams/team-fullstack.txt`
25
+ 4. Paste this content into Gemini to set up the team
26
+
27
+ ### Gemini Planning Phase
28
+
29
+ In Gemini, ask the BMAD team to help you:
30
+
31
+ - **Ideate** your project concept
32
+ - **Brainstorm** features and requirements
33
+ - **Create a PRD** (Product Requirements Document)
34
+ - **Design the architecture**
35
+
36
+ Ask questions like:
37
+
38
+ - "Help me brainstorm a [type of application] that does [core functionality]"
39
+ - "Create a comprehensive PRD for this concept"
40
+ - "Design the technical architecture for this system"
41
+
42
+ Copy the PRD and architecture documents that Gemini creates into your project's `docs/` folder:
43
+
44
+ - `docs/prd.md`
45
+ - `docs/architecture.md`
46
+
47
+ ## Step 3: Back to Roo Code - Document Sharding
48
+
49
+ Once you have your PRD and architecture documents in the `docs/` folder:
50
+
51
+ 1. **Open your project in Roo Code**
52
+ 2. **Select the bmad-master mode** from the mode selector (usually in status bar)
53
+ 3. **Shard the PRD**: Type `*shard-doc docs/prd.md prd`
54
+ 4. **Shard the architecture**: Type `*shard-doc docs/architecture.md architecture`
55
+
56
+ This creates organized folders:
57
+
58
+ - `docs/prd/` - Contains broken down PRD sections
59
+ - `docs/architecture/` - Contains broken down architecture sections
60
+
61
+ ## Step 4: Story Development Cycle
62
+
63
+ Now begin the iterative development cycle:
64
+
65
+ ### Create Stories (Scrum Master)
66
+
67
+ 1. **Start a new chat or conversation**
68
+ 2. **Switch to SM mode**: Select `bmad-sm` from the mode selector
69
+ 3. **Create story**: Type `*create` (this runs the create-next-story task)
70
+ 4. **Review the generated story**
71
+ 5. **If approved**: Set story status to "Approved" in the story file
72
+
73
+ ### Implement Stories (Developer)
74
+
75
+ 1. **Start a new conversation**
76
+ 2. **Switch to Dev mode**: Select `bmad-dev` from the mode selector
77
+ 3. **The agent will ask which story to implement**
78
+ 4. **Follow the development tasks** the agent provides
79
+ 5. **When story is complete**: Mark status as "Done"
80
+
81
+ ### Repeat the Cycle
82
+
83
+ 1. **Switch to SM mode** (`bmad-sm`)
84
+ 2. **Create next story**: Type `*create`
85
+ 3. **Review and approve**
86
+ 4. **Switch to Dev mode** (`bmad-dev`)
87
+ 5. **Implement the story**
88
+ 6. **Repeat until project complete**
89
+
90
+ ## Available Custom Modes in Roo Code
91
+
92
+ All BMAD agents are available as custom modes:
93
+
94
+ - `bmad-bmad-master` - 🧙 Universal task executor
95
+ - `bmad-sm` - 🏃 Scrum Master for story creation
96
+ - `bmad-dev` - 💻 Full-stack developer for implementation
97
+ - `bmad-architect` - 🏗️ Solution architect for design
98
+ - `bmad-pm` - 📋 Product manager for planning
99
+ - `bmad-analyst` - 📊 Business analyst for requirements
100
+ - `bmad-qa` - 🧪 QA specialist for testing
101
+ - `bmad-po` - 🎯 Product owner for prioritization
102
+ - `bmad-ux-expert` - 🎨 UX specialist for design
103
+
104
+ ## Roo Code-Specific Features
105
+
106
+ - **Custom modes are stored in**: `.roo/.roomodes` file
107
+ - **Mode switching**: Use the mode selector in Roo Code's interface
108
+ - **File permissions**: Each agent has specific file access permissions
109
+ - **Documentation agents** (SM, PM, PO, Analyst): Limited to `.md` and `.txt` files
110
+ - **Technical agents** (Dev, Architect, Master): Full file access
111
+ - **QA agents**: Access to test files and documentation
112
+ - **UX agents**: Access to design-related files
113
+ - **Context preservation**: Modes maintain context within conversations
114
+
115
+ ## Key Workflow Principles
116
+
117
+ 1. **Switch modes instead of starting new chats** - Roo Code handles context better with mode switching
118
+ 2. **Use Gemini for initial planning** and ideation with the team-fullstack bundle
119
+ 3. **Use bmad-master mode for document management** (sharding, templates, etc.)
120
+ 4. **Follow the SM → Dev mode cycle** for consistent story development
121
+ 5. **Review and approve stories** before implementation begins
122
+
123
+ ## Tips for Success
124
+
125
+ - **Use mode selector effectively**: Switch modes as needed for different tasks
126
+ - **Respect file permissions**: Agents can only edit files they have permission for
127
+ - **Use \*help command**: Every mode supports `*help` to see available commands
128
+ - **Review generated content**: Always review and approve stories before marking them ready
129
+ - **Maintain status updates**: Keep story statuses current (Draft → Approved → InProgress → Done)
130
+ - **Leverage Roo's context**: Modes can maintain context across the conversation
131
+
132
+ ## File Permission Summary
133
+
134
+ - **bmad-analyst, bmad-pm, bmad-po, bmad-sm**: `.md`, `.txt` files only
135
+ - **bmad-architect**: `.md`, `.txt`, `.yml`, `.yaml`, `.json` files
136
+ - **bmad-qa**: Test files (`.test.js`, `.spec.ts`, etc.) and `.md` files
137
+ - **bmad-ux-expert**: `.md`, `.css`, `.scss`, `.html`, `.jsx`, `.tsx` files
138
+ - **bmad-dev, bmad-bmad-master, bmad-orchestrator**: Full file access
139
+
140
+ This workflow ensures systematic, AI-assisted development following agile principles with clear handoffs between planning, story creation, and implementation phases.