bmad-method 4.2.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 (90) 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 +8 -3
  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 +20 -2
  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/versioning-and-releases.md +4 -4
  69. package/docs/windsurf-guide.md +127 -0
  70. package/expansion-packs/README.md +1 -111
  71. package/expansion-packs/infrastructure-devops/agents/infra-devops-platform.md +3 -3
  72. package/expansion-packs/infrastructure-devops/tasks/create-doc.md +74 -0
  73. package/package.json +19 -13
  74. package/tools/builders/web-builder.js +16 -15
  75. package/tools/installer/README.md +2 -2
  76. package/tools/installer/bin/bmad.js +50 -29
  77. package/tools/installer/lib/file-manager.js +20 -3
  78. package/tools/installer/lib/ide-setup.js +11 -1
  79. package/tools/installer/lib/installer.js +149 -29
  80. package/tools/installer/package-lock.json +537 -335
  81. package/tools/installer/package.json +7 -7
  82. package/tools/lib/dependency-resolver.js +1 -1
  83. package/tools/semantic-release-sync-installer.js +31 -0
  84. package/tools/sync-installer-version.js +34 -0
  85. package/tools/upgraders/v3-to-v4-upgrader.js +18 -13
  86. package/tools/version-bump.js +33 -26
  87. package/tools/yaml-format.js +54 -25
  88. package/.bmad-core/schemas/agent-team-schema.yml +0 -153
  89. package/.bmad-core/tasks/create-team.md +0 -229
  90. package/.claude/settings.local.json +0 -22
@@ -0,0 +1,1044 @@
1
+ # BMAD-METHOD User Guide
2
+
3
+ This comprehensive guide will help you understand and effectively use the BMAD-METHOD framework for AI-assisted software development.
4
+
5
+ ## Table of Contents
6
+
7
+ 1. [Understanding BMAD](#understanding-bmad)
8
+ 2. [Getting Started](#getting-started)
9
+ 3. [Agent System](#agent-system)
10
+ 4. [Templates and Document Creation](#templates-and-document-creation)
11
+ 5. [Development Workflow](#development-workflow)
12
+ 6. [Team Configurations](#team-configurations)
13
+ 7. [IDE Integration](#ide-integration)
14
+ 8. [Web UI Usage](#web-ui-usage)
15
+ 9. [Advanced Features](#advanced-features)
16
+ 10. [Troubleshooting](#troubleshooting)
17
+ 11. [Best Practices](#best-practices)
18
+
19
+ ## Understanding BMAD
20
+
21
+ ### What is BMAD-METHOD?
22
+
23
+ BMAD-METHOD (Breakthrough Method of Agile AI-Driven Development) is an AI agent orchestration framework that provides specialized AI agents for every role in a complete Agile development team. Unlike generic AI assistants, each BMAD agent has deep expertise in their specific domain and can collaborate to deliver complete software projects.
24
+
25
+ ### Core Principles
26
+
27
+ 1. **Specialized Expertise**: Each agent focuses on a specific role (PM, Architect, Developer, QA, etc.)
28
+ 2. **True Agile Workflow**: Follows real Agile methodologies with proper story management
29
+ 3. **Self-Contained Templates**: Documents embed both output and processing instructions
30
+ 4. **Dynamic Dependencies**: Agents only load resources they need
31
+ 5. **Platform Agnostic**: Works with any AI platform or IDE
32
+
33
+ ### When to Use BMAD
34
+
35
+ - **New Projects (Greenfield)**: Complete end-to-end development
36
+ - **Existing Projects (Brownfield)**: Feature additions and enhancements
37
+ - **Team Collaboration**: Multiple roles working together
38
+ - **Quality Assurance**: Structured testing and validation
39
+ - **Documentation**: Professional PRDs, architecture docs, user stories
40
+
41
+ ## Getting Started
42
+
43
+ ### Installation Options
44
+
45
+ #### Option 1: Web UI (Fastest - 2 minutes)
46
+
47
+ Best for: ChatGPT, Claude, Gemini users
48
+
49
+ 1. Navigate to `.bmad-core/web-bundles/teams/`
50
+ 2. Copy `team-fullstack.txt` content
51
+ 3. Create new Gemini Gem or CustomGPT
52
+ 4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
53
+ 5. Type `/help` to see available commands
54
+
55
+ #### Option 2: IDE Integration (5 minutes)
56
+
57
+ Best for: Cursor, Claude Code, Windsurf, VS Code users
58
+
59
+ ````bash
60
+ # Interactive installation (recommended)
61
+ npx bmad-method install
62
+
63
+ # Command line installation
64
+ npx bmad-method install --full --directory ./my-project --ide cursor
65
+ ```text
66
+
67
+ ### First Steps
68
+
69
+ 1. **Choose Your Environment**: Web UI or IDE
70
+ 2. **Select Agent/Team**: Individual agent or full team
71
+ 3. **Initialize Project**: Run `/help` or `*help` to see capabilities
72
+ 4. **Start Development**: Begin with planning or jump into coding
73
+
74
+ ## Agent System
75
+
76
+ ### Core Development Team
77
+
78
+ | Agent | Role | Primary Functions | When to Use |
79
+ | ----------- | ------------------ | --------------------------------------- | -------------------------------------- |
80
+ | `analyst` | Business Analyst | Market research, requirements gathering | Project planning, competitive analysis |
81
+ | `pm` | Product Manager | PRD creation, feature prioritization | Strategic planning, roadmaps |
82
+ | `architect` | Solution Architect | System design, technical architecture | Complex systems, scalability planning |
83
+ | `dev` | Developer | Code implementation, debugging | All development tasks |
84
+ | `qa` | QA Specialist | Test planning, quality assurance | Testing strategies, bug validation |
85
+ | `ux-expert` | UX Designer | UI/UX design, prototypes | User experience, interface design |
86
+ | `po` | Product Owner | Backlog management, story validation | Story refinement, acceptance criteria |
87
+ | `sm` | Scrum Master | Sprint planning, story creation | Project management, workflow |
88
+
89
+ ### Meta Agents
90
+
91
+ | Agent | Role | Primary Functions | When to Use |
92
+ | ------------------- | ---------------- | ------------------------------------- | --------------------------------- |
93
+ | `bmad-orchestrator` | Team Coordinator | Multi-agent workflows, role switching | Complex multi-role tasks |
94
+ | `bmad-master` | Universal Expert | All capabilities without switching | Single-session comprehensive work |
95
+
96
+ ### How Agents Work
97
+
98
+ #### Dependencies System
99
+
100
+ Each agent has a YAML header defining its dependencies:
101
+
102
+ ```yaml
103
+ dependencies:
104
+ templates:
105
+ - prd-template.md
106
+ - user-story-template.md
107
+ tasks:
108
+ - create-doc.md
109
+ - shard-doc.md
110
+ data:
111
+ - bmad-kb.md
112
+ ````
113
+
114
+ **Key Points:**
115
+
116
+ - Agents only load resources they need (lean context)
117
+ - Dependencies are automatically resolved during bundling
118
+ - Resources are shared across agents to maintain consistency
119
+
120
+ #### Agent Interaction
121
+
122
+ **In IDE:**
123
+
124
+ ````bash
125
+ # Cursor or Windsurf (manual rules - loaded with @)
126
+ @pm Create a PRD for a task management app
127
+ @architect Design the system architecture
128
+ @dev Implement the user authentication
129
+
130
+ # Claude Code (files in commands folder - loaded with /)
131
+ /pm Create user stories
132
+ /dev Fix the login bug
133
+ ```text
134
+
135
+ **In Web UI:**
136
+
137
+ ```text
138
+ /pm create-doc prd
139
+ /architect review system design
140
+ /dev implement story 1.2
141
+ ````
142
+
143
+ ## Templates and Document Creation
144
+
145
+ ### Understanding Templates
146
+
147
+ BMAD templates are **self-contained and interactive** - they embed both the desired document output and the LLM instructions needed to work with users. This means no separate task is needed for most document creation.
148
+
149
+ #### Template Structure
150
+
151
+ Templates follow the `template-format.md` specification:
152
+
153
+ - `{{placeholders}}` for variable substitution
154
+ - `[[LLM: instructions]]` for AI-only processing directives
155
+ - Conditional logic blocks
156
+ - Examples and guidance sections
157
+
158
+ #### Template Processing Flow
159
+
160
+ 1. **User Request**: "Create a PRD"
161
+ 2. **Agent Selection**: PM agent loads PRD template
162
+ 3. **Interactive Processing**: Template guides conversation
163
+ 4. **Content Generation**: AI follows embedded instructions
164
+ 5. **User Refinement**: Built-in elicitation processes
165
+ 6. **Final Output**: Complete, professional document
166
+
167
+ ### Document Types
168
+
169
+ #### Product Requirements Document (PRD)
170
+
171
+ - **Template**: `prd-template.md`
172
+ - **Agent**: PM
173
+ - **Use Case**: Feature specification, project planning
174
+ - **Command**: `/pm create-doc prd`
175
+ - **💡 Cost-Saving Tip**: For Gemini users, create PRDs in the web UI to avoid high IDE token costs. Copy the final markdown output to `docs/prd.md` in your project.
176
+
177
+ #### Architecture Documents
178
+
179
+ - **Template**: `architecture-template.md`
180
+ - **Agent**: Architect
181
+ - **Use Case**: System design, technical planning
182
+ - **Command**: `/architect create-doc architecture`
183
+ - **💡 Cost-Saving Tip**: For Gemini users, create architecture docs in the web UI to avoid high IDE token costs. Copy the final markdown output to `docs/architecture.md` in your project.
184
+
185
+ #### User Stories
186
+
187
+ - **Template**: `user-story-template.md`
188
+ - **Agent**: SM (Scrum Master)
189
+ - **Use Case**: Development planning, sprint preparation
190
+ - **Command**: `/sm create-doc user-story`
191
+
192
+ ### Document Creation Best Practices
193
+
194
+ #### Web UI to IDE Workflow (Recommended for Gemini)
195
+
196
+ For cost efficiency, especially with Gemini:
197
+
198
+ 1. **Create Large Documents in Web UI**: Use web bundles for PRD and architecture creation
199
+ 2. **Copy to Project**: Save the final markdown output to your project's `docs/` folder
200
+ 3. **Standard Naming**: Use `prd.md` and `architecture.md` for consistency
201
+ 4. **Continue in IDE**: Use IDE agents for development tasks and smaller documents
202
+
203
+ #### File Naming Conventions
204
+
205
+ **Required Names for Framework Integration:**
206
+
207
+ - `docs/prd.md` - Product Requirements Document
208
+ - `docs/architecture.md` - System Architecture Document
209
+
210
+ **Why These Names Matter:**
211
+
212
+ - Agents automatically reference these files during development
213
+ - Sharding tasks expect these specific filenames
214
+ - Workflow automation depends on standard naming
215
+
216
+ #### IDE Document Creation
217
+
218
+ When working directly in IDEs:
219
+
220
+ - Agents should create documents in `docs/` folder automatically
221
+ - If agents name files differently (e.g., `product-requirements.md`), rename to `prd.md`
222
+ - Verify document location matches `docs/prd.md` and `docs/architecture.md`
223
+
224
+ ### Advanced Template Features
225
+
226
+ #### Embedded Elicitation
227
+
228
+ Templates can include `advanced-elicitation.md` for enhanced interaction:
229
+
230
+ ````markdown
231
+ [[LLM: Use advanced-elicitation actions 0-3 to refine requirements]]
232
+
233
+ ````text
234
+
235
+ This provides 10 structured brainstorming actions:
236
+
237
+ - 0-3: Analysis and brainstorming
238
+ - 4-6: Refinement and validation
239
+ - 7-9: Review and finalization
240
+
241
+ #### Interactive Modes
242
+
243
+ - **Incremental Mode**: Step-by-step with user input
244
+ - **YOLO Mode**: Rapid generation with minimal interaction
245
+
246
+ ## Development Workflow
247
+
248
+ ### The Planning Workflow (Web UI)
249
+
250
+ Before development begins, BMAD follows a structured planning workflow that's ideally done in web UI for cost efficiency:
251
+
252
+ ```mermaid
253
+ graph TD
254
+ A["Start: Project Idea"] --> B{"Optional: Analyst Brainstorming"}
255
+ B -->|Yes| C["Analyst: Market Research & Analysis"]
256
+ B -->|No| D["Create Project Brief"]
257
+ C --> D["Analyst: Create Project Brief"]
258
+ D --> E["PM: Create PRD from Brief"]
259
+ E --> F["Architect: Create Architecture from PRD"]
260
+ F --> G["PO: Run Master Checklist"]
261
+ G --> H{"Documents Aligned?"}
262
+ H -->|Yes| I["Planning Complete"]
263
+ H -->|No| J["PO: Update Epics & Stories"]
264
+ J --> K["Update PRD/Architecture as needed"]
265
+ K --> G
266
+ I --> L["📁 Switch to IDE"]
267
+ L --> M["PO: Shard Documents"]
268
+ M --> N["Ready for SM/Dev Cycle"]
269
+
270
+ style I fill:#34a853,color:#fff
271
+ style G fill:#f9ab00,color:#fff
272
+ style L fill:#1a73e8,color:#fff
273
+ style N fill:#34a853,color:#fff
274
+ ````
275
+ ````
276
+
277
+ #### Web UI to IDE Transition
278
+
279
+ **Critical Transition Point**: Once the PO confirms document alignment, you must switch from web UI to IDE to begin the development workflow:
280
+
281
+ 1. **Copy Documents to Project**: Ensure `docs/prd.md` and `docs/architecture.md` are in your project
282
+ 2. **Switch to IDE**: Open your project in your preferred IDE (Cursor, Claude Code, Windsurf)
283
+ 3. **Document Sharding**: Use PO agent to shard large documents into manageable pieces
284
+ 4. **Begin Development**: Start the SM/Dev cycle for implementation
285
+
286
+ ### The Core Development Cycle (IDE)
287
+
288
+ Once planning is complete and documents are sharded, BMAD follows a structured development workflow:
289
+
290
+ ````mermaid
291
+ graph TD
292
+ A["Start: Planning Artifacts Complete"] --> B["PO: Shard Epics"]
293
+ B --> C["PO: Shard Arch"]
294
+ C --> D["Development Phase"]
295
+ D --> E["Scrum Master: Drafts next story from sharded epic"]
296
+ E --> F{"User Approval"}
297
+ F -->|Approved| G["Dev: Implement Story"]
298
+ F -->|Needs Changes| E
299
+ G --> H["Dev: Complete story Tasks"]
300
+ H --> I{"User Verification"}
301
+ I -->|Verified Complete| J["Mark Story as Done"]
302
+ I -->|Needs Fixes| G
303
+ J --> E
304
+
305
+ style J fill:#34a853,color:#fff
306
+ ```text
307
+
308
+ ### Workflow Phases
309
+
310
+ #### 1. Planning Phase
311
+
312
+ - **Analyst**: Market research, competitive analysis
313
+ - **PM**: Create PRD, define features
314
+ - **Architect**: System design, technical architecture
315
+ - **UX Expert**: User experience design
316
+
317
+ #### 2. Preparation Phase
318
+
319
+ - **PO**: Shard epics into manageable stories
320
+ - **PO**: Shard architecture into implementation tasks
321
+ - **SM**: Prepare initial story backlog
322
+
323
+ #### 3. Development Phase (Cyclical)
324
+
325
+ - **SM**: Draft next story from sharded epic
326
+ - **User**: Review and approve story
327
+ - **Dev**: Implement all story tasks
328
+ - **User**: Verify implementation
329
+ - **Repeat**: Until all stories complete
330
+
331
+ #### 4. Quality Assurance
332
+
333
+ - **QA**: Test planning and execution
334
+ - **Dev**: Bug fixes and refinements
335
+ - **PO**: Acceptance criteria validation
336
+
337
+ ### Workflow Types
338
+
339
+ #### Greenfield Development
340
+
341
+ For new projects:
342
+
343
+ 1. Business analysis and market research
344
+ 2. Product requirements and feature definition
345
+ 3. System architecture and design
346
+ 4. Development execution
347
+ 5. Testing and deployment
348
+
349
+ #### Brownfield Enhancement
350
+
351
+ For existing projects:
352
+
353
+ 1. Current system analysis
354
+ 2. Enhancement planning
355
+ 3. Impact assessment
356
+ 4. Incremental development
357
+ 5. Integration testing
358
+
359
+ ## Team Configurations
360
+
361
+ ### Pre-Built Teams
362
+
363
+ #### Team All
364
+
365
+ - **Includes**: All 10 agents + orchestrator
366
+ - **Use Case**: Complete projects requiring all roles
367
+ - **Bundle**: `team-all.txt`
368
+
369
+ #### Team Fullstack
370
+
371
+ - **Includes**: PM, Architect, Developer, QA, UX Expert
372
+ - **Use Case**: End-to-end web/mobile development
373
+ - **Bundle**: `team-fullstack.txt`
374
+
375
+ #### Team No-UI
376
+
377
+ - **Includes**: PM, Architect, Developer, QA (no UX Expert)
378
+ - **Use Case**: Backend services, APIs, system development
379
+ - **Bundle**: `team-no-ui.txt`
380
+
381
+ ### Custom Team Configuration
382
+
383
+ Create custom teams by modifying `.bmad-core/agent-teams/`:
384
+
385
+ ```yaml
386
+ name: Custom Development Team
387
+ description: Specialized team for specific needs
388
+ agents:
389
+ - pm
390
+ - architect
391
+ - dev
392
+ - qa
393
+ workflows:
394
+ - greenfield-fullstack
395
+ ````
396
+
397
+ ## IDE Integration
398
+
399
+ ### Supported IDEs
400
+
401
+ #### Cursor IDE
402
+
403
+ - **Commands**: `@agent-name task` (manual rules)
404
+ - **Example**: `@pm Create a PRD for user management`
405
+ - **Features**: Inline suggestions, context awareness
406
+ - **Integration**: Agents loaded as manual rules
407
+
408
+ #### Claude Code
409
+
410
+ - **Commands**: `/agent-name task` (command files)
411
+ - **Example**: `/architect Design microservices architecture`
412
+ - **Features**: File integration, project context
413
+ - **Integration**: Agents installed as files in commands folder
414
+
415
+ #### Windsurf
416
+
417
+ - **Commands**: `@agent-name task` (manual rules)
418
+ - **Example**: `@dev Implement authentication`
419
+ - **Features**: Multi-file editing, project awareness
420
+ - **Integration**: Agents loaded as manual rules
421
+
422
+ #### VS Code (Generic)
423
+
424
+ - **Setup**: Manual installation
425
+ - **Usage**: Copy agent content to chat
426
+ - **Features**: Basic integration
427
+
428
+ ### IDE Setup Process
429
+
430
+ 1. **Install CLI**: `npx bmad-method install`
431
+ 2. **Select IDE**: Choose during installation
432
+ 3. **Configure Integration**: Automatic setup for supported IDEs
433
+ 4. **Verify Installation**: Test with `@agent-name help`
434
+
435
+ ### IDE Best Practices
436
+
437
+ - **Context Management**: Keep relevant files open
438
+ - **Agent Selection**: Use appropriate agent for task
439
+ - **Iterative Development**: Work in small, focused tasks
440
+ - **File Organization**: Maintain clean project structure
441
+
442
+ ## Web UI Usage
443
+
444
+ **Important**: Web UI is primarily designed for planning and documentation phases, not development. Use IDE integration for coding tasks.
445
+
446
+ ### Platform Setup
447
+
448
+ #### ChatGPT Custom GPT
449
+
450
+ 1. Create new Custom GPT
451
+ 2. Upload team bundle as knowledge
452
+ 3. Set instructions: "Your critical operating instructions are attached, do not break character as directed"
453
+ 4. Configure capabilities as needed
454
+
455
+ #### Claude Projects
456
+
457
+ 1. Create new project
458
+ 2. Add team bundle to project knowledge
459
+ 3. Set project instructions with agent behavior
460
+ 4. Start conversation with `/help`
461
+
462
+ #### Gemini Gems
463
+
464
+ 1. Create new Gem
465
+ 2. Upload bundle as instruction file
466
+ 3. Set system instructions for agent behavior
467
+ 4. Initialize with `/help` command
468
+
469
+ ### Web UI Commands
470
+
471
+ #### Universal Commands
472
+
473
+ - `/help` - Show available commands
474
+ - `/status` - Current agent status
475
+ - `/switch agent-name` - Change active agent (if orchestrator available)
476
+
477
+ #### Document Commands
478
+
479
+ - `/create-doc type` - Create document of specified type
480
+ - `/review-doc` - Review current document
481
+ - `/refine-doc` - Improve document quality
482
+
483
+ #### Planning Commands
484
+
485
+ - `/pm create-doc prd` - Create Product Requirements Document
486
+ - `/architect create-doc architecture` - Create system architecture
487
+ - `/analyst create-doc project-brief` - Create project brief
488
+ - `/po run-checklist` - Validate document alignment
489
+
490
+ ### Web UI Agent Interaction
491
+
492
+ Web UI agents focus on planning and documentation. Here's how to interact with each:
493
+
494
+ #### Agent Switching and Conversation
495
+
496
+ - **Switch Agents**: Use `/pm`, `/architect`, `/analyst`, `/po` to switch between roles
497
+ - **Agent Consultation**: Each agent offers their specialized options and capabilities
498
+ - **Natural Conversation**: Agents guide you through their processes with questions and suggestions
499
+
500
+ #### Planning Phase Agents
501
+
502
+ - **Analyst**: `/analyst` - Brainstorming, market research, competitive analysis
503
+ - **PM**: `/pm` - Product requirements, feature definition, roadmaps
504
+ - **Architect**: `/architect` - System design, technical architecture
505
+ - **PO**: `/po` - Document validation, epic management, story alignment
506
+
507
+ ### Web UI Best Practices
508
+
509
+ - **Clear Instructions**: Be specific about requirements
510
+ - **Context Sharing**: Provide relevant background
511
+ - **Iterative Refinement**: Use built-in elicitation features
512
+ - **Document Management**: Keep generated docs organized
513
+ - **Stay in Planning**: Use web UI for documentation, switch to IDE for development
514
+
515
+ #### Cost-Effective Document Creation
516
+
517
+ **Recommended Workflow for Large Documents:**
518
+
519
+ 1. **Use Web UI for PRD and Architecture**: These are token-heavy documents, especially in Gemini
520
+ 2. **Copy Final Output**: Save complete markdown to your project
521
+ 3. **Standard File Names**:
522
+ - Save PRD as `docs/prd.md`
523
+ - Save Architecture as `docs/architecture.md`
524
+ 4. **IDE for Development**: Switch to IDE agents for implementation tasks
525
+
526
+ **Why This Saves Money:**
527
+
528
+ - Web UI pricing is typically more cost-effective for large context windows
529
+ - PRD and architecture creation involves extensive back-and-forth refinement
530
+ - IDE token costs can accumulate quickly with large document generation
531
+
532
+ ## Advanced Features
533
+
534
+ ### Dynamic Resource Loading
535
+
536
+ BMAD's dependency system ensures agents only load necessary resources:
537
+
538
+ - **Templates**: Only relevant document templates
539
+ - **Tasks**: Only required automation tasks
540
+ - **Data**: Only pertinent knowledge base sections
541
+ - **Checklists**: Only applicable quality checks
542
+
543
+ ### Custom Templates
544
+
545
+ Create custom templates following `template-format.md`:
546
+
547
+ ````markdown
548
+ ---
549
+ title: Custom Template
550
+ description: Your custom document type
551
+ dependencies:
552
+ - advanced-elicitation.md
553
+ ---
554
+
555
+ # {{document_title}}
556
+
557
+ [[LLM: Guide user through custom process]]
558
+
559
+ ## Section 1
560
+
561
+ {{section_1_content}}
562
+
563
+ [[LLM: Use elicitation action 2 for refinement]]
564
+
565
+ ## Section 2
566
+
567
+ {{section_2_content}}
568
+
569
+ ````text
570
+
571
+ ### Workflow Customization
572
+
573
+ Modify workflows in `.bmad-core/workflows/`:
574
+
575
+ ```yaml
576
+ name: Custom Workflow
577
+ type: development
578
+ phases:
579
+ planning:
580
+ agents:
581
+ - analyst
582
+ - pm
583
+ deliverables:
584
+ - market-research
585
+ - prd
586
+ architecture:
587
+ agents:
588
+ - architect
589
+ deliverables:
590
+ - system-design
591
+ development:
592
+ agents:
593
+ - dev
594
+ - qa
595
+ deliverables:
596
+ - implementation
597
+ - tests
598
+ ````
599
+ ````
600
+
601
+ ### Creating Custom Templates
602
+
603
+ Templates are self-contained documents that embed both output structure and processing instructions. Follow these patterns from existing templates:
604
+
605
+ #### Template Structure
606
+
607
+ ````markdown
608
+ # {{Project Name}} Document Title
609
+
610
+ [[LLM: Opening instruction for AI processing]]
611
+
612
+ ## Level 2 Section (Shardable)
613
+
614
+ [[LLM: Section-specific instructions with embedded tasks]]
615
+
616
+ ### Level 3 Subsection
617
+
618
+ [[LLM: Detailed processing instructions]]
619
+ {{placeholder_variable}}
620
+
621
+ @{example: Example content for AI guidance}
622
+
623
+ ^^CONDITION: condition_name^^
624
+
625
+ ## Conditional Section
626
+
627
+ [[LLM: Only include if condition is met]]
628
+ ^^/CONDITION^^
629
+
630
+ ````text
631
+
632
+ #### Key Template Patterns
633
+
634
+ **Variable Substitution:**
635
+ - `{{Project Name}}` - Dynamic project name
636
+ - `{{document_title}}` - Document-specific title
637
+ - `{{section_content}}` - Placeholder for generated content
638
+
639
+ **AI Processing Instructions:**
640
+ - `[[LLM: Instructions for AI behavior]]` - AI-only processing directives
641
+ - `@{example: Sample content}` - Guidance examples (not output)
642
+ - `tasks#advanced-elicitation` - Reference to embedded tasks
643
+
644
+ **Conditional Content:**
645
+ ```markdown
646
+ ^^CONDITION: has_ui^^
647
+ ## User Interface Section
648
+ [[LLM: Only include for UI projects]]
649
+ ^^/CONDITION^^
650
+ ````
651
+ ````
652
+
653
+ #### Document Sharding
654
+
655
+ Level 2 headings (`##`) in templates can be automatically sharded into separate documents:
656
+
657
+ **Original PRD:**
658
+
659
+ ````markdown
660
+ ## Goals and Background Context
661
+
662
+ ## Requirements
663
+
664
+ ## User Interface Design Goals
665
+
666
+ ## Success Metrics
667
+
668
+ ````text
669
+
670
+ **After Sharding:**
671
+ - `docs/prd/goals-and-background-context.md`
672
+ - `docs/prd/requirements.md`
673
+ - `docs/prd/user-interface-design-goals.md`
674
+ - `docs/prd/success-metrics.md`
675
+
676
+ Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic sharding.
677
+
678
+ ### Creating Custom Tasks
679
+
680
+ Tasks are reusable automation instructions that agents can execute. They follow a structured format:
681
+
682
+ #### Task Structure
683
+
684
+ ```markdown
685
+ # Task Name
686
+
687
+ ## Purpose
688
+
689
+ - Clear description of what the task accomplishes
690
+ - When to use this task
691
+
692
+ ## Instructions
693
+
694
+ ### 1. Step One
695
+ - Detailed instructions for the agent
696
+ - Specific behaviors and outputs expected
697
+
698
+ ### 2. Step Two
699
+ - Additional processing steps
700
+ - Integration with other resources
701
+
702
+ ## Examples
703
+
704
+ @{example: Concrete usage examples}
705
+ ````
706
+ ````
707
+
708
+ #### Task Patterns
709
+
710
+ **Resource Integration:**
711
+
712
+ ````markdown
713
+ [[LLM: Check if docs/coding-standards.md exists and reference it]]
714
+ [[LLM: Load docs/openapi-spec.yaml for API context]]
715
+
716
+ ````text
717
+
718
+ **Advanced Elicitation:**
719
+ ```markdown
720
+ [[LLM: Apply tasks#advanced-elicitation protocol after completion]]
721
+ ````
722
+ ````
723
+
724
+ **Conditional Logic:**
725
+
726
+ ````markdown
727
+ [[LLM: If project has UI components, also check frontend standards]]
728
+
729
+ ````text
730
+
731
+ ### Creating Custom Agents
732
+
733
+ Custom agents combine persona, capabilities, and dependencies into specialized roles:
734
+
735
+ #### Agent Structure
736
+
737
+ ```yaml
738
+ agent:
739
+ name: Custom Agent Name
740
+ id: custom-agent
741
+ title: Specialized Role Title
742
+ icon: 🎯
743
+ whenToUse: Specific use case description
744
+ persona:
745
+ role: Primary role definition
746
+ style: Communication style and approach
747
+ identity: Core identity and expertise
748
+ focus: Primary areas of concentration
749
+ startup:
750
+ - Announcement message
751
+ - Initial context loading instructions
752
+ - User guidance
753
+ commands:
754
+ - Available slash commands
755
+ - Command descriptions
756
+ dependencies:
757
+ templates:
758
+ - custom-template.md
759
+ tasks:
760
+ - custom-task.md
761
+ data:
762
+ - domain-knowledge.md
763
+ ````
764
+ ````
765
+
766
+ #### Agent Startup Instructions
767
+
768
+ Agents can load project-specific documents and provide custom context:
769
+
770
+ ````yaml
771
+ startup:
772
+ - Load docs/coding-standards.md if available
773
+ - Review docs/project-structure.md for context
774
+ - Check for docs/third-party-apis/ folder
775
+ - Announce specialized capabilities
776
+ ```text
777
+
778
+ #### Loading Project Documents
779
+
780
+ Agents can reference and load documents from the `docs/` folder:
781
+
782
+ - **Coding Standards**: `docs/coding-standards.md`
783
+ - **API Specifications**: `docs/openapi-spec.yaml`
784
+ - **Project Structure**: `docs/project-structure.md`
785
+ - **Third-party APIs**: `docs/third-party-apis/`
786
+ - **Architecture Decisions**: `docs/architecture-decisions/`
787
+
788
+ #### Context Integration
789
+
790
+ ```markdown
791
+ [[LLM: Before beginning, check for and load relevant context:
792
+ - docs/coding-standards.md for development standards
793
+ - docs/brand-guidelines.md for design consistency
794
+ - docs/third-party-apis/ for integration requirements
795
+ - Any project-specific documentation in docs/ folder]]
796
+ ````
797
+
798
+ ### Technical Preferences System
799
+
800
+ BMAD includes a powerful personalization system through the `technical-preferences.md` file located in `.bmad-core/data/`.
801
+
802
+ #### What is technical-preferences.md?
803
+
804
+ This file allows you to define your preferred technologies, patterns, and standards once, then have agents automatically consider them across all projects. It acts as your personal technical profile that travels with your agent bundles.
805
+
806
+ #### What to Include
807
+
808
+ **Technology Stack Preferences:**
809
+
810
+ ````markdown
811
+ ## Preferred Technologies
812
+
813
+ ### Frontend
814
+
815
+ - React with TypeScript
816
+ - Tailwind CSS for styling
817
+ - Next.js for full-stack applications
818
+
819
+ ### Backend
820
+
821
+ - Node.js with Express
822
+ - PostgreSQL for relational data
823
+ - Redis for caching
824
+
825
+ ### Deployment
826
+
827
+ - Vercel for frontend
828
+ - Railway for backend services
829
+
830
+ ````text
831
+
832
+ **Design Patterns & Standards:**
833
+ ```markdown
834
+ ## Code Standards
835
+ - Use functional programming patterns where possible
836
+ - Prefer composition over inheritance
837
+ - Always include comprehensive error handling
838
+ - Write tests for all business logic
839
+
840
+ ## Architecture Preferences
841
+ - Microservices for complex applications
842
+ - RESTful APIs with OpenAPI documentation
843
+ - Event-driven architecture for real-time features
844
+ ````
845
+ ````
846
+
847
+ **External Services & APIs:**
848
+
849
+ ````markdown
850
+ ## Preferred External Services
851
+
852
+ - Auth0 for authentication
853
+ - Stripe for payments
854
+ - SendGrid for email
855
+ - Cloudinary for image processing
856
+
857
+ ## APIs to Avoid
858
+
859
+ - Legacy SOAP services
860
+ - Services without proper documentation
861
+
862
+ ````text
863
+
864
+ #### How Agents Use This File
865
+
866
+ **Automatic Suggestions**: Agents will suggest your preferred technologies when appropriate for the project requirements.
867
+
868
+ **Informed Alternatives**: If your preferences don't fit the project, agents explain why and suggest alternatives.
869
+
870
+ **Consistency**: All agents reference the same preferences, ensuring consistent recommendations across planning and development.
871
+
872
+ #### Building Your Preferences Over Time
873
+
874
+ **Learning and Evolution**: As you work on projects, add discoveries to your preferences file:
875
+
876
+ ```markdown
877
+ ## Lessons Learned
878
+ - Avoid using Library X for large datasets (performance issues)
879
+ - Pattern Y works well for real-time features
880
+ - Service Z has excellent documentation and support
881
+
882
+ ## Future Exploration
883
+ - Want to try Framework A on next appropriate project
884
+ - Interested in Pattern B for microservices
885
+ - Consider Service C for better performance
886
+ ````
887
+ ````
888
+
889
+ #### Using with Web Bundles
890
+
891
+ When creating custom web bundles or uploading to AI platforms, include your `technical-preferences.md` content to ensure agents have your preferences from the start of any conversation.
892
+
893
+ ### Extension Packs
894
+
895
+ Add specialized capabilities:
896
+
897
+ - **DevOps Pack**: CI/CD, deployment automation
898
+ - **Mobile Pack**: iOS/Android development
899
+ - **Data Pack**: Analytics, ML integration
900
+ - **Security Pack**: Security analysis, compliance
901
+
902
+ ## Troubleshooting
903
+
904
+ ### Common Issues
905
+
906
+ #### Agent Not Responding
907
+
908
+ - **Cause**: Incorrect agent name or command
909
+ - **Solution**: Check available agents with `/help`
910
+ - **Prevention**: Use tab completion in supported IDEs
911
+
912
+ #### Template Errors
913
+
914
+ - **Cause**: Malformed template syntax
915
+ - **Solution**: Validate against `template-format.md`
916
+ - **Prevention**: Use provided templates as starting point
917
+
918
+ #### Context Overload
919
+
920
+ - **Cause**: Too many dependencies loaded
921
+ - **Solution**: Use specific agents instead of `bmad-master`
922
+ - **Prevention**: Choose appropriate team size
923
+
924
+ #### Installation Issues
925
+
926
+ - **Cause**: Node.js version, permissions
927
+ - **Solution**: Update Node.js, check permissions
928
+ - **Prevention**: Use recommended Node.js version (14+)
929
+
930
+ ### Debugging Steps
931
+
932
+ 1. **Check Installation**: `npx bmad-method status`
933
+ 2. **Verify Agent**: Test with simple command
934
+ 3. **Review Dependencies**: Ensure required files exist
935
+ 4. **Clear Cache**: Restart IDE/browser
936
+ 5. **Reinstall**: `npx bmad-method install --force`
937
+
938
+ ### Getting Help
939
+
940
+ - **Discord Community**: [Join Discord](https://discord.gg/g6ypHytrCB)
941
+ - **GitHub Issues**: [Report bugs](https://github.com/bmadcode/bmad-method/issues)
942
+ - **Documentation**: [Browse docs](https://github.com/bmadcode/bmad-method/tree/main/docs)
943
+ - **YouTube**: [BMadCode Channel](https://www.youtube.com/@BMadCode)
944
+
945
+ ## Best Practices
946
+
947
+ ### Project Organization
948
+
949
+ #### Folder Structure
950
+
951
+ ```text
952
+ project/
953
+ ├── .bmad-core/ # BMAD agents and resources
954
+ ├── docs/ # Generated documentation
955
+ │ ├── prd.md
956
+ │ ├── architecture.md
957
+ │ └── stories/
958
+ ├── src/ # Source code
959
+ └── tests/ # Test files
960
+ ```
961
+
962
+ #### Document Management
963
+
964
+ - Keep generated docs in `docs/` folder
965
+ - Version control all BMAD-generated content
966
+ - Regular backups of `.bmad-core/` customizations
967
+
968
+ ### Development Workflow
969
+
970
+ #### Planning Phase
971
+
972
+ 1. **Start with Analysis**: Use analyst for market research
973
+ 2. **Create PRD**: PM agent for comprehensive requirements
974
+ 3. **Design Architecture**: Architect for technical foundation
975
+ 4. **Plan UX**: UX Expert for user experience
976
+
977
+ #### Development Phase
978
+
979
+ 1. **Shard Work**: PO to break down epics
980
+ 2. **Story Development**: SM for manageable tasks
981
+ 3. **Implementation**: Dev for coding
982
+ 4. **Quality Assurance**: QA for testing
983
+
984
+ #### Review Process
985
+
986
+ 1. **Code Review**: Dev agent for code quality
987
+ 2. **Functional Testing**: QA for feature validation
988
+ 3. **User Acceptance**: PO for business requirements
989
+ 4. **Documentation**: Update docs as needed
990
+
991
+ ### Quality Assurance
992
+
993
+ #### Code Quality
994
+
995
+ - Use dev agent for code reviews
996
+ - Implement suggested improvements
997
+ - Follow established coding standards
998
+ - Regular refactoring sessions
999
+
1000
+ #### Documentation Standards
1001
+
1002
+ - Keep docs updated with changes
1003
+ - Use templates for consistency
1004
+ - Regular doc reviews with PO
1005
+ - Clear, actionable user stories
1006
+
1007
+ #### Process Quality
1008
+
1009
+ - Follow Agile ceremonies
1010
+ - Regular retrospectives
1011
+ - Continuous improvement
1012
+ - Stakeholder feedback integration
1013
+
1014
+ ### Performance Optimization
1015
+
1016
+ #### Context Management
1017
+
1018
+ - Use specific agents vs. bmad-master
1019
+ - Minimal team configurations
1020
+ - Regular dependency cleanup
1021
+ - Archive completed projects
1022
+
1023
+ #### Resource Efficiency
1024
+
1025
+ - Appropriate bundle sizes
1026
+ - Selective agent usage
1027
+ - Efficient template design
1028
+ - Regular cache clearing
1029
+
1030
+ ## Conclusion
1031
+
1032
+ BMAD-METHOD provides a comprehensive framework for AI-assisted software development. By following this guide, you'll be able to:
1033
+
1034
+ - Effectively use specialized AI agents
1035
+ - Create professional documentation
1036
+ - Follow structured development workflows
1037
+ - Integrate with your preferred tools
1038
+ - Maintain high quality standards
1039
+
1040
+ Remember: BMAD is designed to enhance your development process, not replace your expertise. Use it as a powerful tool to accelerate your projects while maintaining control over design decisions and implementation details.
1041
+
1042
+ ---
1043
+
1044
+ For additional support, join our [Discord community](https://discord.gg/g6ypHytrCB) or check out the [YouTube channel](https://www.youtube.com/@BMadCode) for video tutorials and walkthroughs.