opencoredev/excalidraw-cli/excalidraw-design-guide
Claude Code and agent skill by opencoredev/excalidraw-cli
- community
Checking that the SKILL.md file is still in the repository.
Load when drawing any Excalidraw diagram. Provides color palette (hex codes), sizing formulas to prevent text truncation, spacing rules to prevent overlaps, arrow styles, layout patterns, and diagram templates for architecture, flowchart, mindmap, and ER diagrams. Use when asked to draw, visualize, diagram, or create any chart.
Install
npx vskill@latest install opencoredev/excalidraw-cli/excalidraw-design-guideSKILL.md
Excalidraw Diagram Design Guide
Color Palette
Stroke Colors (borders & text)
| Name | Hex | Use for | |
|---|---|---|---|
| Black | #1e1e1e | Default text & borders | |
| Red | #e03131 | Errors, warnings, critical | |
| Green | #2f9e44 | Success, approved, healthy | |
| Blue | #1971c2 | Primary actions, links | |
| Purple | #9c36b5 | Services, middleware | |
| Orange | #e8590c | Async, queues, events | |
| Cyan | #0c8599 | Data stores, databases | |
| Gray | #868e96 | Annotations, secondary |
Fill Colors (backgroundColor — pastel)
| Name | Hex | Pairs with stroke | |
|---|---|---|---|
| Light Red | #ffc9c9 | #e03131 | |
| Light Green | #b2f2bb | #2f9e44 | |
| Light Blue | #a5d8ff | #1971c2 | |
| Light Purple | #eebefa | #9c36b5 | |
| Light Orange | #ffd8a8 | #e8590c | |
| Light Cyan | #99e9f2 | #0c8599 | |
| Light Gray | #e9ecef | #868e96 | |
| White | #ffffff | #1e1e1e |
Sizing Rules
- Minimum shape: width >= 120px, height >= 60px
- Shape width formula:
max(160, charCount * 11 + 40)— the+40is mandatory padding, never skip it - Multi-word labels: measure the longest single word:
max(160, longestWord * 11 + 80) - Shape height: 60px single-line, 80px two-line, 100px three-line labels
- Font sizes: body text >= 16, titles/headers >= 20, small labels >= 14
- Padding: at least 20px inside shapes for text breathing room
- Arrow gap: minimum 80px between connected shapes — closer = arrows overdraw the border
- Consistent sizing: same-role shapes = same dimensions
Layout Patterns
- Grid snap: align to 20px grid for clean layouts
- Spacing: 40–80px gap between adjacent shapes
- Flow direction: top-to-bottom (vertical) or left-to-right (horizontal)
- Hierarchy: important nodes larger or higher; left-to-right = temporal order
- Grouping: cluster related elements; use background rectangles as zones
- Tier layout:
- Tier 1 (y=50–130): Client apps / entry points
- Tier 2 (y=200–280): Gateway / edge layer
- Tier 3 (y=350–440): Services (spread wide: 160–200px apart)
- Tier 4 (y=510–590): Data stores
- Side panels: x < 0 or x > mainDiagramRight + 80
Arrow Best Practices
Binding (always use element IDs, not raw coordinates)
Server auto-routes arrows to element edges using precise geometry.
Line styles
- Solid: synchronous calls, direct dependencies
- Dashed (
"strokeStyle": "dashed"): async flows, optional paths, events - Dotted (
"strokeStyle": "dotted"): weak dependencies, annotations
Arrowheads
"endArrowhead": "arrow"— default directed flow"endArrowhead": "dot"— data stores / database relationships"endArrowhead": "bar"— cardinality (ER diagrams)"endArrowhead": "triangle"— filled triangle (UML)"endArrowhead": null— plain line (undirected)"startArrowhead"mirrors the same options for bidirectional arrows
Labels on arrows
Use "label": {"text": "HTTP"} — keep to 1–2 words. Long labels overlap shapes.
Routing complex arrows (avoid crossings)
Elbowed arrow (right-angle routing — cleanest for architecture diagrams):
Curved arc (for arrows that need to arc over elements):
Fill Styles (fillStyle)
Controls how shape interiors are rendered. Default is "hachure" (Excalidraw's signature sketchy look).
| Value | Appearance | Best for | |
|---|---|---|---|
"solid" | Flat solid color | Clean production diagrams | |
"hachure" | Diagonal hatching (default) | Sketchy/hand-drawn style | |
"cross-hatch" | Grid hatching | Emphasis, dense areas | |
"dots" | Dot pattern | Light texture, secondary elements | |
"zigzag" | Zigzag lines | Decorative, callouts | |
"zigzag-line" | Single zigzag | Borders/edges |
Use `"solid"` for any diagram meant to look professional. Only use "hachure" if you want the hand-drawn aesthetic intentionally.
Rounded Corners (roundness)
Add "roundness": {"type": 3} to rectangle and ellipse elements for rounded corners.
Omit roundness (or set to null) for sharp corners.
Diagram Type Templates
Architecture Diagram
Flowchart
ER Diagram
Mindmap (Clean Radial, 5 Branches)
Use this when a user asks for a minimal mindmap with directional branches.
Rules:
- Keep one center node and place first-level branches radially around it (not in a loose grid).
- Keep all labels inside shape text; never leave branch words floating outside boxes.
- Use bound arrows with
start/endIDs only. - Keep branch lengths similar unless direction intentionally emphasizes a topic.
Reference coordinates (centered canvas):
- Center:
(560, 320) - Branch vectors: up
(0,-180), right(240,-40), down-right(220,190), down-left(-220,190), left(-240,-40) - Child vectors from each branch: continue same direction by 160-220px.
Coordinate note:
- Element
x/yvalues are top-left anchors; evaluate radial balance using node centers, not top-left corners.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/excalidraw-design-guide/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opencoredev/excalidraw-cli/excalidraw-design-guide)