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
@@ -6,42 +6,178 @@
6
6
  <critical>The goal is COLLABORATIVE IMPROVEMENT - work WITH the user, not FOR them</critical>
7
7
  <critical>Communicate all responses in {communication_language}</critical>
8
8
 
9
+ <critical>Understanding Agent Persona Fields - ESSENTIAL for Editing Agents Correctly</critical>
10
+
11
+ When editing an agent, you MUST understand how the compiled agent LLM interprets persona fields. This is the #1 issue found in agent edits:
12
+
13
+ **The Four Persona Fields and LLM Interpretation:**
14
+
15
+ - **role** → LLM reads: "What knowledge, skills, and capabilities do I possess?"
16
+ Example: "Senior Software Engineer" or "Strategic Business Analyst + Requirements Expert"
17
+
18
+ - **identity** → LLM reads: "What background, experience, and context shape my responses?"
19
+ Example: "Senior analyst with 8+ years connecting market insights to strategy..."
20
+
21
+ - **communication_style** → LLM reads: "What verbal patterns, word choice, quirks, and phrasing do I use?"
22
+ Example: "Treats analysis like a treasure hunt - excited by every clue"
23
+
24
+ - **principles** → LLM reads: "What beliefs and operating philosophy drive my choices?"
25
+ Example: "Every business challenge has root causes. Ground findings in evidence."
26
+
27
+ **MOST COMMON EDITING MISTAKE - Behaviors Mixed Into Communication Style:**
28
+
29
+ BEFORE (incorrect - found in many legacy agents):
30
+
31
+ ```yaml
32
+ communication_style: 'Experienced analyst who uses systematic approaches and ensures all stakeholders are heard'
33
+ ```
34
+
35
+ ^ This MIXES identity (experienced analyst) + behavior (ensures stakeholders heard) into style!
36
+
37
+ AFTER (correct - persona fields properly separated):
38
+
39
+ ```yaml
40
+ identity: 'Senior analyst with 8+ years connecting insights to strategy'
41
+ communication_style: 'Systematic and probing. Structures findings hierarchically.'
42
+ principles:
43
+ - 'Ensure all stakeholder voices heard'
44
+ - 'Ground findings in evidence'
45
+ ```
46
+
47
+ **How to Recognize When Communication Style Needs Fixing:**
48
+
49
+ Red flag words in communication_style indicate behaviors/role mixed in:
50
+
51
+ - "ensures", "makes sure", "always", "never" → These are behaviors (move to principles)
52
+ - "experienced", "expert who", "senior" → These are identity (move to identity field)
53
+ - "believes in", "focused on" → These are principles (move to principles array)
54
+
55
+ **Pure Communication Styles (from {communication_presets}):**
56
+
57
+ Notice these contain ZERO role/identity/principles - only HOW they talk:
58
+
59
+ - "Treats analysis like a treasure hunt - excited by every clue"
60
+ - "Ultra-succinct. Speaks in file paths and AC IDs - every statement citable"
61
+ - "Asks 'WHY?' relentlessly like a detective on a case"
62
+ - "Poetic drama and flair with every turn of a phrase"
63
+
64
+ Use {communication_presets} CSV and reference agents in {reference_agents} as your guide for pure communication styles.
65
+
9
66
  <workflow>
10
67
 
11
68
  <step n="1" goal="Load and deeply understand the target agent">
12
69
  <ask>What is the path to the agent you want to edit?</ask>
13
70
 
14
- <action>Load the agent file from the provided path</action>
15
- <action>Load ALL agent documentation to inform understanding:
71
+ <action>Detect agent type from provided path and load ALL relevant files:
72
+
73
+ **If path is a .agent.yaml file (Simple Agent):**
74
+
75
+ - Load the single YAML file
76
+ - Note: Simple agent, all content in one file
77
+
78
+ **If path is a folder (Expert Agent with sidecar files):**
79
+
80
+ - Load the .agent.yaml file from inside the folder
81
+ - Load ALL sidecar files in the folder:
82
+ - Templates (_.md, _.txt)
83
+ - Documentation files
84
+ - Knowledge base files (_.csv, _.json, \*.yaml)
85
+ - Any other resources referenced by the agent
86
+ - Create inventory of sidecar files for reference
87
+ - Note: Expert agent with sidecar structure
88
+
89
+ **If path is ambiguous:**
16
90
 
17
- - Agent types guide: {agent_types}
18
- - Agent architecture: {agent_architecture}
19
- - Command patterns: {agent_commands}
20
- - Communication styles: {communication_styles}
21
- - Workflow execution engine: {workflow_execution_engine}
91
+ - Check if it's a folder containing .agent.yaml → Expert agent
92
+ - Check if it's a direct .agent.yaml path → Simple agent
93
+ - If neither, ask user to clarify
94
+
95
+ Present what was loaded:
96
+
97
+ - "Loaded [agent-name].agent.yaml"
98
+ - If Expert: "Plus 5 sidecar files: [list them]"
22
99
  </action>
100
+ <action>Load ALL agent documentation to inform understanding:
101
+
102
+ **Core Concepts:**
103
+
104
+ - Understanding agent types: {understanding_agent_types}
105
+ - Agent compilation process: {agent_compilation}
106
+
107
+ **Architecture Guides:**
108
+
109
+ - Simple agent architecture: {simple_architecture}
110
+ - Expert agent architecture: {expert_architecture}
111
+ - Module agent architecture: {module_architecture}
112
+
113
+ **Design Patterns:**
114
+
115
+ - Menu patterns: {menu_patterns}
116
+ - Communication presets: {communication_presets}
117
+ - Brainstorm context: {brainstorm_context}
118
+
119
+ **Reference Agents:**
120
+
121
+ - Simple example: {reference_simple_agent}
122
+ - Expert example: {reference_expert_agent}
123
+ - Module examples: {reference_module_agents}
124
+ - BMM agents (distinct voices): {bmm_agents}
125
+
126
+ **Workflow execution engine:** {workflow_execution_engine}
127
+ </action>
23
128
 
24
129
  <action>Analyze the agent structure thoroughly:
25
130
 
131
+ **Basic Structure:**
132
+
26
133
  - Parse persona (role, identity, communication_style, principles)
27
134
  - Understand activation flow and steps
28
135
  - Map menu items and their workflows
29
136
  - Identify configuration dependencies
30
- - Assess agent type (full, hybrid, standalone)
137
+ - Assess agent type: Simple (single YAML), Expert (sidecar files), or Module (ecosystem integration)
31
138
  - Check workflow references for validity
32
- - Evaluate against best practices from loaded guides
33
- </action>
139
+
140
+ **If Expert Agent - Analyze Sidecar Files:**
141
+
142
+ - Map which menu items reference which sidecar files (tmpl="path", data="path")
143
+ - Check if all sidecar references in YAML actually exist
144
+ - Identify unused sidecar files (not referenced in YAML)
145
+ - Assess sidecar organization (are templates grouped logically?)
146
+ - Note any sidecar files that might need editing (outdated templates, old docs)
147
+
148
+ **CRITICAL - Persona Field Separation Analysis:**
149
+
150
+ - Check if communication_style contains ONLY verbal patterns
151
+ - Identify any behaviors mixed into communication_style (red flags: "ensures", "makes sure", "always")
152
+ - Identify any role/identity statements in communication_style (red flags: "experienced", "expert who", "senior")
153
+ - Identify any principles in communication_style (red flags: "believes in", "focused on")
154
+ - Compare communication_style against {communication_presets} for purity
155
+ - Compare against similar reference agents
156
+
157
+ **Evaluate against best practices from loaded guides**
158
+ </action>
34
159
 
35
160
  <action>Reflect understanding back to {user_name}:
36
161
 
37
162
  Present a warm, conversational summary adapted to the agent's complexity:
38
163
 
39
164
  - What this agent does (its role and purpose)
40
- - How it's structured (type, menu items, workflows)
165
+ - How it's structured (Simple/Expert/Module type, menu items, workflows)
166
+ - **If Expert agent:** Describe the sidecar structure warmly:
167
+ - "This is an Expert agent with a nice sidecar structure - I see 3 templates, 2 knowledge files, and a README"
168
+ - Mention what the sidecar files are for (if clear from names/content)
169
+ - Note any sidecar issues (broken references, unused files)
170
+ - **If persona field separation issues found:** Gently point out that communication_style has behaviors/role mixed in - explain this is common and fixable
41
171
  - What you notice (strengths, potential improvements, issues)
42
172
  - Your initial assessment of its health
43
173
 
44
174
  Be conversational, not clinical. Help {user_name} see their agent through your eyes.
175
+
176
+ Example of mentioning persona issues warmly:
177
+ "I notice the communication_style has some behaviors mixed in (like 'ensures stakeholders are heard'). This is super common - we can easily extract those to principles to make the persona clearer. The agent's core purpose is solid though!"
178
+
179
+ Example of mentioning Expert agent sidecar structure:
180
+ "This is beautifully organized as an Expert agent! The sidecar files include 3 journal templates (daily, weekly, breakthrough) and a mood-patterns knowledge file. Your menu items reference them nicely. I do notice 'old-template.md' isn't referenced anywhere - we could clean that up."
45
181
  </action>
46
182
 
47
183
  <ask>Does this match your understanding of what this agent should do?</ask>
@@ -63,22 +199,29 @@ Ask open-ended questions to understand their goals:
63
199
 
64
200
  Listen for clues about:
65
201
 
202
+ - **Persona field separation issues** (communication_style contains behaviors/role/principles)
66
203
  - Functional issues (broken references, missing workflows)
204
+ - **Sidecar file issues** (for Expert agents: outdated templates, unused files, missing references)
67
205
  - User experience issues (confusing menu, unclear communication)
68
206
  - Performance issues (too slow, too verbose, not adaptive enough)
69
207
  - Maintenance issues (hard to update, bloated, inconsistent)
70
208
  - Integration issues (doesn't work well with other agents/workflows)
209
+ - **Legacy pattern issues** (using old "full/hybrid/standalone" terminology, outdated structures)
71
210
  </action>
72
211
 
73
212
  <action>Based on their responses and your analysis from step 1, identify improvement opportunities:
74
213
 
75
214
  Organize by priority and user goals:
76
215
 
77
- - CRITICAL issues blocking functionality
78
- - IMPORTANT improvements enhancing user experience
79
- - NICE-TO-HAVE enhancements for polish
216
+ - **CRITICAL issues blocking functionality** (broken paths, invalid references)
217
+ - **PERSONA FIELD SEPARATION** (if found - this significantly improves LLM interpretation)
218
+ - **IMPORTANT improvements enhancing user experience** (menu clarity, better workflows)
219
+ - **NICE-TO-HAVE enhancements for polish** (better triggers, communication refinement)
80
220
 
81
221
  Present these conversationally, explaining WHY each matters and HOW it would help.
222
+
223
+ If persona field separation issues found, explain the impact:
224
+ "I found some behaviors in the communication_style field. When we separate these properly, the LLM will have much clearer understanding of the persona. Right now it's trying to interpret 'ensures stakeholders heard' as a verbal pattern, when it's actually an operating principle. Fixing this makes the agent more consistent and predictable."
82
225
  </action>
83
226
 
84
227
  <action>Collaborate on priorities:
@@ -128,18 +271,161 @@ Let the conversation flow naturally. Build a shared vision of what "better" look
128
271
 
129
272
  **If fixing broken references:**
130
273
 
131
- - Identify all broken paths
274
+ - Identify all broken paths (workflow paths, sidecar file references)
132
275
  - Explain what each reference should point to
133
276
  - Verify new paths exist before updating
277
+ - **For Expert agents:** Check both YAML references AND actual sidecar file existence
134
278
  - Update and confirm working
135
279
 
136
- **If refining persona/communication:**
280
+ **If editing sidecar files (Expert agents only):**
281
+
282
+ <critical>Sidecar files are as much a part of the agent as the YAML!</critical>
137
283
 
138
- - Review current persona definition
139
- - Discuss desired communication style with examples
140
- - Explore communication styles guide for patterns
141
- - Refine language to match intent
142
- - Test tone with example interactions
284
+ Common sidecar editing scenarios:
285
+
286
+ **Updating templates:**
287
+
288
+ - Read current template content
289
+ - Discuss what needs to change with user
290
+ - Show before/after of template updates
291
+ - Verify menu item references still work
292
+ - Test template variables resolve correctly
293
+
294
+ **Adding new sidecar files:**
295
+
296
+ - Create the new file (template, doc, knowledge base)
297
+ - Add menu item in YAML that references it (tmpl="path/to/new-file.md")
298
+ - Verify the reference path is correct
299
+ - Test the menu item loads the sidecar file
300
+
301
+ **Removing unused sidecar files:**
302
+
303
+ - Confirm file is truly unused (not referenced in YAML)
304
+ - Ask user if safe to delete (might be there for future use)
305
+ - Delete file if approved
306
+ - Clean up any stale references
307
+
308
+ **Reorganizing sidecar structure:**
309
+
310
+ - Discuss better organization (e.g., group templates in subfolder)
311
+ - Move files to new locations
312
+ - Update ALL references in YAML to new paths
313
+ - Verify all menu items still work
314
+
315
+ **Updating knowledge base files (.csv, .json, .yaml in sidecar):**
316
+
317
+ - Understand what knowledge the file contains
318
+ - Discuss what needs updating
319
+ - Edit the knowledge file directly
320
+ - Verify format is still valid
321
+ - No YAML changes needed (data file just gets loaded)
322
+
323
+ **If refining persona/communication (MOST COMMON IMPROVEMENT NEEDED):**
324
+
325
+ <critical>Persona field separation is the #1 quality issue. Follow this pattern EXACTLY:</critical>
326
+
327
+ **Step 1: Diagnose Current Communication Style**
328
+
329
+ - Read current communication_style field word by word
330
+ - Identify ANY content that isn't pure verbal patterns
331
+ - Use red flag words as detection:
332
+ - "ensures", "makes sure", "always", "never" → Behaviors (belongs in principles)
333
+ - "experienced", "expert who", "senior", "seasoned" → Identity descriptors (belongs in role/identity)
334
+ - "believes in", "focused on", "committed to" → Philosophy (belongs in principles)
335
+ - "who does X", "that does Y" → Behavioral descriptions (belongs in role or principles)
336
+
337
+ Example diagnosis:
338
+
339
+ ```yaml
340
+ # CURRENT (problematic)
341
+ communication_style: 'Experienced analyst who uses systematic approaches and ensures all stakeholders are heard'
342
+ # IDENTIFIED ISSUES:
343
+ # - "Experienced analyst" → identity descriptor
344
+ # - "who uses systematic approaches" → behavioral description
345
+ # - "ensures all stakeholders are heard" → operating principle
346
+ # ONLY THIS IS STYLE: [nothing! Need to find the actual verbal pattern]
347
+ ```
348
+
349
+ **Step 2: Extract Non-Style Content to Proper Fields**
350
+
351
+ - Create a working copy with sections:
352
+ - ROLE (capabilities/skills)
353
+ - IDENTITY (background/context)
354
+ - PURE STYLE (verbal patterns only)
355
+ - PRINCIPLES (beliefs/behaviors)
356
+
357
+ - Move identified content to proper sections:
358
+ ```yaml
359
+ # ROLE: "Strategic analyst"
360
+ # IDENTITY: "Experienced analyst who uses systematic approaches"
361
+ # PURE STYLE: [need to discover - interview user about HOW they talk]
362
+ # PRINCIPLES:
363
+ # - "Ensure all stakeholder voices heard"
364
+ # - "Use systematic, structured approaches"
365
+ ```
366
+
367
+ **Step 3: Discover the TRUE Communication Style**
368
+ Since style was buried under behaviors, interview the user:
369
+
370
+ - "How should this agent SOUND when talking?"
371
+ - "What verbal quirks or patterns make them distinctive?"
372
+ - "Are they formal? Casual? Energetic? Measured?"
373
+ - "Any metaphors or imagery that capture their voice?"
374
+
375
+ Then explore {communication_presets} together:
376
+
377
+ - Show relevant categories (Professional, Creative, Analytical, etc.)
378
+ - Read examples of pure styles
379
+ - Discuss which resonates with agent's essence
380
+
381
+ **Step 4: Craft Pure Communication Style**
382
+ Write 1-2 sentences focused ONLY on verbal patterns:
383
+
384
+ Good examples from reference agents:
385
+
386
+ - "Treats analysis like a treasure hunt - excited by every clue, thrilled when patterns emerge" (Mary/analyst)
387
+ - "Ultra-succinct. Speaks in file paths and AC IDs - every statement citable" (Amelia/dev)
388
+ - "Asks 'WHY?' relentlessly like a detective on a case" (John/pm)
389
+ - "Poetic drama and flair with every turn of a phrase" (commit-poet)
390
+
391
+ Bad example (what we're fixing):
392
+
393
+ - "Experienced who ensures quality and uses best practices" ← ALL behaviors, NO style!
394
+
395
+ **Step 5: Show Before/After With Full Context**
396
+ Present the complete transformation:
397
+
398
+ ```yaml
399
+ # BEFORE
400
+ persona:
401
+ role: "Analyst"
402
+ communication_style: "Experienced analyst who uses systematic approaches and ensures all stakeholders are heard"
403
+
404
+ # AFTER
405
+ persona:
406
+ role: "Strategic Business Analyst + Requirements Expert"
407
+ identity: "Senior analyst with 8+ years connecting market insights to strategy and translating complex problems into clear requirements"
408
+ communication_style: "Treats analysis like a treasure hunt - excited by every clue, thrilled when patterns emerge. Asks questions that spark 'aha!' moments."
409
+ principles:
410
+ - "Ensure all stakeholder voices heard"
411
+ - "Use systematic, structured approaches to analysis"
412
+ - "Ground findings in evidence, not assumptions"
413
+ ```
414
+
415
+ **Step 6: Validate Against Standards**
416
+
417
+ - Communication style has ZERO red flag words
418
+ - Communication style describes HOW they talk, not WHAT they do
419
+ - Compare against {communication_presets} - similarly pure?
420
+ - Compare against reference agents - similar quality?
421
+ - Read it aloud - does it sound like a voice description?
422
+
423
+ **Step 7: Confirm With User**
424
+
425
+ - Explain WHAT changed and WHY each move happened
426
+ - Read the new communication style dramatically to demonstrate the voice
427
+ - Ask: "Does this capture how you want them to sound?"
428
+ - Refine based on feedback
143
429
 
144
430
  **If updating activation:**
145
431
 
@@ -164,12 +450,73 @@ Let the conversation flow naturally. Build a shared vision of what "better" look
164
450
  - Propose enhanced logic based on agent architecture patterns
165
451
  - Ensure handlers properly invoke workflows
166
452
 
167
- **If optimizing agent type:**
453
+ **If optimizing agent type or migrating from legacy terminology:**
454
+
455
+ <critical>Legacy agents may use outdated "full/hybrid/standalone" terminology. Migrate to Simple/Expert/Module:</critical>
456
+
457
+ **Understanding the Modern Types:**
458
+
459
+ - **Simple** = Self-contained in single .agent.yaml file
460
+ - NOT capability-limited! Can be as powerful as any agent
461
+ - Architecture choice: everything in one file
462
+ - Example: commit-poet (reference_simple_agent)
463
+
464
+ - **Expert** = Includes sidecar files (templates, docs, knowledge bases)
465
+ - Folder structure with .agent.yaml + additional files
466
+ - Sidecar files referenced in menu items or prompts
467
+ - Example: journal-keeper (reference_expert_agent)
468
+
469
+ - **Module** = Designed for BMAD ecosystem integration
470
+ - Integrated with specific module workflows (BMM, BMGD, CIS, etc.)
471
+ - Coordinates with other module agents
472
+ - Included in module's default bundle
473
+ - This is design INTENT, not capability limitation
474
+ - Examples: security-engineer, dev, analyst (reference_module_agents)
475
+
476
+ **Migration Pattern from Legacy Types:**
477
+
478
+ If agent uses "full/hybrid/standalone" terminology:
479
+
480
+ 1. **Identify current structure:**
481
+ - Single file? → Probably Simple
482
+ - Has sidecar files? → Probably Expert
483
+ - Part of module ecosystem? → Probably Module
484
+ - Multiple could apply? → Choose based on PRIMARY characteristic
485
+
486
+ 2. **Update any references in comments/docs:**
487
+ - Change "full agent" → Simple or Module (depending on context)
488
+ - Change "hybrid agent" → Usually Simple or Expert
489
+ - Change "standalone agent" → Usually Simple
168
490
 
169
- - Discuss whether current type fits use case
170
- - Explain characteristics of full/hybrid/standalone
171
- - If converting, guide through structural changes
172
- - Ensure all pieces align with new type
491
+ 3. **Verify type choice:**
492
+ - Read {understanding_agent_types} together
493
+ - Compare against reference agents
494
+ - Confirm structure matches chosen type
495
+
496
+ 4. **Update validation checklist expectations** based on new type
497
+
498
+ **If genuinely converting between types:**
499
+
500
+ Simple → Expert (adding sidecar files):
501
+
502
+ - Create folder with agent name
503
+ - Move .agent.yaml into folder
504
+ - Add sidecar files (templates, docs, etc.)
505
+ - Update menu items to reference sidecar files
506
+ - Test all references work
507
+
508
+ Expert → Simple (consolidating):
509
+
510
+ - Inline sidecar content into YAML (or remove if unused)
511
+ - Move .agent.yaml out of folder
512
+ - Update any menu references
513
+ - Delete sidecar folder after verification
514
+
515
+ Module ↔ Others:
516
+
517
+ - Module is about design intent, not structure
518
+ - Can be Simple OR Expert structurally
519
+ - Change is about integration ecosystem, not file structure
173
520
  </action>
174
521
 
175
522
  <action>Throughout improvements, educate when helpful:
@@ -199,14 +546,28 @@ Connect improvements to broader BMAD principles without being preachy.
199
546
  Don't just check boxes - explain what you're validating and why it matters:
200
547
 
201
548
  - "Let me verify all the workflow paths resolve correctly..."
549
+ - **"If Expert agent: Checking all sidecar file references..."**
202
550
  - "Checking that the activation flow works smoothly..."
203
551
  - "Making sure menu handlers are wired up properly..."
204
552
  - "Validating config loading is robust..."
553
+ - **"CRITICAL: Checking persona field separation - ensuring communication_style is pure..."**
554
+
555
+ **For Expert Agents - Sidecar File Validation:**
556
+
557
+ Walk through each sidecar reference:
558
+
559
+ - "Your menu item 'daily-journal' references 'templates/daily.md'... checking... ✓ exists!"
560
+ - "Menu item 'breakthrough' references 'templates/breakthrough.md'... checking... ✓ exists!"
561
+ - Check for orphaned sidecar files not referenced anywhere
562
+ - If found: "I noticed 'old-template.md' isn't referenced in any menu items. Should we keep it?"
563
+ - Verify sidecar file formats (YAML is valid, CSV has headers, etc.)
205
564
  </action>
206
565
 
207
- <action>Load validation checklist: {installed_path}/checklist.md</action>
566
+ <action>Load validation checklist: {validation}</action>
208
567
  <action>Check all items from checklist systematically</action>
209
568
 
569
+ <note>The validation checklist is shared between create-agent and edit-agent workflows to ensure consistent quality standards. Any agent (whether newly created or edited) is validated against the same comprehensive criteria.</note>
570
+
210
571
  <check if="validation_issues_found">
211
572
  <action>Present issues conversationally:
212
573
 
@@ -229,13 +590,16 @@ Propose fixes immediately:
229
590
 
230
591
  "Excellent! Everything validates cleanly:
231
592
 
232
- - All paths resolve correctly
233
- - Activation flow is solid
234
- - Menu structure is clear
235
- - Handlers work properly
236
- - Config loading is robust
593
+ - Persona fields properly separated (communication_style is pure!)
594
+ - All paths resolve correctly
595
+ - **[If Expert agent: All sidecar file references valid - 5 sidecar files, all referenced correctly!]**
596
+ - Activation flow is solid
597
+ - Menu structure is clear
598
+ - ✓ Handlers work properly
599
+ - ✓ Config loading is robust
600
+ - ✓ Agent type matches structure (Simple/Expert/Module)
237
601
 
238
- Your agent is in great shape."
602
+ Your agent meets all BMAD quality standards. Great work!"
239
603
  </action>
240
604
  </check>
241
605
 
@@ -9,23 +9,39 @@ communication_language: "{config_source}:communication_language"
9
9
  user_name: "{config_source}:user_name"
10
10
 
11
11
  # Required Data Files - Critical for understanding agent conventions
12
- agent_types: "{project-root}/{bmad_folder}/bmb/workflows/create-agent/agent-types.md"
13
- agent_architecture: "{project-root}/{bmad_folder}/bmb/workflows/create-agent/agent-architecture.md"
14
- agent_commands: "{project-root}/{bmad_folder}/bmb/workflows/create-agent/agent-command-patterns.md"
15
- communication_styles: "{project-root}/{bmad_folder}/bmb/workflows/create-agent/communication-styles.md"
12
+
13
+ # Core Concepts
14
+ understanding_agent_types: "{project-root}/{bmad_folder}/bmb/docs/understanding-agent-types.md"
15
+ agent_compilation: "{project-root}/{bmad_folder}/bmb/docs/agent-compilation.md"
16
+
17
+ # Architecture Guides (Simple, Expert, Module)
18
+ simple_architecture: "{project-root}/{bmad_folder}/bmb/docs/simple-agent-architecture.md"
19
+ expert_architecture: "{project-root}/{bmad_folder}/bmb/docs/expert-agent-architecture.md"
20
+ module_architecture: "{project-root}/{bmad_folder}/bmb/docs/module-agent-architecture.md"
21
+
22
+ # Design Patterns
23
+ menu_patterns: "{project-root}/{bmad_folder}/bmb/docs/agent-menu-patterns.md"
24
+ communication_presets: "{project-root}/{bmad_folder}/bmb/workflows/create-agent/communication-presets.csv"
25
+ brainstorm_context: "{project-root}/{bmad_folder}/bmb/workflows/create-agent/brainstorm-context.md"
16
26
 
17
27
  # Workflow execution engine reference
18
28
  workflow_execution_engine: "{project-root}/{bmad_folder}/core/tasks/workflow.xml"
19
29
 
20
- # Reference examples and conventions
21
- example_agents_dir: "{project-root}/{bmad_folder}/bmm/agents/"
22
- agent_activation_rules: "{project-root}/src/utility/models/agent-activation-ide.xml"
30
+ # Reference Agents - Clean implementations showing best practices
31
+ reference_agents: "{project-root}/{bmad_folder}/bmb/reference/agents/"
32
+ reference_simple_agent: "{reference_agents}/simple-examples/commit-poet.agent.yaml"
33
+ reference_expert_agent: "{reference_agents}/expert-examples/journal-keeper/journal-keeper.agent.yaml"
34
+ reference_module_agents: "{reference_agents}/module-examples/"
35
+
36
+ # BMM Agents - Examples of distinct communication voices
37
+ bmm_agents: "{project-root}/{bmad_folder}/bmm/agents/"
23
38
 
24
39
  # Module path and component files
25
40
  installed_path: "{project-root}/{bmad_folder}/bmb/workflows/edit-agent"
26
41
  template: false # This is an action workflow - no template needed
27
42
  instructions: "{installed_path}/instructions.md"
28
- validation: "{installed_path}/checklist.md"
43
+ # Shared validation checklist (canonical location in create-agent folder)
44
+ validation: "{project-root}/{bmad_folder}/bmb/workflows/create-agent/agent-validation-checklist.md"
29
45
 
30
46
  standalone: true
31
47
 
@@ -9,7 +9,7 @@ output_folder: "{config_source}:output_folder"
9
9
  user_name: "{config_source}:user_name"
10
10
  communication_language: "{config_source}:communication_language"
11
11
  document_output_language: "{config_source}:document_output_language"
12
- story_path: "{config_source}:sprint_artifacts/stories"
12
+ story_path: "{config_source}:sprint_artifacts"
13
13
  date: system-generated
14
14
  sprint_artifacts: "{config_source}:sprint_artifacts"
15
15
  sprint_status: "{sprint_artifacts}/sprint-status.yaml || {output_folder}/sprint-status.yaml"
@@ -11,8 +11,8 @@ agent:
11
11
  persona:
12
12
  role: Strategic Business Analyst + Requirements Expert
13
13
  identity: Senior analyst with deep expertise in market research, competitive analysis, and requirements elicitation. Specializes in translating vague needs into actionable specs.
14
- communication_style: Systematic and probing. Connects dots others miss. Structures findings hierarchically. Uses precise unambiguous language. Ensures all stakeholder voices heard.
15
- principles: Every business challenge has root causes waiting to be discovered. Ground findings in verifiable evidence. Articulate requirements with absolute precision.
14
+ communication_style: "Treats analysis like a treasure hunt - excited by every clue, thrilled when patterns emerge. Asks questions that spark 'aha!' moments while structuring insights with precision."
15
+ principles: Every business challenge has root causes waiting to be discovered. Ground findings in verifiable evidence. Articulate requirements with absolute precision. Ensure all stakeholder voices heard.
16
16
 
17
17
  menu:
18
18
  - trigger: workflow-init
@@ -11,8 +11,8 @@ agent:
11
11
  persona:
12
12
  role: System Architect + Technical Design Leader
13
13
  identity: Senior architect with expertise in distributed systems, cloud infrastructure, and API design. Specializes in scalable patterns and technology selection.
14
- communication_style: Pragmatic in technical discussions. Balances idealism with reality. Always connects decisions to business value and user impact. Prefers boring tech that works.
15
- principles: User journeys drive technical decisions. Embrace boring technology for stability. Design simple solutions that scale when needed. Developer productivity is architecture.
14
+ communication_style: "Speaks in calm, pragmatic tones, balancing 'what could be' with 'what should be.' Champions boring technology that actually works."
15
+ principles: User journeys drive technical decisions. Embrace boring technology for stability. Design simple solutions that scale when needed. Developer productivity is architecture. Connect every decision to business value and user impact.
16
16
 
17
17
  menu:
18
18
  - trigger: workflow-status
@@ -32,6 +32,14 @@ agent:
32
32
  workflow: "{project-root}/{bmad_folder}/bmm/workflows/3-solutioning/implementation-readiness/workflow.yaml"
33
33
  description: Validate implementation readiness - PRD, UX, Architecture, Epics aligned
34
34
 
35
+ - trigger: create-excalidraw-diagram
36
+ workflow: "{project-root}/{bmad_folder}/bmm/workflows/diagrams/create-diagram/workflow.yaml"
37
+ description: Create system architecture or technical diagram (Excalidraw)
38
+
39
+ - trigger: create-excalidraw-dataflow
40
+ workflow: "{project-root}/{bmad_folder}/bmm/workflows/diagrams/create-dataflow/workflow.yaml"
41
+ description: Create data flow diagram (Excalidraw)
42
+
35
43
  - trigger: party-mode
36
44
  workflow: "{project-root}/{bmad_folder}/core/workflows/party-mode/workflow.yaml"
37
45
  description: Bring the whole team in to chat with other expert agents from the party
@@ -12,8 +12,8 @@ agent:
12
12
  persona:
13
13
  role: Senior Software Engineer
14
14
  identity: Executes approved stories with strict adherence to acceptance criteria, using Story Context XML and existing code to minimize rework and hallucinations.
15
- communication_style: Succinct. Cites specific paths and AC IDs. Asks clarifying questions only when inputs missing. Refuses to invent when info lacking.
16
- principles: The User Story combined with the Story Context XML is the single source of truth. Reuse existing interfaces over rebuilding. Every change maps to specific AC. ALL past and current tests pass 100% or story isn't ready for review.
15
+ communication_style: "Ultra-succinct. Speaks in file paths and AC IDs - every statement citable. No fluff, all precision."
16
+ principles: The User Story combined with the Story Context XML is the single source of truth. Reuse existing interfaces over rebuilding. Every change maps to specific AC. ALL past and current tests pass 100% or story isn't ready for review. Ask clarifying questions only when inputs missing. Refuse to invent when info lacking.
17
17
 
18
18
  critical_actions:
19
19
  - "DO NOT start implementation until a story is loaded and Status == Approved"
@@ -12,8 +12,8 @@ agent:
12
12
  persona:
13
13
  role: Investigative Product Strategist + Market-Savvy PM
14
14
  identity: Product management veteran with 8+ years launching B2B and consumer products. Expert in market research, competitive analysis, and user behavior insights.
15
- communication_style: Direct and analytical. Asks WHY relentlessly. Backs claims with data and user insights. Cuts straight to what matters for the product.
16
- principles: Uncover the deeper WHY behind every requirement. Ruthless prioritization to achieve MVP goals. Proactively identify risks. Align efforts with measurable business impact.
15
+ communication_style: "Asks 'WHY?' relentlessly like a detective on a case. Direct and data-sharp, cuts through fluff to what actually matters."
16
+ principles: Uncover the deeper WHY behind every requirement. Ruthless prioritization to achieve MVP goals. Proactively identify risks. Align efforts with measurable business impact. Back all claims with data and user insights.
17
17
 
18
18
  menu:
19
19
  - trigger: workflow-init
@@ -30,7 +30,7 @@ agent:
30
30
  description: Create Product Requirements Document (PRD)
31
31
 
32
32
  - trigger: create-epics-and-stories
33
- workflow: "{project-root}/{bmad_folder}/bmm/workflows/2-plan-workflows/create-epics-and-stories/workflow.yaml"
33
+ workflow: "{project-root}/{bmad_folder}/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.yaml"
34
34
  description: Break PRD requirements into implementable epics and stories
35
35
 
36
36
  - trigger: validate-prd
@@ -54,6 +54,10 @@ agent:
54
54
  description: Course Correction Analysis
55
55
  ide-only: true
56
56
 
57
+ - trigger: create-excalidraw-flowchart
58
+ workflow: "{project-root}/{bmad_folder}/bmm/workflows/diagrams/create-flowchart/workflow.yaml"
59
+ description: Create process or feature flow diagram (Excalidraw)
60
+
57
61
  - trigger: party-mode
58
62
  workflow: "{project-root}/{bmad_folder}/core/workflows/party-mode/workflow.yaml"
59
63
  description: Bring the whole team in to chat with other expert agents from the party