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.
- package/CHANGELOG.md +215 -1109
- package/README.md +129 -359
- package/docs/custom-agent-installation.md +169 -0
- package/{v6-open-items.md → docs/v6-open-items.md} +1 -1
- package/package.json +2 -1
- package/src/core/resources/excalidraw/README.md +160 -0
- package/src/core/resources/excalidraw/library-loader.md +50 -0
- package/src/modules/bmb/docs/agent-compilation.md +340 -0
- package/src/modules/bmb/docs/agent-menu-patterns.md +524 -0
- package/src/modules/bmb/docs/expert-agent-architecture.md +364 -0
- package/src/modules/bmb/docs/index.md +55 -0
- package/src/modules/bmb/docs/module-agent-architecture.md +367 -0
- package/src/modules/bmb/docs/simple-agent-architecture.md +288 -0
- package/src/modules/bmb/docs/understanding-agent-types.md +184 -0
- package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/README.md +242 -0
- package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
- package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
- package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
- package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
- package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
- package/src/modules/bmb/reference/agents/module-examples/README.md +50 -0
- package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
- package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
- package/src/modules/bmb/reference/agents/simple-examples/README.md +223 -0
- package/src/modules/bmb/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
- package/src/modules/bmb/reference/readme.md +3 -0
- package/src/modules/bmb/workflows/create-agent/agent-validation-checklist.md +174 -0
- package/src/modules/bmb/workflows/create-agent/brainstorm-context.md +99 -120
- package/src/modules/bmb/workflows/create-agent/communication-presets.csv +61 -0
- package/src/modules/bmb/workflows/create-agent/instructions.md +126 -65
- package/src/modules/bmb/workflows/create-agent/workflow.yaml +19 -12
- package/src/modules/bmb/workflows/edit-agent/README.md +174 -47
- package/src/modules/bmb/workflows/edit-agent/instructions.md +397 -33
- package/src/modules/bmb/workflows/edit-agent/workflow.yaml +24 -8
- package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +1 -1
- package/src/modules/bmm/agents/analyst.agent.yaml +2 -2
- package/src/modules/bmm/agents/architect.agent.yaml +10 -2
- package/src/modules/bmm/agents/dev.agent.yaml +2 -2
- package/src/modules/bmm/agents/pm.agent.yaml +7 -3
- package/src/modules/bmm/agents/sm.agent.yaml +2 -2
- package/src/modules/bmm/agents/tea.agent.yaml +2 -2
- package/src/modules/bmm/agents/tech-writer.agent.yaml +15 -3
- package/src/modules/bmm/agents/ux-designer.agent.yaml +6 -2
- package/src/modules/bmm/docs/README.md +4 -0
- package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +5919 -0
- package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +2 -0
- package/src/modules/bmm/docs/quick-start.md +6 -0
- package/src/modules/bmm/docs/scale-adaptive-system.md +6 -0
- package/src/modules/bmm/docs/workflows-implementation.md +10 -0
- package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +4 -4
- package/src/modules/bmm/workflows/{2-plan-workflows → 3-solutioning}/create-epics-and-stories/workflow.yaml +5 -5
- package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +1 -1
- package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-dataflow/instructions.md +7 -8
- package/src/modules/bmm/workflows/diagrams/create-dataflow/workflow.yaml +27 -0
- package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-diagram/instructions.md +9 -10
- package/src/modules/bmm/workflows/diagrams/create-diagram/workflow.yaml +27 -0
- package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-flowchart/instructions.md +4 -5
- package/src/modules/bmm/workflows/diagrams/create-flowchart/workflow.yaml +27 -0
- package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-wireframe/instructions.md +3 -3
- package/src/modules/bmm/workflows/diagrams/create-wireframe/workflow.yaml +27 -0
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +18 -30
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +2 -14
- package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +2 -14
- package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +2 -14
- package/src/modules/cis/agents/presentation-master.agent.yaml +60 -0
- package/tools/cli/commands/agent-install.js +409 -0
- package/tools/cli/installers/lib/core/installer.js +119 -0
- package/tools/cli/installers/lib/ide/_base-ide.js +25 -0
- package/tools/cli/installers/lib/ide/antigravity.js +463 -0
- package/tools/cli/installers/lib/ide/claude-code.js +43 -0
- package/tools/cli/installers/lib/ide/codex.js +217 -32
- package/tools/cli/installers/lib/ide/cursor.js +48 -0
- package/tools/cli/installers/lib/ide/github-copilot.js +74 -0
- package/tools/cli/installers/lib/ide/manager.js +35 -0
- package/tools/cli/installers/lib/ide/opencode.js +45 -0
- package/tools/cli/installers/lib/ide/windsurf.js +47 -0
- package/tools/cli/lib/agent/compiler.js +390 -0
- package/tools/cli/lib/agent/installer.js +725 -0
- package/tools/cli/lib/agent/template-engine.js +152 -0
- package/docs/installers-bundlers/web-bundler-usage.md +0 -54
- package/src/modules/bmb/workflows/create-agent/README.md +0 -203
- package/src/modules/bmb/workflows/create-agent/agent-architecture.md +0 -415
- package/src/modules/bmb/workflows/create-agent/agent-command-patterns.md +0 -759
- package/src/modules/bmb/workflows/create-agent/agent-types.md +0 -292
- package/src/modules/bmb/workflows/create-agent/checklist.md +0 -62
- package/src/modules/bmb/workflows/create-agent/communication-styles.md +0 -202
- package/src/modules/bmb/workflows/edit-agent/checklist.md +0 -112
- package/src/modules/bmb/workflows/redoc/README.md +0 -87
- package/src/modules/bmb/workflows/redoc/checklist.md +0 -99
- package/src/modules/bmb/workflows/redoc/instructions.md +0 -265
- package/src/modules/bmb/workflows/redoc/workflow.yaml +0 -34
- package/src/modules/bmm/agents/frame-expert.agent.yaml +0 -42
- package/src/modules/bmm/workflows/frame-expert/create-dataflow/workflow.yaml +0 -24
- package/src/modules/bmm/workflows/frame-expert/create-diagram/workflow.yaml +0 -25
- package/src/modules/bmm/workflows/frame-expert/create-flowchart/workflow.yaml +0 -28
- package/src/modules/bmm/workflows/frame-expert/create-wireframe/workflow.yaml +0 -24
- package/src/modules/bmm/workflows/workflow-status/paths/game-design.yaml +0 -52
- /package/src/{modules/bmm/workflows/frame-expert/_shared → core/resources/excalidraw}/excalidraw-helpers.md +0 -0
- /package/src/{modules/bmm/workflows/frame-expert/_shared → core/resources/excalidraw}/validate-json-instructions.md +0 -0
- /package/src/modules/bmm/workflows/{2-plan-workflows → 3-solutioning}/create-epics-and-stories/epics-template.md +0 -0
- /package/src/modules/bmm/workflows/{2-plan-workflows → 3-solutioning}/create-epics-and-stories/instructions.md +0 -0
- /package/src/modules/bmm/workflows/{frame-expert → diagrams}/_shared/excalidraw-library.json +0 -0
- /package/src/modules/bmm/workflows/{frame-expert → diagrams}/_shared/excalidraw-templates.yaml +0 -0
- /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-dataflow/checklist.md +0 -0
- /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-diagram/checklist.md +0 -0
- /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-flowchart/checklist.md +0 -0
- /package/src/modules/bmm/workflows/{frame-expert → diagrams}/create-wireframe/checklist.md +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Custom Agent Installation
|
|
2
|
+
|
|
3
|
+
Install and personalize BMAD agents in your project.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# From your project directory with BMAD installed
|
|
9
|
+
npx bmad agent-install
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Or if you have bmad-cli installed globally:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
bmad agent-install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What It Does
|
|
19
|
+
|
|
20
|
+
1. **Discovers** available agent templates from your custom agents folder
|
|
21
|
+
2. **Prompts** you to personalize the agent (name, behavior, preferences)
|
|
22
|
+
3. **Compiles** the agent with your choices baked in
|
|
23
|
+
4. **Installs** to your project's `.bmad/custom/agents/` directory
|
|
24
|
+
5. **Creates** IDE commands for all your configured IDEs (Claude Code, Codex, Cursor, etc.)
|
|
25
|
+
6. **Saves** your configuration for automatic reinstallation during BMAD updates
|
|
26
|
+
|
|
27
|
+
## Options
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
bmad agent-install [options]
|
|
31
|
+
|
|
32
|
+
Options:
|
|
33
|
+
-p, --path <path> Direct path to specific agent YAML file or folder
|
|
34
|
+
-d, --defaults Use default values without prompting
|
|
35
|
+
-t, --target <path> Target installation directory
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Example Session
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
🔧 BMAD Agent Installer
|
|
42
|
+
|
|
43
|
+
Found BMAD at: /project/.bmad
|
|
44
|
+
Searching for agents in: /project/.bmad/custom/agents
|
|
45
|
+
|
|
46
|
+
Available Agents:
|
|
47
|
+
|
|
48
|
+
1. 📄 commit-poet (simple)
|
|
49
|
+
2. 📚 journal-keeper (expert)
|
|
50
|
+
|
|
51
|
+
Select agent to install (number): 1
|
|
52
|
+
|
|
53
|
+
Selected: commit-poet
|
|
54
|
+
|
|
55
|
+
📛 Agent Persona Name
|
|
56
|
+
|
|
57
|
+
Agent type: commit-poet
|
|
58
|
+
Default persona: Inkwell Von Comitizen
|
|
59
|
+
|
|
60
|
+
Custom name (or Enter for default): Fred
|
|
61
|
+
|
|
62
|
+
Persona: Fred
|
|
63
|
+
File: fred-commit-poet.md
|
|
64
|
+
|
|
65
|
+
📝 Agent Configuration
|
|
66
|
+
|
|
67
|
+
What's your preferred default commit message style?
|
|
68
|
+
* 1. Conventional (feat/fix/chore)
|
|
69
|
+
2. Narrative storytelling
|
|
70
|
+
3. Poetic haiku
|
|
71
|
+
4. Detailed explanation
|
|
72
|
+
Choice (default: 1): 1
|
|
73
|
+
|
|
74
|
+
How enthusiastic should the agent be?
|
|
75
|
+
1. Moderate - Professional with personality
|
|
76
|
+
* 2. High - Genuinely excited
|
|
77
|
+
3. EXTREME - Full theatrical drama
|
|
78
|
+
Choice (default: 2): 3
|
|
79
|
+
|
|
80
|
+
Include emojis in commit messages? [Y/n]: y
|
|
81
|
+
|
|
82
|
+
✨ Agent installed successfully!
|
|
83
|
+
Name: fred-commit-poet
|
|
84
|
+
Location: /project/.bmad/custom/agents/fred-commit-poet
|
|
85
|
+
Compiled: fred-commit-poet.md
|
|
86
|
+
|
|
87
|
+
✓ Source saved for reinstallation
|
|
88
|
+
✓ Added to agent-manifest.csv
|
|
89
|
+
✓ Created IDE commands:
|
|
90
|
+
claude-code: /bmad:custom:agents:fred-commit-poet
|
|
91
|
+
codex: /bmad-custom-agents-fred-commit-poet
|
|
92
|
+
github-copilot: bmad-agent-custom-fred-commit-poet
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Reinstallation
|
|
96
|
+
|
|
97
|
+
Custom agents are automatically reinstalled when you run `bmad init --quick`. Your personalization choices are preserved in `.bmad/_cfg/custom/agents/`.
|
|
98
|
+
|
|
99
|
+
## Installing Reference Agents
|
|
100
|
+
|
|
101
|
+
The BMAD source includes example agents you can install. **You must copy them to your project first.**
|
|
102
|
+
|
|
103
|
+
### Step 1: Copy the Agent Template
|
|
104
|
+
|
|
105
|
+
**For simple agents** (single file):
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# From your project root
|
|
109
|
+
cp node_modules/bmad-method/src/modules/bmb/reference/agents/stand-alone/commit-poet.agent.yaml \
|
|
110
|
+
.bmad/custom/agents/
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**For expert agents** (folder with sidecar files):
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Copy the entire folder
|
|
117
|
+
cp -r node_modules/bmad-method/src/modules/bmb/reference/agents/agent-with-memory/journal-keeper \
|
|
118
|
+
.bmad/custom/agents/
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Step 2: Install and Personalize
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
npx bmad agent-install
|
|
125
|
+
# or: bmad agent-install
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The installer will:
|
|
129
|
+
|
|
130
|
+
1. Find the copied template in `.bmad/custom/agents/`
|
|
131
|
+
2. Prompt for personalization (name, behavior, preferences)
|
|
132
|
+
3. Compile and install with your choices baked in
|
|
133
|
+
4. Create IDE commands for immediate use
|
|
134
|
+
|
|
135
|
+
### Available Reference Agents
|
|
136
|
+
|
|
137
|
+
**Simple (standalone file):**
|
|
138
|
+
|
|
139
|
+
- `commit-poet.agent.yaml` - Commit message artisan with style preferences
|
|
140
|
+
|
|
141
|
+
**Expert (folder with sidecar):**
|
|
142
|
+
|
|
143
|
+
- `journal-keeper/` - Personal journal companion with memory and pattern recognition
|
|
144
|
+
|
|
145
|
+
Find these in the BMAD source:
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
src/modules/bmb/reference/agents/
|
|
149
|
+
├── stand-alone/
|
|
150
|
+
│ └── commit-poet.agent.yaml
|
|
151
|
+
└── agent-with-memory/
|
|
152
|
+
└── journal-keeper/
|
|
153
|
+
├── journal-keeper.agent.yaml
|
|
154
|
+
└── journal-keeper-sidecar/
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Creating Your Own
|
|
158
|
+
|
|
159
|
+
Place your `.agent.yaml` files in `.bmad/custom/agents/`. Use the reference agents as templates.
|
|
160
|
+
|
|
161
|
+
Key sections in an agent YAML:
|
|
162
|
+
|
|
163
|
+
- `metadata`: name, title, icon, type
|
|
164
|
+
- `persona`: role, identity, communication_style, principles
|
|
165
|
+
- `prompts`: reusable prompt templates
|
|
166
|
+
- `menu`: numbered menu items
|
|
167
|
+
- `install_config`: personalization questions (optional, at end of file)
|
|
168
|
+
|
|
169
|
+
See the reference agents for complete examples with install_config templates and XML-style semantic tags.
|
|
@@ -13,5 +13,5 @@ Aside from stability and bug fixes found during the alpha period - the main focu
|
|
|
13
13
|
- knowledge base for BMM
|
|
14
14
|
- Module repository and submission process defined
|
|
15
15
|
- MCP Injections based on installation selection
|
|
16
|
-
- sub agent for
|
|
16
|
+
- sub agent for open-code and claude code optimization
|
|
17
17
|
- TDD Workflow Integration
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "bmad-method",
|
|
4
|
-
"version": "6.0.0-alpha.
|
|
4
|
+
"version": "6.0.0-alpha.11",
|
|
5
5
|
"description": "Breakthrough Method of Agile AI-driven Development",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"agile",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"bmad-method": "tools/bmad-npx-wrapper.js"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
+
"bmad:agent-install": "node tools/cli/bmad-cli.js agent-install",
|
|
27
28
|
"bmad:install": "node tools/cli/bmad-cli.js install",
|
|
28
29
|
"bmad:status": "node tools/cli/bmad-cli.js status",
|
|
29
30
|
"bundle": "node tools/cli/bundlers/bundle-web.js all",
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Core Excalidraw Resources
|
|
2
|
+
|
|
3
|
+
Universal knowledge for creating Excalidraw diagrams. All agents that create Excalidraw files should reference these resources.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Provides the **HOW** (universal knowledge) while agents provide the **WHAT** (domain-specific application).
|
|
8
|
+
|
|
9
|
+
**Core = "How to create Excalidraw elements"**
|
|
10
|
+
|
|
11
|
+
- How to group shapes with text labels
|
|
12
|
+
- How to calculate text width
|
|
13
|
+
- How to create arrows with proper bindings
|
|
14
|
+
- How to validate JSON syntax
|
|
15
|
+
- Base structure and primitives
|
|
16
|
+
|
|
17
|
+
**Agents = "What diagrams to create"**
|
|
18
|
+
|
|
19
|
+
- Frame Expert (BMM): Technical flowcharts, architecture diagrams, wireframes
|
|
20
|
+
- Presentation Master (CIS): Pitch decks, creative visuals, Rube Goldberg machines
|
|
21
|
+
- Tech Writer (BMM): Documentation diagrams, concept explanations
|
|
22
|
+
|
|
23
|
+
## Files in This Directory
|
|
24
|
+
|
|
25
|
+
### excalidraw-helpers.md
|
|
26
|
+
|
|
27
|
+
**Universal element creation patterns**
|
|
28
|
+
|
|
29
|
+
- Text width calculation
|
|
30
|
+
- Element grouping rules (shapes + labels)
|
|
31
|
+
- Grid alignment
|
|
32
|
+
- Arrow creation (straight, elbow)
|
|
33
|
+
- Theme application
|
|
34
|
+
- Validation checklist
|
|
35
|
+
- Optimization rules
|
|
36
|
+
|
|
37
|
+
**Agents reference this to:**
|
|
38
|
+
|
|
39
|
+
- Create properly grouped shapes
|
|
40
|
+
- Calculate text dimensions
|
|
41
|
+
- Connect elements with arrows
|
|
42
|
+
- Ensure valid structure
|
|
43
|
+
|
|
44
|
+
### validate-json-instructions.md
|
|
45
|
+
|
|
46
|
+
**Universal JSON validation process**
|
|
47
|
+
|
|
48
|
+
- How to validate Excalidraw JSON
|
|
49
|
+
- Common errors and fixes
|
|
50
|
+
- Workflow integration
|
|
51
|
+
- Error recovery
|
|
52
|
+
|
|
53
|
+
**Agents reference this to:**
|
|
54
|
+
|
|
55
|
+
- Validate files after creation
|
|
56
|
+
- Fix syntax errors
|
|
57
|
+
- Ensure files can be opened in Excalidraw
|
|
58
|
+
|
|
59
|
+
### library-loader.md (Future)
|
|
60
|
+
|
|
61
|
+
**How to load external .excalidrawlib files**
|
|
62
|
+
|
|
63
|
+
- Programmatic library loading
|
|
64
|
+
- Community library integration
|
|
65
|
+
- Custom library management
|
|
66
|
+
|
|
67
|
+
**Status:** To be developed when implementing external library support.
|
|
68
|
+
|
|
69
|
+
## How Agents Use These Resources
|
|
70
|
+
|
|
71
|
+
### Example: Frame Expert (Technical Diagrams)
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
# workflows/diagrams/create-flowchart/workflow.yaml
|
|
75
|
+
helpers: '{project-root}/{bmad_folder}/core/resources/excalidraw/excalidraw-helpers.md'
|
|
76
|
+
json_validation: '{project-root}/{bmad_folder}/core/resources/excalidraw/validate-json-instructions.md'
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Domain-specific additions:**
|
|
80
|
+
|
|
81
|
+
```yaml
|
|
82
|
+
# workflows/diagrams/_shared/flowchart-templates.yaml
|
|
83
|
+
flowchart:
|
|
84
|
+
start_node:
|
|
85
|
+
type: ellipse
|
|
86
|
+
width: 120
|
|
87
|
+
height: 60
|
|
88
|
+
process_box:
|
|
89
|
+
type: rectangle
|
|
90
|
+
width: 160
|
|
91
|
+
height: 80
|
|
92
|
+
decision_diamond:
|
|
93
|
+
type: diamond
|
|
94
|
+
width: 140
|
|
95
|
+
height: 100
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Example: Presentation Master (Creative Visuals)
|
|
99
|
+
|
|
100
|
+
```yaml
|
|
101
|
+
# workflows/create-visual-metaphor/workflow.yaml
|
|
102
|
+
helpers: '{project-root}/{bmad_folder}/core/resources/excalidraw/excalidraw-helpers.md'
|
|
103
|
+
json_validation: '{project-root}/{bmad_folder}/core/resources/excalidraw/validate-json-instructions.md'
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Domain-specific additions:**
|
|
107
|
+
|
|
108
|
+
```yaml
|
|
109
|
+
# workflows/_shared/creative-templates.yaml
|
|
110
|
+
rube_goldberg:
|
|
111
|
+
whimsical_connector:
|
|
112
|
+
type: arrow
|
|
113
|
+
strokeStyle: dashed
|
|
114
|
+
roughness: 2
|
|
115
|
+
playful_box:
|
|
116
|
+
type: rectangle
|
|
117
|
+
roundness: 12
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## What Doesn't Belong in Core
|
|
121
|
+
|
|
122
|
+
**Domain-Specific Elements:**
|
|
123
|
+
|
|
124
|
+
- Flowchart-specific templates (belongs in Frame Expert)
|
|
125
|
+
- Pitch deck layouts (belongs in Presentation Master)
|
|
126
|
+
- Documentation-specific styles (belongs in Tech Writer)
|
|
127
|
+
|
|
128
|
+
**Agent Workflows:**
|
|
129
|
+
|
|
130
|
+
- How to create a flowchart (Frame Expert workflow)
|
|
131
|
+
- How to create a pitch deck (Presentation Master workflow)
|
|
132
|
+
- Step-by-step diagram creation (agent-specific)
|
|
133
|
+
|
|
134
|
+
**Theming:**
|
|
135
|
+
|
|
136
|
+
- Currently in agent workflows
|
|
137
|
+
- **Future:** Will be refactored to core as user-configurable themes
|
|
138
|
+
|
|
139
|
+
## Architecture Principle
|
|
140
|
+
|
|
141
|
+
**Single Source of Truth:**
|
|
142
|
+
|
|
143
|
+
- Core holds universal knowledge
|
|
144
|
+
- Agents reference core, don't duplicate
|
|
145
|
+
- Updates to core benefit all agents
|
|
146
|
+
- Agents specialize with domain knowledge
|
|
147
|
+
|
|
148
|
+
**DRY (Don't Repeat Yourself):**
|
|
149
|
+
|
|
150
|
+
- Element creation logic: ONCE in core
|
|
151
|
+
- Text width calculation: ONCE in core
|
|
152
|
+
- Validation process: ONCE in core
|
|
153
|
+
- Arrow binding patterns: ONCE in core
|
|
154
|
+
|
|
155
|
+
## Future Enhancements
|
|
156
|
+
|
|
157
|
+
1. **External Library Loader** - Load .excalidrawlib files from libraries.excalidraw.com
|
|
158
|
+
2. **Theme Management** - User-configurable color themes saved in core
|
|
159
|
+
3. **Component Library** - Shared reusable components across agents
|
|
160
|
+
4. **Layout Algorithms** - Auto-layout helpers for positioning elements
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# External Library Loader
|
|
2
|
+
|
|
3
|
+
**Status:** Placeholder for future implementation
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Load external .excalidrawlib files from https://libraries.excalidraw.com or custom sources.
|
|
8
|
+
|
|
9
|
+
## Planned Capabilities
|
|
10
|
+
|
|
11
|
+
- Load libraries by URL
|
|
12
|
+
- Load libraries from local files
|
|
13
|
+
- Merge multiple libraries
|
|
14
|
+
- Filter library components
|
|
15
|
+
- Cache loaded libraries
|
|
16
|
+
|
|
17
|
+
## API Reference
|
|
18
|
+
|
|
19
|
+
Will document how to use:
|
|
20
|
+
|
|
21
|
+
- `importLibrary(url)` - Load library from URL
|
|
22
|
+
- `loadSceneOrLibraryFromBlob()` - Load from file
|
|
23
|
+
- `mergeLibraryItems()` - Combine libraries
|
|
24
|
+
|
|
25
|
+
## Usage Example
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
# Future workflow.yaml structure
|
|
29
|
+
libraries:
|
|
30
|
+
- url: 'https://libraries.excalidraw.com/libraries/...'
|
|
31
|
+
filter: ['aws', 'cloud']
|
|
32
|
+
- path: '{project-root}/_data/custom-library.excalidrawlib'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Implementation Notes
|
|
36
|
+
|
|
37
|
+
This will be developed when agents need to leverage the extensive library ecosystem available at https://libraries.excalidraw.com.
|
|
38
|
+
|
|
39
|
+
Hundreds of pre-built component libraries exist for:
|
|
40
|
+
|
|
41
|
+
- AWS/Cloud icons
|
|
42
|
+
- UI/UX components
|
|
43
|
+
- Business diagrams
|
|
44
|
+
- Mind map shapes
|
|
45
|
+
- Floor plans
|
|
46
|
+
- And much more...
|
|
47
|
+
|
|
48
|
+
## User Configuration
|
|
49
|
+
|
|
50
|
+
Future: Users will be able to configure favorite libraries in their BMAD config for automatic loading.
|