---
name: excalidraw-artist
description: Create beautiful, elegant Excalidraw diagrams based on user intent. Use when user asks to draw, visualize, diagram, sketch, illustrate concepts, create flowcharts, architecture diagrams, mind maps, process flows, or any visual representation. Triggers on keywords like "draw", "diagram", "visualize", "sketch", "flowchart", "architecture", "mind map", "illustrate".
---
# Excalidraw Artist
Create elegant, high-quality Excalidraw diagrams and automatically preview in browser.
## ⚠️ CRITICAL: NO Crossing Lines
**Lines and arrows must NEVER cross each other.** This is the #1 rule for professional diagrams.
Before generating any diagram:
1. Plan node positions to avoid any line intersections
2. Use consistent flow direction (left-to-right OR top-to-bottom)
3. Rearrange nodes if needed to eliminate crossings
4. Use vertical/horizontal alignment to keep connections clean
## Workflow
1. **Analyze user intent** - Understand what they want to visualize
2. **Choose diagram type** - Flowchart, architecture, mind map, comparison, etc.
3. **Design element layout** - Plan positions, sizes, colors for visual harmony
4. **Generate HTML** - Create diagram using the template
5. **Auto-open browser** - Preview immediately
## Element Reference
See [references/elements.md](references/elements.md) for:
- Element types and properties
- Color palette recommendations
- Layout guidelines
See [references/diagram-patterns.md](references/diagram-patterns.md) for:
- Common diagram patterns
- Recommended dimensions
- Spacing guidelines
## Implementation
### Generate the HTML file
Write an HTML file with this structure, replacing the `elementsData` array with designed elements:
```html