Excalidraw Diagram Generator
A skill for generating Excalidraw-format diagrams from natural language descriptions. This skill helps create visual representations of processes, systems, relationships, and ideas without manual drawing.
- Leverage native parallel subagent dispatch and 200k+ context windows where available.
Activation Conditions
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
Use this skill when users request:
- "Create a diagram showing..."
- "Make a flowchart for..."
- "Visualize the process of..."
- "Draw the system architecture of..."
- "Generate a mind map about..."
- "Create an Excalidraw file for..."
- "Show the relationship between..."
- "Diagram the workflow of..."
Supported diagram types:
- 📊 Flowcharts: Sequential processes, workflows, decision trees
- 🔗 Relationship Diagrams: Entity relationships, system components, dependencies
- 🧠 Mind Maps: Concept hierarchies, brainstorming results, topic organization
- 🏗️ Architecture Diagrams: System design, module interactions, data flow
- 📈 Data Flow Diagrams (DFD): Data flow visualization, data transformation processes
- 🏊 Business Flow (Swimlane): Cross-functional workflows, actor-based process flows
- 📦 Class Diagrams: Object-oriented design, class structures and relationships
- 🔄 Sequence Diagrams: Object interactions over time, message flows
- 🗃️ ER Diagrams: Database entity relationships, data models
Prerequisites
- Clear description of what should be visualized
- Identification of key entities, steps, or concepts
- Understanding of relationships or flow between elements
Step-by-Step Workflow
Step 1: Understand the Request
Analyze the user's description to determine:
- Diagram type (flowchart, relationship, mind map, architecture)
- Key elements (entities, steps, concepts)
- Relationships (flow, connections, hierarchy)
- Complexity (number of elements)
Step 2: Choose the Appropriate Diagram Type
| User Intent |
Diagram Type |
Example Keywords |
| Process flow, steps, procedures |
Flowchart |
"workflow", "process", "steps", "procedure" |
| Connections, dependencies, associations |
Relationship Diagram |
"relationship", "connections", "dependencies", "structure" |
| Concept hierarchy, brainstorming |
Mind Map |
"mind map", "concepts", "ideas", "breakdown" |
| System design, components |
Architecture Diagram |
"architecture", "system", "components", "modules" |
| Data flow, transformation processes |
Data Flow Diagram (DFD) |
"data flow", "data processing", "data transformation" |
| Cross-functional processes, actor responsibilities |
Business Flow (Swimlane) |
"business process", "swimlane", "actors", "responsibilities" |
| Object-oriented design, class structures |
Class Diagram |
"class", "inheritance", "OOP", "object model" |
| Interaction sequences, message flows |
Sequence Diagram |
"sequence", "interaction", "messages", "timeline" |
| Database design, entity relationships |
ER Diagram |
"database", "entity", "relationship", "data model" |
Step 3: Extract Structured Information
For Flowcharts:
- List of sequential steps
- Decision points (if any)
- Start and end points
For Relationship Diagrams:
- Entities/nodes (name + optional description)
- Relationships between entities (from → to, with label)
For Mind Maps:
- Central topic
- Main branches (3-6 recommended)
- Sub-topics for each branch (optional)
For Data Flow Diagrams (DFD):
- Data sources and destinations (external entities)
- Processes (data transformations)
- Data stores (databases, files)
- Data flows (arrows showing data movement from left-to-right or from top-left to bottom-right)
- Important: Do not represent process order, only data flow
For Business Flow (Swimlane):
- Actors/roles (departments, systems, people) - displayed as header columns
- Process lanes (vertical lanes under each actor)
- Process boxes (activities within each lane)
- Flow arrows (connecting process boxes, including cross-lane handoffs)
For Class Diagrams:
- Classes with names
- Attributes with visibility (+, -, #)
- Methods with visibility and parameters
- Relationships: inheritance (solid line + white triangle), implementation (dashed line + white triangle), association (solid line), dependency (dashed line), aggregation (solid line + white diamond), composition (solid line + filled diamond)
- Multiplicity notations (1, 0..1, 1..*, *)
For Sequence Diagrams:
- Objects/actors (arranged horizontally at top)
- Lifelines (vertical lines from each object)
- Messages (horizontal arrows between lifelines)
- Synchronous messages (solid arrow), asynchronous messages (dashed arrow)
- Return values (dashed arrows)
- Activation boxes (rectangles on lifelines during execution)
- Time flows from top to bottom
For ER Diagrams:
- Entities (rectangles with entity names)
- Attributes (listed inside entities)
- Primary keys (underlined or marked with PK)
- Foreign keys (marked with FK)
- Relationships (lines connecting entities)
- Cardinality: 1:1 (one-to-one), 1:N (one-to-many), N:M (many-to-many)
- Junction/associative entities for many-to-many relationships (dashed rectangles)
Step 4: Generate the Excalidraw JSON
Create the .excalidraw file with appropriate elements:
Available element types:
rectangle: Boxes for entities, steps, concepts
ellipse: Alternative shapes for emphasis
diamond: Decision points
arrow: Directional connections
text: Labels and annotations
Key properties to set:
- Position:
x, y coordinates
- Size:
width, height
- Style:
strokeColor, backgroundColor, fillStyle
- Font:
fontFamily: 5 (Excalifont - required for all text elements)
- Text: Embedded text for labels
- Connections:
points array for arrows
Important: All text elements must use fontFamily: 5 (Excalifont) for consistent visual appearance.
Step 5: Format the Output
Structure the complete Excalidraw file:
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [
// Array of diagram elements
],
"appState": {
"viewBackgroundColor": "#ffffff",
"gridSize": 20
},
"files": {}
}
Step 6: Save and Provide Instructions
- Save as
<descriptive-name>.excalidraw
- Inform user how to open:
Best Practices
Element Count Guidelines
| Diagram Type |
Recommended Count |
Maximum |
| Flowchart steps |
3-10 |
15 |
| Relationship entities |
3-8 |
12 |
| Mind map branches |
4-6 |
8 |
| Mind map sub-topics per branch |
2-4 |
6 |
Layout Tips
- Start positions: Center important elements, use consistent spacing
- Spacing:
- Horizontal gap: 200-300px between elements
- Vertical gap: 100-150px between rows
- Colors: Use consistent color scheme
- Primary elements: Light blue (
#a5d8ff)
- Secondary elements: Light green (
#b2f2bb)
- Important/Central: Yellow (
#ffd43b)
- Alerts/Warnings: Light red (
#ffc9c9)
- Text sizing: 16-24px for readability
- Font: Always use
fontFamily: 5 (Excalifont) for all text elements
- Arrow style: Use straight arrows for simple flows, curved for complex relationships
Complexity Management
If user request has too many elements:
- Suggest breaking into multiple diagrams
- Focus on main elements first
- Offer to create detailed sub-diagrams
Example response:
"Your request includes 15 components. For clarity, I recommend:
1. High-level architecture diagram (6 main components)
2. Detailed diagram for each subsystem
Would you like me to start with the high-level view?"
Cross-Client Portability
This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
workflow in project instructions when folder discovery is unavailable.
- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
- Codex: install or sync the folder into
$CODEX_HOME/skills/excalidraw-diagram-generator and restart Codex after major changes.
MCP Availability And Fallback
Preferred MCP Server: None required
- Fallback prompt: "Use the Excalidraw Diagram Generator skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding."
- Do not claim an MCP operation was used when the active host does not expose it.
- Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
Anti-Patterns
- Starting from a generic template without adapting it: The output may look polished but still miss the real audience or medium.
- Ignoring final render or export review: Layout bugs often appear only after the asset is opened in its destination tool.
- Fixing content and presentation in one pass: It becomes hard to tell whether a problem is structural or visual.
Verification Protocol
Before claiming "skill applied successfully":
- Pass/fail: The Excalidraw Diagram Generator implementation names the target runtime, framework version, and affected files.
- Pass/fail: Build, lint, test, or equivalent local validation is run for the changed surface.
- Pass/fail: Edge cases for errors, dependency drift, and environment differences are addressed or explicitly out of scope.
- Pressure-test scenario: Apply the workflow to a change that passes happy-path tests but fails one boundary condition.
- Success metric: Zero untested success claims; every implementation claim maps to a command or artifact.
Example Prompts and Responses
Example 1: Simple Flowchart
User: "Create a flowchart for user registration"
Agent generates:
- Extract steps: "Enter email" → "Verify email" → "Set password" → "Complete"
- Create flowchart with 4 rectangles + 3 arrows
- Save as
user-registration-flow.excalidraw
Example 2: Relationship Diagram
User: "Diagram the relationship between User, Post, and Comment entities"
Agent generates:
- Entities: User, Post, Comment
- Relationships: User → Post ("creates"), User → Comment ("writes"), Post → Comment ("contains")
- Save as
user-content-relationships.excalidraw
Example 3: Mind Map
User: "Mind map about machine learning concepts"
Agent generates:
- Center: "Machine Learning"
- Branches: Supervised Learning, Unsupervised Learning, Reinforcement Learning, Deep Learning
- Sub-topics under each branch
- Save as
machine-learning-mindmap.excalidraw
Troubleshooting
| Issue |
Solution |
| Elements overlap |
Increase spacing between coordinates |
| Text doesn't fit in boxes |
Increase box width or reduce font size |
| Too many elements |
Break into multiple diagrams |
| Unclear layout |
Use grid layout (rows/columns) or radial layout (mind maps) |
| Colors inconsistent |
Define color palette upfront based on element types |
Advanced Techniques
Grid Layout (for Relationship Diagrams)
const columns = Math.ceil(Math.sqrt(entityCount));
const x = startX + (index % columns) * horizontalGap;
const y = startY + Math.floor(index / columns) * verticalGap;
Radial Layout (for Mind Maps)
const angle = (2 * Math.PI * index) / branchCount;
const x = centerX + radius * Math.cos(angle);
const y = centerY + radius * Math.sin(angle);
Auto-generated IDs
Use timestamp + random string for unique IDs:
const id = Date.now().toString(36) + Math.random().toString(36).substr(2);
Output Format
Always provide:
- ✅ Complete
.excalidraw JSON file
- 📊 Summary of what was created
- 📝 Element count
- 💡 Instructions for opening/editing
Example summary:
Created: user-workflow.excalidraw
Type: Flowchart
Elements: 7 rectangles, 6 arrows, 1 title text
Total: 14 elements
To view:
1. Visit https://excalidraw.com
2. Drag and drop user-workflow.excalidraw
3. Or use File → Open in Excalidraw VS Code extension
Validation Checklist
Before delivering the diagram:
Icon Libraries (Optional Enhancement)
For specialized diagrams (e.g., AWS/GCP/Azure architecture diagrams), you can use pre-made icon libraries from Excalidraw. This provides professional, standardized icons instead of basic shapes.
When User Requests Icons
If user asks for AWS/cloud architecture diagrams or mentions wanting to use specific icons:
Check if library exists: Look for libraries/<library-name>/reference.md
If library exists: Proceed to use icons (see AI Assistant Workflow below)
If library does NOT exist: Respond with setup instructions:
To use [AWS/GCP/Azure/etc.] architecture icons, please follow these steps:
1. Visit https://libraries.excalidraw.com/
2. Search for "[AWS Architecture Icons/etc.]" and download the .excalidrawlib file
3. Create directory: skills/excalidraw-diagram-generator/libraries/[icon-set-name]/
4. Place the downloaded file in that directory
5. Run the splitter script:
python skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py skills/excalidraw-diagram-generator/libraries/[icon-set-name]/
This will split the library into individual icon files for efficient use.
After setup is complete, I can create your diagram using the actual AWS/cloud icons.
Alternatively, I can create the diagram now using simple shapes (rectangles, ellipses)
which you can later replace with icons manually in Excalidraw.
User Setup Instructions (Detailed)
Step 1: Create Library Directory
mkdir -p skills/excalidraw-diagram-generator/libraries/aws-architecture-icons
Step 2: Download Library
- Visit: https://libraries.excalidraw.com/
- Search for your desired icon set (e.g., "AWS Architecture Icons")
- Click download to get the
.excalidrawlib file
- Example categories (availability varies; confirm on the site):
- Cloud service icons
- UI/Material icons
- Flowchart symbols
Step 3: Place Library File
- Rename the downloaded file to match the directory name (e.g.,
aws-architecture-icons.excalidrawlib)
- Move it to the directory created in Step 1
Step 4: Run Splitter Script
python skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py skills/excalidraw-diagram-generator/libraries/aws-architecture-icons/
Step 5: Verify Setup
After running the script, verify the following structure exists:
skills/excalidraw-diagram-generator/libraries/aws-architecture-icons/
aws-architecture-icons.excalidrawlib (original)
reference.md (generated - icon lookup table)
icons/ (generated - individual icon files)
API-Gateway.json
CloudFront.json
EC2.json
Lambda.json
RDS.json
S3.json
...
AI Assistant Workflow
When icon libraries are available in libraries/:
RECOMMENDED APPROACH: Use Python Scripts (Efficient & Reliable)
The repository includes Python scripts that handle icon integration automatically:
Create base diagram structure:
- Create
.excalidraw file with basic layout (title, boxes, regions)
- This establishes the canvas and overall structure
Add icons using Python script:
python skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py \
<diagram-path> <icon-name> <x> <y> [--label "Text"] [--library-path PATH]
- Edit via
.excalidraw.edit is enabled by default to avoid overwrite issues; pass --no-use-edit-suffix to disable.
Examples:
# Add EC2 icon at position (400, 300) with label
python scripts/add-icon-to-diagram.py diagram.excalidraw EC2 400 300 --label "Web Server"
# Add VPC icon at position (200, 150)
python scripts/add-icon-to-diagram.py diagram.excalidraw VPC 200 150
# Add icon from different library
python scripts/add-icon-to-diagram.py diagram.excalidraw Compute-Engine 500 200 \
--library-path libraries/gcp-icons --label "API Server"
Add connecting arrows:
python skills/excalidraw-diagram-generator/scripts/add-arrow.py \
<diagram-path> <from-x> <from-y> <to-x> <to-y> [--label "Text"] [--style solid|dashed|dotted] [--color HEX]
- Edit via
.excalidraw.edit is enabled by default to avoid overwrite issues; pass --no-use-edit-suffix to disable.
Examples:
# Simple arrow from (300, 250) to (500, 300)
python scripts/add-arrow.py diagram.excalidraw 300 250 500 300
# Arrow with label
python scripts/add-arrow.py diagram.excalidraw 300 250 500 300 --label "HTTPS"
# Dashed arrow with custom color
python scripts/add-arrow.py diagram.excalidraw 400 350 600 400 --style dashed --color "#7950f2"
Workflow summary:
# Step 1: Create base diagram with title and structure
# (Create .excalidraw file with initial elements)
# Step 2: Add icons with labels
python scripts/add-icon-to-diagram.py my-diagram.excalidraw "Internet-gateway" 200 150 --label "Internet Gateway"
python scripts/add-icon-to-diagram.py my-diagram.excalidraw VPC 250 250
python scripts/add-icon-to-diagram.py my-diagram.excalidraw ELB 350 300 --label "Load Balancer"
python scripts/add-icon-to-diagram.py my-diagram.excalidraw EC2 450 350 --label "EC2 Instance"
python scripts/add-icon-to-diagram.py my-diagram.excalidraw RDS 550 400 --label "Database"
# Step 3: Add connecting arrows
python scripts/add-arrow.py my-diagram.excalidraw 250 200 300 250 # Internet → VPC
python scripts/add-arrow.py my-diagram.excalidraw 300 300 400 300 # VPC → ELB
python scripts/add-arrow.py my-diagram.excalidraw 400 330 500 350 # ELB → EC2
python scripts/add-arrow.py my-diagram.excalidraw 500 380 600 400 # EC2 → RDS
Benefits of Python Script Approach:
- ✅ No token consumption: Icon JSON data (200-1000 lines each) never enters AI context
- ✅ Accurate transformations: Coordinate calculations handled deterministically
- ✅ ID management: Automatic UUID generation prevents conflicts
- ✅ Reliable: No risk of coordinate miscalculation or ID collision
- ✅ Fast: Direct file manipulation, no parsing overhead
- ✅ Reusable: Works with any Excalidraw library you provide
ALTERNATIVE: Manual Icon Integration (Not Recommended)
Only use this if Python scripts are unavailable:
Check for libraries:
List directory: skills/excalidraw-diagram-generator/libraries/
Look for subdirectories containing reference.md files
Read reference.md:
Open: libraries/<library-name>/reference.md
This is lightweight (typically <300 lines) and lists all available icons
Find relevant icons:
Search the reference.md table for icon names matching diagram needs
Example: For AWS diagram with EC2, S3, Lambda → Find "EC2", "S3", "Lambda" in table
Load specific icon data (WARNING: Large files):
Read ONLY the needed icon files:
- libraries/aws-architecture-icons/icons/EC2.json (200-300 lines)
- libraries/aws-architecture-icons/icons/S3.json (200-300 lines)
- libraries/aws-architecture-icons/icons/Lambda.json (200-300 lines)
Note: Each icon file is 200-1000 lines - this consumes significant tokens
Extract and transform elements:
Each icon JSON contains an "elements" array
Calculate bounding box (min_x, min_y, max_x, max_y)
Apply offset to all x/y coordinates
Generate new unique IDs for all elements
Update groupIds references
Copy transformed elements into your diagram
Position icons and add connections:
Adjust x/y coordinates to position icons correctly in the diagram
Update IDs to ensure uniqueness across diagram
Add connecting arrows and labels as needed
Manual Integration Challenges:
- ⚠️ High token consumption (200-1000 lines per icon × number of icons)
- ⚠️ Complex coordinate transformation calculations
- ⚠️ Risk of ID collision if not handled carefully
- ⚠️ Time-consuming for diagrams with many icons
Example: Creating AWS Diagram with Icons
Request: "Create an AWS architecture diagram with Internet Gateway, VPC, ELB, EC2, and RDS"
Recommended Workflow (using Python scripts):
Request: "Create an AWS architecture diagram with Internet Gateway, VPC, ELB, EC2, and RDS"
Recommended Workflow (using Python scripts):
# Step 1: Create base diagram file with title
# Create my-aws-diagram.excalidraw with basic structure (title, etc.)
# Step 2: Check icon availability
# Read: libraries/aws-architecture-icons/reference.md
# Confirm icons exist: Internet-gateway, VPC, ELB, EC2, RDS
# Step 3: Add icons with Python script
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw "Internet-gateway" 150 100 --label "Internet Gateway"
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw VPC 200 200
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw ELB 350 250 --label "Load Balancer"
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw EC2 500 300 --label "Web Server"
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw RDS 650 350 --label "Database"
# Step 4: Add connecting arrows
python scripts/add-arrow.py my-aws-diagram.excalidraw 200 150 250 200 # Internet → VPC
python scripts/add-arrow.py my-aws-diagram.excalidraw 265 230 350 250 # VPC → ELB
python scripts/add-arrow.py my-aws-diagram.excalidraw 415 280 500 300 # ELB → EC2
python scripts/add-arrow.py my-aws-diagram.excalidraw 565 330 650 350 --label "SQL" --style dashed
# Result: Complete diagram with professional AWS icons, labels, and connections
Benefits:
- No manual coordinate calculation
- No token consumption for icon data
- Deterministic, reliable results
- Easy to iterate and adjust positions
Alternative Workflow (manual, if scripts unavailable):
- Check:
libraries/aws-architecture-icons/reference.md exists → Yes
- Read reference.md → Find entries for Internet-gateway, VPC, ELB, EC2, RDS
- Load:
icons/Internet-gateway.json (298 lines)
icons/VPC.json (550 lines)
icons/ELB.json (363 lines)
icons/EC2.json (231 lines)
icons/RDS.json (similar size)
Total: ~2000+ lines of JSON to process
- Extract elements from each JSON
- Calculate bounding boxes and offsets for each icon
- Transform all coordinates (x, y) for positioning
- Generate unique IDs for all elements
- Add arrows showing data flow
- Add text labels
- Generate final
.excalidraw file
Challenges with manual approach:
- High token consumption (~2000-5000 lines)
- Complex coordinate math
- Risk of ID conflicts
Supported Icon Libraries (Examples — verify availability)
- This workflow works with any valid
.excalidrawlib file you provide.
- Examples of library categories you may find on https://libraries.excalidraw.com/:
- Cloud service icons
- Kubernetes / infrastructure icons
- UI / Material icons
- Flowchart / diagram symbols
- Network diagram icons
- Availability and naming can change; verify exact library names on the site before use.
Fallback: No Icons Available
If no icon libraries are set up:
- Create diagrams using basic shapes (rectangles, ellipses, arrows)
- Use color coding and text labels to distinguish components
- Inform user they can add icons later or set up libraries for future diagrams
- The diagram will still be functional and clear, just less visually polished
References
See bundled references for:
references/excalidraw-schema.md - Complete Excalidraw JSON schema
references/element-types.md - Detailed element type specifications
templates/flowchart-template.json - Basic flowchart starter
templates/relationship-template.json - Relationship diagram starter
templates/mindmap-template.json - Mind map starter
scripts/split-excalidraw-library.py - Tool to split .excalidrawlib files
scripts/README.md - Documentation for library tools
scripts/.gitignore - Prevents local Python artifacts from being committed
Limitations
- Complex curves are simplified to straight/basic curved lines
- Hand-drawn roughness is set to default (1)
- No embedded images support in auto-generation
- Maximum recommended elements: 20 per diagram
- No automatic collision detection (use spacing guidelines)
Future Enhancements
Potential improvements:
- Auto-layout optimization algorithms
- Import from Mermaid/PlantUML syntax
- Template library expansion
- Interactive editing after generation
Related Skills
- frontend-design: Use it when the workflow also needs UI composition and front-end design direction.
- web-design-reviewer: Use it when the workflow also needs browser-based UI review and responsive QA.
- stitch-design: Use it when the workflow also needs turning interface designs into implementation-ready assets.
1---2name: excalidraw-diagram-generator3description: Generate .excalidraw diagrams from natural language. Use when creating flowcharts, mind maps, system architecture diagrams, sequence diagrams, ER diagrams, network diagrams, or any visual process visualization.4---5# Excalidraw Diagram Generator
6
7A skill for generating Excalidraw-format diagrams from natural language descriptions. This skill helps create visual representations of processes, systems, relationships, and ideas without manual drawing.
8
9- Leverage native parallel subagent dispatch and 200k+ context windows where available.
10
11
12
13## Activation Conditions
14
15Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
16
17Use this skill when users request:
18
19- "Create a diagram showing..."
20- "Make a flowchart for..."
21- "Visualize the process of..."
22- "Draw the system architecture of..."
23- "Generate a mind map about..."
24- "Create an Excalidraw file for..."
25- "Show the relationship between..."
26- "Diagram the workflow of..."
27
28**Supported diagram types:**
29- 📊 **Flowcharts**: Sequential processes, workflows, decision trees
30- 🔗 **Relationship Diagrams**: Entity relationships, system components, dependencies
31- 🧠 **Mind Maps**: Concept hierarchies, brainstorming results, topic organization
32- 🏗️ **Architecture Diagrams**: System design, module interactions, data flow
33- 📈 **Data Flow Diagrams (DFD)**: Data flow visualization, data transformation processes
34- 🏊 **Business Flow (Swimlane)**: Cross-functional workflows, actor-based process flows
35- 📦 **Class Diagrams**: Object-oriented design, class structures and relationships
36- 🔄 **Sequence Diagrams**: Object interactions over time, message flows
37- 🗃️ **ER Diagrams**: Database entity relationships, data models
38
39## Prerequisites
40
41- Clear description of what should be visualized
42- Identification of key entities, steps, or concepts
43- Understanding of relationships or flow between elements
44
45## Step-by-Step Workflow
46
47### Step 1: Understand the Request
48
49Analyze the user's description to determine:
501. **Diagram type** (flowchart, relationship, mind map, architecture)
512. **Key elements** (entities, steps, concepts)
523. **Relationships** (flow, connections, hierarchy)
534. **Complexity** (number of elements)
54
55### Step 2: Choose the Appropriate Diagram Type
56
57| User Intent | Diagram Type | Example Keywords |
58|-------------|--------------|------------------|
59| Process flow, steps, procedures | **Flowchart** | "workflow", "process", "steps", "procedure" |
60| Connections, dependencies, associations | **Relationship Diagram** | "relationship", "connections", "dependencies", "structure" |
61| Concept hierarchy, brainstorming | **Mind Map** | "mind map", "concepts", "ideas", "breakdown" |
62| System design, components | **Architecture Diagram** | "architecture", "system", "components", "modules" |
63| Data flow, transformation processes | **Data Flow Diagram (DFD)** | "data flow", "data processing", "data transformation" |
64| Cross-functional processes, actor responsibilities | **Business Flow (Swimlane)** | "business process", "swimlane", "actors", "responsibilities" |
65| Object-oriented design, class structures | **Class Diagram** | "class", "inheritance", "OOP", "object model" |
66| Interaction sequences, message flows | **Sequence Diagram** | "sequence", "interaction", "messages", "timeline" |
67| Database design, entity relationships | **ER Diagram** | "database", "entity", "relationship", "data model" |
68
69### Step 3: Extract Structured Information
70
71**For Flowcharts:**
72- List of sequential steps
73- Decision points (if any)
74- Start and end points
75
76**For Relationship Diagrams:**
77- Entities/nodes (name + optional description)
78- Relationships between entities (from → to, with label)
79
80**For Mind Maps:**
81- Central topic
82- Main branches (3-6 recommended)
83- Sub-topics for each branch (optional)
84
85**For Data Flow Diagrams (DFD):**
86- Data sources and destinations (external entities)
87- Processes (data transformations)
88- Data stores (databases, files)
89- Data flows (arrows showing data movement from left-to-right or from top-left to bottom-right)
90- **Important**: Do not represent process order, only data flow
91
92**For Business Flow (Swimlane):**
93- Actors/roles (departments, systems, people) - displayed as header columns
94- Process lanes (vertical lanes under each actor)
95- Process boxes (activities within each lane)
96- Flow arrows (connecting process boxes, including cross-lane handoffs)
97
98**For Class Diagrams:**
99- Classes with names
100- Attributes with visibility (+, -, #)
101- Methods with visibility and parameters
102- Relationships: inheritance (solid line + white triangle), implementation (dashed line + white triangle), association (solid line), dependency (dashed line), aggregation (solid line + white diamond), composition (solid line + filled diamond)
103- Multiplicity notations (1, 0..1, 1..*, *)
104
105**For Sequence Diagrams:**
106- Objects/actors (arranged horizontally at top)
107- Lifelines (vertical lines from each object)
108- Messages (horizontal arrows between lifelines)
109- Synchronous messages (solid arrow), asynchronous messages (dashed arrow)
110- Return values (dashed arrows)
111- Activation boxes (rectangles on lifelines during execution)
112- Time flows from top to bottom
113
114**For ER Diagrams:**
115- Entities (rectangles with entity names)
116- Attributes (listed inside entities)
117- Primary keys (underlined or marked with PK)
118- Foreign keys (marked with FK)
119- Relationships (lines connecting entities)
120- Cardinality: 1:1 (one-to-one), 1:N (one-to-many), N:M (many-to-many)
121- Junction/associative entities for many-to-many relationships (dashed rectangles)
122
123### Step 4: Generate the Excalidraw JSON
124
125Create the `.excalidraw` file with appropriate elements:
126
127**Available element types:**
128- `rectangle`: Boxes for entities, steps, concepts
129- `ellipse`: Alternative shapes for emphasis
130- `diamond`: Decision points
131- `arrow`: Directional connections
132- `text`: Labels and annotations
133
134**Key properties to set:**
135- **Position**: `x`, `y` coordinates
136- **Size**: `width`, `height`
137- **Style**: `strokeColor`, `backgroundColor`, `fillStyle`
138- **Font**: `fontFamily: 5` (Excalifont - **required for all text elements**)
139- **Text**: Embedded text for labels
140- **Connections**: `points` array for arrows
141
142**Important**: All text elements must use `fontFamily: 5` (Excalifont) for consistent visual appearance.
143
144### Step 5: Format the Output
145
146Structure the complete Excalidraw file:
147
148```json
149{
150 "type": "excalidraw",
151 "version": 2,
152 "source": "https://excalidraw.com",
153 "elements": [
154 // Array of diagram elements
155 ],
156 "appState": {
157 "viewBackgroundColor": "#ffffff",
158 "gridSize": 20
159 },
160 "files": {}
161}
162```
163
164### Step 6: Save and Provide Instructions
165
1661. Save as `<descriptive-name>.excalidraw`
1672. Inform user how to open:
168 - Visit https://excalidraw.com
169 - Click "Open" or drag-and-drop the file
170 - Or use Excalidraw VS Code extension
171
172## Best Practices
173
174### Element Count Guidelines
175
176| Diagram Type | Recommended Count | Maximum |
177|--------------|-------------------|---------|
178| Flowchart steps | 3-10 | 15 |
179| Relationship entities | 3-8 | 12 |
180| Mind map branches | 4-6 | 8 |
181| Mind map sub-topics per branch | 2-4 | 6 |
182
183### Layout Tips
184
1851. **Start positions**: Center important elements, use consistent spacing
1862. **Spacing**:
187 - Horizontal gap: 200-300px between elements
188 - Vertical gap: 100-150px between rows
1893. **Colors**: Use consistent color scheme
190 - Primary elements: Light blue (`#a5d8ff`)
191 - Secondary elements: Light green (`#b2f2bb`)
192 - Important/Central: Yellow (`#ffd43b`)
193 - Alerts/Warnings: Light red (`#ffc9c9`)
1944. **Text sizing**: 16-24px for readability
1955. **Font**: Always use `fontFamily: 5` (Excalifont) for all text elements
1966. **Arrow style**: Use straight arrows for simple flows, curved for complex relationships
197
198### Complexity Management
199
200**If user request has too many elements:**
201- Suggest breaking into multiple diagrams
202- Focus on main elements first
203- Offer to create detailed sub-diagrams
204
205**Example response:**
206```
207"Your request includes 15 components. For clarity, I recommend:
2081. High-level architecture diagram (6 main components)
2092. Detailed diagram for each subsystem
210
211Would you like me to start with the high-level view?"
212```
213
214<!-- MCP:START -->
215
216<!-- PORTABILITY:START -->
217## Cross-Client Portability
218
219This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
220
221- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
222 workflow in project instructions when folder discovery is unavailable.
223- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
224- Codex: install or sync the folder into
225 `$CODEX_HOME/skills/excalidraw-diagram-generator` and restart Codex after major changes.
226
227<!-- PORTABILITY:END -->
228
229## MCP Availability And Fallback
230
231Preferred MCP Server: None required
232
233- Fallback prompt: "Use the Excalidraw Diagram Generator skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding."
234- Do not claim an MCP operation was used when the active host does not expose it.
235- Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
236
237<!-- MCP:END -->
238
239## Anti-Patterns
240
241- Starting from a generic template without adapting it: The output may look polished but still miss the real audience or medium.
242- Ignoring final render or export review: Layout bugs often appear only after the asset is opened in its destination tool.
243- Fixing content and presentation in one pass: It becomes hard to tell whether a problem is structural or visual.
244
245## Verification Protocol
246
247Before claiming "skill applied successfully":
248
2491. Pass/fail: The Excalidraw Diagram Generator implementation names the target runtime, framework version, and affected files.
2502. Pass/fail: Build, lint, test, or equivalent local validation is run for the changed surface.
2513. Pass/fail: Edge cases for errors, dependency drift, and environment differences are addressed or explicitly out of scope.
2524. Pressure-test scenario: Apply the workflow to a change that passes happy-path tests but fails one boundary condition.
2535. Success metric: Zero untested success claims; every implementation claim maps to a command or artifact.
254
255## Example Prompts and Responses
256
257### Example 1: Simple Flowchart
258
259**User:** "Create a flowchart for user registration"
260
261**Agent generates:**
2621. Extract steps: "Enter email" → "Verify email" → "Set password" → "Complete"
2632. Create flowchart with 4 rectangles + 3 arrows
2643. Save as `user-registration-flow.excalidraw`
265
266### Example 2: Relationship Diagram
267
268**User:** "Diagram the relationship between User, Post, and Comment entities"
269
270**Agent generates:**
2711. Entities: User, Post, Comment
2722. Relationships: User → Post ("creates"), User → Comment ("writes"), Post → Comment ("contains")
2733. Save as `user-content-relationships.excalidraw`
274
275### Example 3: Mind Map
276
277**User:** "Mind map about machine learning concepts"
278
279**Agent generates:**
2801. Center: "Machine Learning"
2812. Branches: Supervised Learning, Unsupervised Learning, Reinforcement Learning, Deep Learning
2823. Sub-topics under each branch
2834. Save as `machine-learning-mindmap.excalidraw`
284
285## Troubleshooting
286
287| Issue | Solution |
288|-------|----------|
289| Elements overlap | Increase spacing between coordinates |
290| Text doesn't fit in boxes | Increase box width or reduce font size |
291| Too many elements | Break into multiple diagrams |
292| Unclear layout | Use grid layout (rows/columns) or radial layout (mind maps) |
293| Colors inconsistent | Define color palette upfront based on element types |
294
295## Advanced Techniques
296
297### Grid Layout (for Relationship Diagrams)
298```javascript
299const columns = Math.ceil(Math.sqrt(entityCount));
300const x = startX + (index % columns) * horizontalGap;
301const y = startY + Math.floor(index / columns) * verticalGap;
302```
303
304### Radial Layout (for Mind Maps)
305```javascript
306const angle = (2 * Math.PI * index) / branchCount;
307const x = centerX + radius * Math.cos(angle);
308const y = centerY + radius * Math.sin(angle);
309```
310
311### Auto-generated IDs
312Use timestamp + random string for unique IDs:
313```javascript
314const id = Date.now().toString(36) + Math.random().toString(36).substr(2);
315```
316
317## Output Format
318
319Always provide:
3201. ✅ Complete `.excalidraw` JSON file
3212. 📊 Summary of what was created
3223. 📝 Element count
3234. 💡 Instructions for opening/editing
324
325**Example summary:**
326```
327Created: user-workflow.excalidraw
328Type: Flowchart
329Elements: 7 rectangles, 6 arrows, 1 title text
330Total: 14 elements
331
332To view:
3331. Visit https://excalidraw.com
3342. Drag and drop user-workflow.excalidraw
3353. Or use File → Open in Excalidraw VS Code extension
336```
337
338## Validation Checklist
339
340Before delivering the diagram:
341- [ ] All elements have unique IDs
342- [ ] Coordinates prevent overlapping
343- [ ] Text is readable (font size 16+)
344- [ ] **All text elements use `fontFamily: 5` (Excalifont)**
345- [ ] Arrows connect logically
346- [ ] Colors follow consistent scheme
347- [ ] File is valid JSON
348- [ ] Element count is reasonable (<20 for clarity)
349
350## Icon Libraries (Optional Enhancement)
351
352For specialized diagrams (e.g., AWS/GCP/Azure architecture diagrams), you can use pre-made icon libraries from Excalidraw. This provides professional, standardized icons instead of basic shapes.
353
354### When User Requests Icons
355
356**If user asks for AWS/cloud architecture diagrams or mentions wanting to use specific icons:**
357
3581. **Check if library exists**: Look for `libraries/<library-name>/reference.md`
3592. **If library exists**: Proceed to use icons (see AI Assistant Workflow below)
3603. **If library does NOT exist**: Respond with setup instructions:
361
362 ```
363 To use [AWS/GCP/Azure/etc.] architecture icons, please follow these steps:
364
365 1. Visit https://libraries.excalidraw.com/
366 2. Search for "[AWS Architecture Icons/etc.]" and download the .excalidrawlib file
367 3. Create directory: skills/excalidraw-diagram-generator/libraries/[icon-set-name]/
368 4. Place the downloaded file in that directory
369 5. Run the splitter script:
370 python skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py skills/excalidraw-diagram-generator/libraries/[icon-set-name]/
371
372 This will split the library into individual icon files for efficient use.
373 After setup is complete, I can create your diagram using the actual AWS/cloud icons.
374
375 Alternatively, I can create the diagram now using simple shapes (rectangles, ellipses)
376 which you can later replace with icons manually in Excalidraw.
377 ```
378
379### User Setup Instructions (Detailed)
380
381**Step 1: Create Library Directory**
382```bash
383mkdir -p skills/excalidraw-diagram-generator/libraries/aws-architecture-icons
384```
385
386**Step 2: Download Library**
387- Visit: https://libraries.excalidraw.com/
388- Search for your desired icon set (e.g., "AWS Architecture Icons")
389- Click download to get the `.excalidrawlib` file
390- Example categories (availability varies; confirm on the site):
391 - Cloud service icons
392 - UI/Material icons
393 - Flowchart symbols
394
395**Step 3: Place Library File**
396- Rename the downloaded file to match the directory name (e.g., `aws-architecture-icons.excalidrawlib`)
397- Move it to the directory created in Step 1
398
399**Step 4: Run Splitter Script**
400```bash
401python skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py skills/excalidraw-diagram-generator/libraries/aws-architecture-icons/
402```
403
404**Step 5: Verify Setup**
405After running the script, verify the following structure exists:
406```
407skills/excalidraw-diagram-generator/libraries/aws-architecture-icons/
408 aws-architecture-icons.excalidrawlib (original)
409 reference.md (generated - icon lookup table)
410 icons/ (generated - individual icon files)
411 API-Gateway.json
412 CloudFront.json
413 EC2.json
414 Lambda.json
415 RDS.json
416 S3.json
417 ...
418```
419
420### AI Assistant Workflow
421
422**When icon libraries are available in `libraries/`:**
423
424**RECOMMENDED APPROACH: Use Python Scripts (Efficient & Reliable)**
425
426The repository includes Python scripts that handle icon integration automatically:
427
4281. **Create base diagram structure**:
429 - Create `.excalidraw` file with basic layout (title, boxes, regions)
430 - This establishes the canvas and overall structure
431
4322. **Add icons using Python script**:
433 ```bash
434 python skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py \
435 <diagram-path> <icon-name> <x> <y> [--label "Text"] [--library-path PATH]
436 ```
437 - Edit via `.excalidraw.edit` is enabled by default to avoid overwrite issues; pass `--no-use-edit-suffix` to disable.
438
439 **Examples**:
440 ```bash
441 # Add EC2 icon at position (400, 300) with label
442 python scripts/add-icon-to-diagram.py diagram.excalidraw EC2 400 300 --label "Web Server"
443
444 # Add VPC icon at position (200, 150)
445 python scripts/add-icon-to-diagram.py diagram.excalidraw VPC 200 150
446
447 # Add icon from different library
448 python scripts/add-icon-to-diagram.py diagram.excalidraw Compute-Engine 500 200 \
449 --library-path libraries/gcp-icons --label "API Server"
450 ```
451
4523. **Add connecting arrows**:
453 ```bash
454 python skills/excalidraw-diagram-generator/scripts/add-arrow.py \
455 <diagram-path> <from-x> <from-y> <to-x> <to-y> [--label "Text"] [--style solid|dashed|dotted] [--color HEX]
456 ```
457 - Edit via `.excalidraw.edit` is enabled by default to avoid overwrite issues; pass `--no-use-edit-suffix` to disable.
458
459 **Examples**:
460 ```bash
461 # Simple arrow from (300, 250) to (500, 300)
462 python scripts/add-arrow.py diagram.excalidraw 300 250 500 300
463
464 # Arrow with label
465 python scripts/add-arrow.py diagram.excalidraw 300 250 500 300 --label "HTTPS"
466
467 # Dashed arrow with custom color
468 python scripts/add-arrow.py diagram.excalidraw 400 350 600 400 --style dashed --color "#7950f2"
469 ```
470
4714. **Workflow summary**:
472 ```bash
473 # Step 1: Create base diagram with title and structure
474 # (Create .excalidraw file with initial elements)
475
476 # Step 2: Add icons with labels
477 python scripts/add-icon-to-diagram.py my-diagram.excalidraw "Internet-gateway" 200 150 --label "Internet Gateway"
478 python scripts/add-icon-to-diagram.py my-diagram.excalidraw VPC 250 250
479 python scripts/add-icon-to-diagram.py my-diagram.excalidraw ELB 350 300 --label "Load Balancer"
480 python scripts/add-icon-to-diagram.py my-diagram.excalidraw EC2 450 350 --label "EC2 Instance"
481 python scripts/add-icon-to-diagram.py my-diagram.excalidraw RDS 550 400 --label "Database"
482
483 # Step 3: Add connecting arrows
484 python scripts/add-arrow.py my-diagram.excalidraw 250 200 300 250 # Internet → VPC
485 python scripts/add-arrow.py my-diagram.excalidraw 300 300 400 300 # VPC → ELB
486 python scripts/add-arrow.py my-diagram.excalidraw 400 330 500 350 # ELB → EC2
487 python scripts/add-arrow.py my-diagram.excalidraw 500 380 600 400 # EC2 → RDS
488 ```
489
490**Benefits of Python Script Approach**:
491- ✅ **No token consumption**: Icon JSON data (200-1000 lines each) never enters AI context
492- ✅ **Accurate transformations**: Coordinate calculations handled deterministically
493- ✅ **ID management**: Automatic UUID generation prevents conflicts
494- ✅ **Reliable**: No risk of coordinate miscalculation or ID collision
495- ✅ **Fast**: Direct file manipulation, no parsing overhead
496- ✅ **Reusable**: Works with any Excalidraw library you provide
497
498**ALTERNATIVE: Manual Icon Integration (Not Recommended)**
499
500Only use this if Python scripts are unavailable:
501
5021. **Check for libraries**:
503 ```
504 List directory: skills/excalidraw-diagram-generator/libraries/
505 Look for subdirectories containing reference.md files
506 ```
507
5082. **Read reference.md**:
509 ```
510 Open: libraries/<library-name>/reference.md
511 This is lightweight (typically <300 lines) and lists all available icons
512 ```
513
5143. **Find relevant icons**:
515 ```
516 Search the reference.md table for icon names matching diagram needs
517 Example: For AWS diagram with EC2, S3, Lambda → Find "EC2", "S3", "Lambda" in table
518 ```
519
5204. **Load specific icon data** (WARNING: Large files):
521 ```
522 Read ONLY the needed icon files:
523 - libraries/aws-architecture-icons/icons/EC2.json (200-300 lines)
524 - libraries/aws-architecture-icons/icons/S3.json (200-300 lines)
525 - libraries/aws-architecture-icons/icons/Lambda.json (200-300 lines)
526 Note: Each icon file is 200-1000 lines - this consumes significant tokens
527 ```
528
5295. **Extract and transform elements**:
530 ```
531 Each icon JSON contains an "elements" array
532 Calculate bounding box (min_x, min_y, max_x, max_y)
533 Apply offset to all x/y coordinates
534 Generate new unique IDs for all elements
535 Update groupIds references
536 Copy transformed elements into your diagram
537 ```
538
5396. **Position icons and add connections**:
540 ```
541 Adjust x/y coordinates to position icons correctly in the diagram
542 Update IDs to ensure uniqueness across diagram
543 Add connecting arrows and labels as needed
544 ```
545
546**Manual Integration Challenges**:
547- ⚠️ High token consumption (200-1000 lines per icon × number of icons)
548- ⚠️ Complex coordinate transformation calculations
549- ⚠️ Risk of ID collision if not handled carefully
550- ⚠️ Time-consuming for diagrams with many icons
551
552### Example: Creating AWS Diagram with Icons
553
554**Request**: "Create an AWS architecture diagram with Internet Gateway, VPC, ELB, EC2, and RDS"
555
556**Recommended Workflow (using Python scripts)**:
557**Request**: "Create an AWS architecture diagram with Internet Gateway, VPC, ELB, EC2, and RDS"
558
559**Recommended Workflow (using Python scripts)**:
560
561```bash
562# Step 1: Create base diagram file with title
563# Create my-aws-diagram.excalidraw with basic structure (title, etc.)
564
565# Step 2: Check icon availability
566# Read: libraries/aws-architecture-icons/reference.md
567# Confirm icons exist: Internet-gateway, VPC, ELB, EC2, RDS
568
569# Step 3: Add icons with Python script
570python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw "Internet-gateway" 150 100 --label "Internet Gateway"
571python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw VPC 200 200
572python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw ELB 350 250 --label "Load Balancer"
573python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw EC2 500 300 --label "Web Server"
574python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw RDS 650 350 --label "Database"
575
576# Step 4: Add connecting arrows
577python scripts/add-arrow.py my-aws-diagram.excalidraw 200 150 250 200 # Internet → VPC
578python scripts/add-arrow.py my-aws-diagram.excalidraw 265 230 350 250 # VPC → ELB
579python scripts/add-arrow.py my-aws-diagram.excalidraw 415 280 500 300 # ELB → EC2
580python scripts/add-arrow.py my-aws-diagram.excalidraw 565 330 650 350 --label "SQL" --style dashed
581
582# Result: Complete diagram with professional AWS icons, labels, and connections
583```
584
585**Benefits**:
586- No manual coordinate calculation
587- No token consumption for icon data
588- Deterministic, reliable results
589- Easy to iterate and adjust positions
590
591**Alternative Workflow (manual, if scripts unavailable)**:
5921. Check: `libraries/aws-architecture-icons/reference.md` exists → Yes
5932. Read reference.md → Find entries for Internet-gateway, VPC, ELB, EC2, RDS
5943. Load:
595 - `icons/Internet-gateway.json` (298 lines)
596 - `icons/VPC.json` (550 lines)
597 - `icons/ELB.json` (363 lines)
598 - `icons/EC2.json` (231 lines)
599 - `icons/RDS.json` (similar size)
600 **Total: ~2000+ lines of JSON to process**
6014. Extract elements from each JSON
6025. Calculate bounding boxes and offsets for each icon
6036. Transform all coordinates (x, y) for positioning
6047. Generate unique IDs for all elements
6058. Add arrows showing data flow
6069. Add text labels
60710. Generate final `.excalidraw` file
608
609**Challenges with manual approach**:
610- High token consumption (~2000-5000 lines)
611- Complex coordinate math
612- Risk of ID conflicts
613
614### Supported Icon Libraries (Examples — verify availability)
615
616- This workflow works with any valid `.excalidrawlib` file you provide.
617- Examples of library categories you may find on https://libraries.excalidraw.com/:
618 - Cloud service icons
619 - Kubernetes / infrastructure icons
620 - UI / Material icons
621 - Flowchart / diagram symbols
622 - Network diagram icons
623- Availability and naming can change; verify exact library names on the site before use.
624
625### Fallback: No Icons Available
626
627**If no icon libraries are set up:**
628- Create diagrams using basic shapes (rectangles, ellipses, arrows)
629- Use color coding and text labels to distinguish components
630- Inform user they can add icons later or set up libraries for future diagrams
631- The diagram will still be functional and clear, just less visually polished
632
633## References
634
635See bundled references for:
636- `references/excalidraw-schema.md` - Complete Excalidraw JSON schema
637- `references/element-types.md` - Detailed element type specifications
638- `templates/flowchart-template.json` - Basic flowchart starter
639- `templates/relationship-template.json` - Relationship diagram starter
640- `templates/mindmap-template.json` - Mind map starter
641- `scripts/split-excalidraw-library.py` - Tool to split `.excalidrawlib` files
642- `scripts/README.md` - Documentation for library tools
643- `scripts/.gitignore` - Prevents local Python artifacts from being committed
644
645## Limitations
646
647- Complex curves are simplified to straight/basic curved lines
648- Hand-drawn roughness is set to default (1)
649- No embedded images support in auto-generation
650- Maximum recommended elements: 20 per diagram
651- No automatic collision detection (use spacing guidelines)
652
653## Future Enhancements
654
655Potential improvements:
656- Auto-layout optimization algorithms
657- Import from Mermaid/PlantUML syntax
658- Template library expansion
659- Interactive editing after generation
660
661
662---
663
664## Related Skills
665
666- [frontend-design](../frontend-design/SKILL.md): Use it when the workflow also needs UI composition and front-end design direction.
667- [web-design-reviewer](../web-design-reviewer/SKILL.md): Use it when the workflow also needs browser-based UI review and responsive QA.
668- [stitch-design](../stitch-design/SKILL.md): Use it when the workflow also needs turning interface designs into implementation-ready assets.