bmad-method 6.0.0-alpha.10 → 6.0.0-alpha.11

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 (107) hide show
  1. package/CHANGELOG.md +215 -1109
  2. package/README.md +129 -359
  3. package/docs/custom-agent-installation.md +169 -0
  4. package/{v6-open-items.md → docs/v6-open-items.md} +1 -1
  5. package/package.json +2 -1
  6. package/src/core/resources/excalidraw/README.md +160 -0
  7. package/src/core/resources/excalidraw/library-loader.md +50 -0
  8. package/src/modules/bmb/docs/agent-compilation.md +340 -0
  9. package/src/modules/bmb/docs/agent-menu-patterns.md +524 -0
  10. package/src/modules/bmb/docs/expert-agent-architecture.md +364 -0
  11. package/src/modules/bmb/docs/index.md +55 -0
  12. package/src/modules/bmb/docs/module-agent-architecture.md +367 -0
  13. package/src/modules/bmb/docs/simple-agent-architecture.md +288 -0
  14. package/src/modules/bmb/docs/understanding-agent-types.md +184 -0
  15. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/README.md +242 -0
  16. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
  17. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
  18. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
  19. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
  20. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
  21. package/src/modules/bmb/reference/agents/module-examples/README.md +50 -0
  22. package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
  23. package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
  24. package/src/modules/bmb/reference/agents/simple-examples/README.md +223 -0
  25. package/src/modules/bmb/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
  26. package/src/modules/bmb/reference/readme.md +3 -0
  27. package/src/modules/bmb/workflows/create-agent/agent-validation-checklist.md +174 -0
  28. package/src/modules/bmb/workflows/create-agent/brainstorm-context.md +99 -120
  29. package/src/modules/bmb/workflows/create-agent/communication-presets.csv +61 -0
  30. package/src/modules/bmb/workflows/create-agent/instructions.md +126 -65
  31. package/src/modules/bmb/workflows/create-agent/workflow.yaml +19 -12
  32. package/src/modules/bmb/workflows/edit-agent/README.md +174 -47
  33. package/src/modules/bmb/workflows/edit-agent/instructions.md +397 -33
  34. package/src/modules/bmb/workflows/edit-agent/workflow.yaml +24 -8
  35. package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +1 -1
  36. package/src/modules/bmm/agents/analyst.agent.yaml +2 -2
  37. package/src/modules/bmm/agents/architect.agent.yaml +10 -2
  38. package/src/modules/bmm/agents/dev.agent.yaml +2 -2
  39. package/src/modules/bmm/agents/pm.agent.yaml +7 -3
  40. package/src/modules/bmm/agents/sm.agent.yaml +2 -2
  41. package/src/modules/bmm/agents/tea.agent.yaml +2 -2
  42. package/src/modules/bmm/agents/tech-writer.agent.yaml +15 -3
  43. package/src/modules/bmm/agents/ux-designer.agent.yaml +6 -2
  44. package/src/modules/bmm/docs/README.md +4 -0
  45. package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +5919 -0
  46. package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +2 -0
  47. package/src/modules/bmm/docs/quick-start.md +6 -0
  48. package/src/modules/bmm/docs/scale-adaptive-system.md +6 -0
  49. package/src/modules/bmm/docs/workflows-implementation.md +10 -0
  50. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +4 -4
  51. package/src/modules/bmm/workflows/{2-plan-workflows → 3-solutioning}/create-epics-and-stories/workflow.yaml +5 -5
  52. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +1 -1
  53. package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-dataflow/instructions.md +7 -8
  54. package/src/modules/bmm/workflows/diagrams/create-dataflow/workflow.yaml +27 -0
  55. package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-diagram/instructions.md +9 -10
  56. package/src/modules/bmm/workflows/diagrams/create-diagram/workflow.yaml +27 -0
  57. package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-flowchart/instructions.md +4 -5
  58. package/src/modules/bmm/workflows/diagrams/create-flowchart/workflow.yaml +27 -0
  59. package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-wireframe/instructions.md +3 -3
  60. package/src/modules/bmm/workflows/diagrams/create-wireframe/workflow.yaml +27 -0
  61. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +18 -30
  62. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +2 -14
  63. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +2 -14
  64. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +2 -14
  65. package/src/modules/cis/agents/presentation-master.agent.yaml +60 -0
  66. package/tools/cli/commands/agent-install.js +409 -0
  67. package/tools/cli/installers/lib/core/installer.js +119 -0
  68. package/tools/cli/installers/lib/ide/_base-ide.js +25 -0
  69. package/tools/cli/installers/lib/ide/antigravity.js +463 -0
  70. package/tools/cli/installers/lib/ide/claude-code.js +43 -0
  71. package/tools/cli/installers/lib/ide/codex.js +217 -32
  72. package/tools/cli/installers/lib/ide/cursor.js +48 -0
  73. package/tools/cli/installers/lib/ide/github-copilot.js +74 -0
  74. package/tools/cli/installers/lib/ide/manager.js +35 -0
  75. package/tools/cli/installers/lib/ide/opencode.js +45 -0
  76. package/tools/cli/installers/lib/ide/windsurf.js +47 -0
  77. package/tools/cli/lib/agent/compiler.js +390 -0
  78. package/tools/cli/lib/agent/installer.js +725 -0
  79. package/tools/cli/lib/agent/template-engine.js +152 -0
  80. package/docs/installers-bundlers/web-bundler-usage.md +0 -54
  81. package/src/modules/bmb/workflows/create-agent/README.md +0 -203
  82. package/src/modules/bmb/workflows/create-agent/agent-architecture.md +0 -415
  83. package/src/modules/bmb/workflows/create-agent/agent-command-patterns.md +0 -759
  84. package/src/modules/bmb/workflows/create-agent/agent-types.md +0 -292
  85. package/src/modules/bmb/workflows/create-agent/checklist.md +0 -62
  86. package/src/modules/bmb/workflows/create-agent/communication-styles.md +0 -202
  87. package/src/modules/bmb/workflows/edit-agent/checklist.md +0 -112
  88. package/src/modules/bmb/workflows/redoc/README.md +0 -87
  89. package/src/modules/bmb/workflows/redoc/checklist.md +0 -99
  90. package/src/modules/bmb/workflows/redoc/instructions.md +0 -265
  91. package/src/modules/bmb/workflows/redoc/workflow.yaml +0 -34
  92. package/src/modules/bmm/agents/frame-expert.agent.yaml +0 -42
  93. package/src/modules/bmm/workflows/frame-expert/create-dataflow/workflow.yaml +0 -24
  94. package/src/modules/bmm/workflows/frame-expert/create-diagram/workflow.yaml +0 -25
  95. package/src/modules/bmm/workflows/frame-expert/create-flowchart/workflow.yaml +0 -28
  96. package/src/modules/bmm/workflows/frame-expert/create-wireframe/workflow.yaml +0 -24
  97. package/src/modules/bmm/workflows/workflow-status/paths/game-design.yaml +0 -52
  98. /package/src/{modules/bmm/workflows/frame-expert/_shared → core/resources/excalidraw}/excalidraw-helpers.md +0 -0
  99. /package/src/{modules/bmm/workflows/frame-expert/_shared → core/resources/excalidraw}/validate-json-instructions.md +0 -0
  100. /package/src/modules/bmm/workflows/{2-plan-workflows → 3-solutioning}/create-epics-and-stories/epics-template.md +0 -0
  101. /package/src/modules/bmm/workflows/{2-plan-workflows → 3-solutioning}/create-epics-and-stories/instructions.md +0 -0
  102. /package/src/modules/bmm/workflows/{frame-expert → diagrams}/_shared/excalidraw-library.json +0 -0
  103. /package/src/modules/bmm/workflows/{frame-expert → diagrams}/_shared/excalidraw-templates.yaml +0 -0
  104. /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-dataflow/checklist.md +0 -0
  105. /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-diagram/checklist.md +0 -0
  106. /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-flowchart/checklist.md +0 -0
  107. /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-wireframe/checklist.md +0 -0
@@ -1,105 +1,216 @@
1
1
  # Edit Agent Workflow
2
2
 
3
- Interactive workflow for editing existing BMAD Core agents while maintaining best practices and conventions.
3
+ Interactive workflow for editing existing BMAD agents while maintaining best practices and modern standards.
4
4
 
5
5
  ## Purpose
6
6
 
7
7
  This workflow helps you refine and improve existing agents by:
8
8
 
9
- - Analyzing agents against BMAD Core best practices
9
+ - Analyzing agents against BMAD best practices
10
+ - **Fixing persona field separation issues** (the #1 quality problem)
10
11
  - Identifying issues and improvement opportunities
11
12
  - Providing guided editing for specific aspects
12
13
  - Validating changes against agent standards
13
- - Ensuring consistency with agent architecture
14
+ - Ensuring consistency with modern agent architecture (Simple/Expert/Module)
15
+ - Migrating from legacy patterns (full/hybrid/standalone)
14
16
 
15
17
  ## When to Use
16
18
 
17
19
  Use this workflow when you need to:
18
20
 
19
- - Fix issues in existing agents
21
+ - **Fix persona field separation** (communication_style has behaviors mixed in)
22
+ - Fix issues in existing agents (broken paths, invalid references)
20
23
  - Add new menu items or workflows
21
24
  - Improve agent persona or communication style
22
25
  - Update configuration handling
23
- - Convert between agent types (full/hybrid/standalone)
26
+ - Migrate from legacy terminology (full/hybrid/standalone → Simple/Expert/Module)
27
+ - Convert between agent types
24
28
  - Optimize agent structure and clarity
29
+ - Update legacy agents to modern BMAD standards
25
30
 
26
31
  ## What You'll Need
27
32
 
28
- - Path to the agent file you want to edit (.yaml or .md)
29
- - Understanding of what changes you want to make
33
+ - Path to the agent file or folder you want to edit:
34
+ - Simple agent: path to .agent.yaml file
35
+ - Expert agent: path to folder containing .agent.yaml and sidecar files
36
+ - Understanding of what changes you want to make (or let the workflow analyze and suggest)
30
37
  - Access to the agent documentation (loaded automatically)
31
38
 
32
39
  ## Workflow Steps
33
40
 
34
41
  1. **Load and analyze target agent** - Provide path to agent file
35
- 2. **Analyze against best practices** - Automatic audit of agent structure
36
- 3. **Select editing focus** - Choose what aspect to edit
37
- 4. **Load relevant documentation** - Auto-loads guides based on your choice
38
- 5. **Perform edits** - Review and approve changes iteratively
39
- 6. **Validate all changes** - Comprehensive validation checklist
40
- 7. **Generate change summary** - Summary of improvements made
41
-
42
- ## Editing Options
43
-
44
- The workflow provides 12 focused editing options:
45
-
46
- 1. **Fix critical issues** - Address broken references, syntax errors
47
- 2. **Add/fix standard config** - Ensure config loading and variable usage
48
- 3. **Refine persona** - Improve role, communication style, principles
49
- 4. **Update activation** - Modify activation steps and greeting
50
- 5. **Manage menu items** - Add, remove, or reorganize commands
51
- 6. **Update workflow references** - Fix paths, add new workflows
52
- 7. **Enhance menu handlers** - Improve handler logic
53
- 8. **Improve command triggers** - Refine asterisk commands
54
- 9. **Optimize agent type** - Convert between full/hybrid/standalone
55
- 10. **Add new capabilities** - Add menu items, workflows, features
56
- 11. **Remove bloat** - Delete unused commands, redundant instructions
57
- 12. **Full review and update** - Comprehensive improvements
42
+ 2. **Discover improvement goals collaboratively** - Discuss what needs improvement and why
43
+ 3. **Facilitate improvements iteratively** - Make changes collaboratively with approval
44
+ 4. **Validate all changes holistically** - Comprehensive validation checklist
45
+ 5. **Review improvements and guide next steps** - Summary and guidance
46
+
47
+ ## Common Editing Scenarios
48
+
49
+ The workflow handles these common improvement needs:
50
+
51
+ 1. **Fix persona field separation** - Extract behaviors from communication_style to principles (MOST COMMON)
52
+ 2. **Fix critical issues** - Address broken references, syntax errors
53
+ 3. **Edit sidecar files** - Update templates, knowledge bases, docs (Expert agents)
54
+ 4. **Add/fix standard config** - Ensure config loading and variable usage
55
+ 5. **Refine persona** - Improve role, identity, communication style, principles
56
+ 6. **Update activation** - Modify activation steps and greeting
57
+ 7. **Manage menu items** - Add, remove, or reorganize commands
58
+ 8. **Update workflow references** - Fix paths, add new workflows
59
+ 9. **Enhance menu handlers** - Improve handler logic
60
+ 10. **Improve command triggers** - Refine asterisk commands
61
+ 11. **Migrate agent type** - Convert from legacy full/hybrid/standalone to Simple/Expert/Module
62
+ 12. **Add new capabilities** - Add menu items, workflows, features
63
+ 13. **Remove bloat** - Delete unused commands, redundant instructions, orphaned sidecar files
64
+ 14. **Full review and update** - Comprehensive improvements
65
+
66
+ **Most agents need persona field separation fixes** - this is the #1 quality issue found in legacy agents.
58
67
 
59
68
  ## Agent Documentation Loaded
60
69
 
61
- This workflow automatically loads:
70
+ This workflow automatically loads comprehensive agent documentation:
62
71
 
63
- - **Agent Types Guide** - Understanding full, hybrid, and standalone agents
64
- - **Agent Architecture** - Structure, activation, and menu patterns
65
- - **Command Patterns** - Menu handlers and command triggers
66
- - **Communication Styles** - Persona and communication guidance
67
- - **Workflow Execution Engine** - How agents execute workflows
72
+ **Core Concepts:**
73
+
74
+ - **Understanding Agent Types** - Simple, Expert, Module distinctions (architecture, not capability)
75
+ - **Agent Compilation** - How YAML compiles to XML and what auto-injects
76
+
77
+ **Architecture Guides:**
78
+
79
+ - **Simple Agent Architecture** - Self-contained agents (NOT capability-limited!)
80
+ - **Expert Agent Architecture** - Agents with sidecar files (templates, docs, knowledge)
81
+ - **Module Agent Architecture** - Ecosystem-integrated agents (design intent)
82
+
83
+ **Design Patterns:**
84
+
85
+ - **Agent Menu Patterns** - Menu handlers, command structure, workflow integration
86
+ - **Communication Presets** - 60 pure communication styles across 13 categories
87
+ - **Brainstorm Context** - Creative ideation for persona development
88
+
89
+ **Reference Implementations:**
90
+
91
+ - **commit-poet** (Simple) - Shows Simple agents can be powerful and sophisticated
92
+ - **journal-keeper** (Expert) - Shows sidecar structure with memories and patterns
93
+ - **security-engineer** (Module) - Shows design intent and ecosystem integration
94
+ - **All BMM agents** - Examples of distinct, memorable communication voices
95
+
96
+ **Workflow Execution Engine** - How agents execute workflows
97
+
98
+ ## Critical: Persona Field Separation
99
+
100
+ **THE #1 ISSUE** in legacy agents is persona field separation. The workflow checks for this automatically.
101
+
102
+ ### What Is Persona Field Separation?
103
+
104
+ Each persona field serves a specific purpose that the LLM uses when activating:
105
+
106
+ - **role** → "What knowledge, skills, and capabilities do I possess?"
107
+ - **identity** → "What background, experience, and context shape my responses?"
108
+ - **communication_style** → "What verbal patterns, word choice, quirks do I use?"
109
+ - **principles** → "What beliefs and philosophy drive my choices?"
110
+
111
+ ### The Problem
112
+
113
+ Many agents have behaviors/role/identity mixed into communication_style:
114
+
115
+ **WRONG:**
116
+
117
+ ```yaml
118
+ communication_style: 'Experienced analyst who ensures all stakeholders are heard and uses systematic approaches'
119
+ ```
120
+
121
+ **RIGHT:**
122
+
123
+ ```yaml
124
+ identity: 'Senior analyst with 8+ years connecting market insights to strategy'
125
+ communication_style: 'Treats analysis like a treasure hunt - excited by every clue, thrilled when patterns emerge'
126
+ principles:
127
+ - 'Ensure all stakeholder voices heard'
128
+ - 'Use systematic, structured approaches'
129
+ ```
130
+
131
+ ### Red Flag Words
132
+
133
+ If communication_style contains these words, it needs fixing:
134
+
135
+ - "ensures", "makes sure", "always", "never" → Behaviors (move to principles)
136
+ - "experienced", "expert who", "senior" → Identity (move to identity/role)
137
+ - "believes in", "focused on" → Philosophy (move to principles)
68
138
 
69
139
  ## Output
70
140
 
71
- The workflow modifies your agent file in place, maintaining the original format (YAML or markdown). Changes are reviewed and approved by you before being applied.
141
+ The workflow modifies your agent file in place, maintaining the original format (YAML). Changes are reviewed and approved by you before being applied.
72
142
 
73
143
  ## Best Practices
74
144
 
75
145
  - **Start with analysis** - Let the workflow audit your agent first
146
+ - **Check persona field separation FIRST** - This is the #1 issue in legacy agents
147
+ - **Use reference agents as guides** - Compare against commit-poet, journal-keeper, BMM agents
76
148
  - **Focus your edits** - Choose specific aspects to improve
77
149
  - **Review each change** - Approve or modify proposed changes
78
- - **Validate thoroughly** - Use the validation step to catch issues
150
+ - **Validate persona purity** - Communication_style should have ZERO red flag words
151
+ - **Validate thoroughly** - Use the validation step to catch all issues
79
152
  - **Test after editing** - Invoke the edited agent to verify it works
80
153
 
81
154
  ## Tips
82
155
 
83
- - If you're unsure what needs improvement, choose option 12 (Full review)
84
- - For quick fixes, choose the specific option (like option 6 for workflow paths)
156
+ - **Most common fix needed:** Persona field separation - communication_style has behaviors/role mixed in
157
+ - If you're unsure what needs improvement, let the workflow analyze the agent first
158
+ - For quick fixes, tell the workflow specifically what needs fixing
85
159
  - The workflow loads documentation automatically - you don't need to read it first
86
160
  - You can make multiple rounds of edits in one session
161
+ - **Red flag words in communication_style:** "ensures", "makes sure", "experienced", "expert who", "believes in"
162
+ - Compare your agent's communication_style against the presets CSV - should be similarly pure
87
163
  - Use the validation step to ensure you didn't miss anything
88
164
 
89
- ## Related Workflows
165
+ ## Example Usage
90
166
 
91
- - **create-agent** - Create new agents from scratch
92
- - **edit-workflow** - Edit workflows referenced by agents
93
- - **audit-workflow** - Audit workflows for compliance
167
+ **Scenario 1: Fix persona field separation (most common)**
94
168
 
95
- ## Example Usage
169
+ ```
170
+ User: Edit the analyst agent
171
+ Workflow: Loads agent → Analyzes → Finds communication_style has "ensures stakeholders heard"
172
+ → Explains this is behavior, should be in principles
173
+ → Extracts behaviors to principles
174
+ → Crafts pure communication style: "Treats analysis like a treasure hunt"
175
+ → Validates → Done
176
+ ```
177
+
178
+ **Scenario 2: Add new workflow**
96
179
 
97
180
  ```
98
181
  User: I want to add a new workflow to the PM agent
99
- Workflow: Analyzes agent → Loads it You choose option 5 (manage menu items)
100
- → Adds new menu item with workflow reference → Validates → Done
182
+ Workflow: Analyzes agent → User describes what workflow to add
183
+ → Adds new menu item with workflow reference
184
+ → Validates all paths resolve → Done
185
+ ```
186
+
187
+ **Scenario 2b: Edit Expert agent sidecar files**
188
+
189
+ ```
190
+ User: Edit the journal-keeper agent - I want to update the daily journal template
191
+ Workflow: Loads folder → Finds .agent.yaml + 3 sidecar templates + 1 knowledge file
192
+ → Analyzes → Loads daily.md template
193
+ → User describes changes to template
194
+ → Updates daily.md, shows before/after
195
+ → Validates menu item 'daily-journal' still references it correctly → Done
196
+ ```
197
+
198
+ **Scenario 3: Migrate from legacy type**
199
+
200
+ ```
201
+ User: This agent says it's a "full agent" - what does that mean now?
202
+ Workflow: Explains Simple/Expert/Module types
203
+ → Identifies agent is actually Simple (single file)
204
+ → Updates any legacy terminology in comments
205
+ → Validates structure matches type → Done
101
206
  ```
102
207
 
208
+ ## Related Workflows
209
+
210
+ - **create-agent** - Create new agents from scratch with proper field separation
211
+ - **edit-workflow** - Edit workflows referenced by agents
212
+ - **audit-workflow** - Audit workflows for compliance
213
+
103
214
  ## Activation
104
215
 
105
216
  Invoke via BMad Builder agent:
@@ -110,3 +221,19 @@ Then select: *edit-agent
110
221
  ```
111
222
 
112
223
  Or directly via workflow.xml with this workflow config.
224
+
225
+ ## Quality Standards
226
+
227
+ After editing with this workflow, your agent will meet these quality standards:
228
+
229
+ ✓ Persona fields properly separated (communication_style is pure verbal patterns)
230
+ ✓ Agent type matches structure (Simple/Expert/Module)
231
+ ✓ All workflow paths resolve correctly
232
+ ✓ Activation flow is robust
233
+ ✓ Menu structure is clear and logical
234
+ ✓ Handlers properly invoke workflows
235
+ ✓ Config loading works correctly
236
+ ✓ No legacy terminology (full/hybrid/standalone)
237
+ ✓ Comparable quality to reference agents
238
+
239
+ This workflow ensures your agents meet the same high standards as the reference implementations and recently enhanced BMM agents.