excalidraw-diagram
Skill1 starsChanged 5 months agoMITView on GitHub
Generate Excalidraw diagram JSON files that argue visually. Use when the user wants to visualize architectures, workflows, data flows, or concepts as .excalidraw files. Produces structured JSON that renders in any Excalidraw viewer (VS Code extension, excalidraw.com, embedded).
- Pipes a download into a shell
37 other projects use a version of this, 20 of them edited.
Adopted by
Most recently taken up by
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- microsoft/frontier-ai-governance-rvasedited, first seen Oct 3, 2026
- microsoft/frontier-agentic-cobuild-rvasedited, first seen Oct 3, 2026
- oldwinter/skillstheir own version, first seen Sep 26, 2026
- microsoft/frontier-ghcp-ttt-rvasedited, first seen Sep 9, 2026
- breferrari/obsidian-mindtheir own version, first seen Aug 17, 2026
Used with
Projects with it also use mermaid-visualizer, obsidian-canvas-creator and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BCS1037Skillmermaid-visualizer
Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.
Also in 7 projects that use this
BCS1037Skillobsidian-canvas-creator
Create Obsidian Canvas files from text content, supporting both MindMap and freeform layouts. Use this skill when users want to visualize content as an interactive canvas, create mind maps, or organize information spatially in Obsidian format.
Also in 4 projects that use this
BlockSkillskill-builder
Create, edit, or inspect Berd skills stored as skill folders with SKILL.md files. Use when the user wants to build a new skill, update an existing skill, convert a workflow into a reusable skill, or decide whether instructions, scripts, references, or assets belong in a skill.
Also in 4 projects that use this
KKodiacSkillobsidian-bases
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
Also in 3 projects that use this
VercelSkillremotion-best-practices
Best practices for Remotion - Video creation in React
Also in 3 projects that use this
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 8 projects that use this
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 20
- coleam00/excalidraw-diagram-skill★ 4.9k25% same
- walidboulanouar/Ay-Skills★ 9122% same
- kv0906/cc-skills★ 1625% same
- ccomkhj/skills★ 825% same
- Harmeet10000/skills★ 725% same
- kevin-burns/claude-skills★ 723% same
- microsoft/frontier-agentic-cobuild-rvas★ 525% same
- isatimur/excalidraw-skill-pack★ 413% same
- Bosh-Kuo/awesome-agent-toolkit★ 224% same
- ShellyDeng08/codebase-slideshow★ 225% same
10 more not listed
Wrote their own version · 17
- breferrari/obsidian-mind★ 4.9ksame name
- axtonliu/axton-obsidian-visual-skills★ 3.6ksame name
- xstongxue/best-skills★ 2.9ksame name
- aiagentwithdhruv/skills★ 17same name
- BCS1037/awesome-obsidian-skills★ 9same name
- oldwinter/skills★ 8same name
- shahzadahmadv1/ExcaliClaude★ 3same name
- skizha/agent-skills★ 3same name
- austinpeechatt/claude-code-skills★ 2same name
- dqtx760/skills-manage★ 2same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- system-design-interviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. 4 are common, 17 are distinctive, and 4 are very specific to this project.
4
Common
Most of the 33 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
All colors live in references/color-palette.md.
- Distinctive: line 40
The Isomorphism Test: Remove all text. Does the structure alone communicate the concept?
- Common: line 50
Before designing, determine what level of detail the diagram needs:
- Common: line 54
Use abstract shapes when:
- Common: line 61
Use concrete examples when:
- Distinctive: line 108
Before JSON, mentally trace how the eye moves through the diagram.
- Distinctive: line 117
Run the render-view-fix loop until the diagram is clean.
- Common: line 141
Not every piece of text needs a shape around it: Default to free-floating text.
- Distinctive: line 235
Rule: Default to no container. Add shapes only when they carry meaning.
- Distinctive: line 248
Always pair a darker stroke with a lighter fill for contrast
- Distinctive: line 250
Do not invent new colors: If a concept does not fit an existing semantic category, use Primary/Neutral.
- Distinctive: line 287
Build JSON one section at a time: Never generate the entire file in a single pass — it leads to truncation and worse quality.
- Very specific: line 294
Create the base file with the JSON wrapper (type, version, appState, files) and the first section of elements.
- Distinctive: line 296
Add one section per edit. Each section gets its own dedicated pass.
- Very specific: line 297
Use descriptive string IDs (e.g., "gateway_rect", "arrow_to_cache").
- Distinctive: line 299
Update cross-section bindings as you go.
- Distinctive: line 303
After all sections are in place, read through the complete JSON and check:
- Distinctive: line 306
Do all IDs and bindings reference elements that exist?
- Distinctive: line 310
Run the render-view-fix loop.
- Very specific: line 364
After generating the .excalidraw JSON, render it to PNG, view it, and fix issues in a loop.
- Distinctive: line 401
Add intermediate waypoints to arrow points arrays
- Distinctive: line 413
No text is clipped, overlapping, or unreadable
- Distinctive: line 437
Every relationship has an arrow or line?
- Distinctive: line 444
All IDs unique and descriptive?
- Distinctive: line 448
No overlapping, clipped, or unreadable text?
“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Excalidraw Diagram Creator
Generate .excalidraw JSON files that argue visually, not just display
information.
First-Time Setup
The skill includes a render pipeline for visual validation. Run once:
cd <path-to-this-skill>/references && uv sync && uv run playwright install chromiumWhere <path-to-this-skill> is the directory containing this SKILL.md file.
Or, if you installed via install.sh: curl -fsSL https://raw.githubusercontent.com/iamurali/system-design-skill/main/install.sh | bash -s -- --excalidraw
Customization
All colors live in references/color-palette.md. Edit it to change the visual
vocabulary. Everything else in this file is universal design methodology.
Core Philosophy
Diagrams should ARGUE, not DISPLAY.
A diagram is a visual argument showing relationships, causality, and flow that words alone cannot express. The shape should BE the meaning.
The Isomorphism Test: Remove all text. Does the structure alone communicate the concept? If not, redesign.
The Education Test: Could someone learn something concrete from this diagram, or does it just label boxes? A good diagram teaches.
Depth Assessment (Do This First)
Before designing, determine what level of detail the diagram needs:
Simple/Conceptual Diagrams
Use abstract shapes when:
- Explaining a mental model or philosophy
- The audience does not need technical specifics
- The concept IS the abstraction
Comprehensive/Technical Diagrams
Use concrete examples when:
- Diagramming a real system, protocol, or architecture
- The diagram will be used to teach or explain
- The audience needs to understand what things actually look like
- You are showing how multiple technologies integrate
For technical diagrams, include evidence artifacts — code snippets, real event names, actual JSON payloads, capacity numbers.
Design Process (Do This BEFORE Generating JSON)
Step 0: Assess Depth
Simple/conceptual or comprehensive/technical? This determines whether evidence artifacts are needed.
Step 1: Understand Deeply
For each concept, ask:
- What does this concept DO? (not what IS it)
- What relationships exist between concepts?
- What is the core transformation or flow?
- What would someone need to SEE to understand this?
Step 2: Map Concepts to Visual Patterns
| If the concept... | Use this pattern |
| Spawns multiple outputs | Fan-out (radial arrows from center) |
| Combines inputs into one | Convergence (funnel, arrows merging) |
| Has hierarchy/nesting | Tree (lines + free-floating text) |
| Is a sequence of steps | Timeline (line + dots + labels) |
| Loops or improves continuously | Spiral/Cycle (arrow returning to start) |
| Is an abstract state or context | Cloud (overlapping ellipses) |
| Transforms input to output | Assembly line (before -> process -> after) |
| Compares two things | Side-by-side (parallel with contrast) |
| Separates into phases | Gap/Break (visual separation between sections) |
Step 3: Ensure Variety
For multi-concept diagrams: each major concept must use a different visual pattern. No uniform cards or grids.
Step 4: Sketch the Flow
Before JSON, mentally trace how the eye moves through the diagram. There should be a clear visual story — typically left-to-right or top-to-bottom.
Step 5: Generate JSON Section-by-Section
See the Large Diagram Strategy below. Never generate the entire file in one pass.
Step 6: Render and Validate (MANDATORY)
Run the render-view-fix loop until the diagram is clean. See the Render and Validate section below.
Multi-Zoom Architecture
Comprehensive diagrams operate at multiple zoom levels simultaneously:
Level 1: Summary Flow
Simplified overview of the full pipeline at a glance.
Level 2: Section Boundaries
Labeled regions that group related components into visual "rooms."
Level 3: Detail Inside Sections
Evidence artifacts, capacity numbers, protocol annotations within each section.
For comprehensive diagrams, include all three levels.
Container vs Free-Floating Text
Not every piece of text needs a shape around it. Default to free-floating text. Add containers only when they serve a purpose.
| Use a Container When... | Use Free-Floating Text When... |
| It is the focal point of a section | It is a label or description |
| It needs visual grouping | It is supporting detail or metadata |
| Arrows need to connect to it | It describes something nearby |
| The shape itself carries meaning | Typography alone creates hierarchy |
| It represents a distinct "thing" | It is a title, subtitle, or annotation |
The container test: For each boxed element, ask "Would this work as free-floating text?" If yes, remove the container.
Visual Pattern Library
Fan-Out (One-to-Many)
Central element with arrows radiating to multiple targets.
o
/
[] --o
\
oConvergence (Many-to-One)
Multiple inputs merging through arrows to single output.
o \
o --> []
o /Tree (Hierarchy)
Parent-child branching with connecting lines and free-floating text.
label
|-- label
| |-- label
| +-- label
+-- labelTimeline (Sequence)
Line with dots at intervals and free-floating labels.
*--- Label 1
|
*--- Label 2
|
*--- Label 3Spiral/Cycle (Continuous Loop)
Elements in sequence with arrow returning to start.
[] --> []
^ |
| v
[] <-- []Assembly Line (Transformation)
Input -> Process -> Output with clear before/after.
ooo -> [PROCESS] -> [][][]
chaos orderSide-by-Side (Comparison)
Two parallel structures with visual contrast.
Gap/Break (Separation)
Visual whitespace or barrier between sections.
Shape Meaning
| Concept Type | Shape | Why |
| Labels, descriptions | none (free-floating text) | Typography creates hierarchy |
| Section titles | none (free-floating text) | Font size is enough |
| Markers on a timeline | small ellipse (10-20px) | Visual anchor |
| Start, trigger, input | ellipse | Soft, origin-like |
| End, output, result | ellipse | Completion |
| Decision, condition | diamond | Classic decision symbol |
| Process, action, service | rectangle | Contained action |
| Abstract state | overlapping ellipse | Fuzzy, cloud-like |
| Hierarchy node | lines + text (no boxes) | Structure through lines |
Rule: Default to no container. Add shapes only when they carry meaning.
Color as Meaning
Colors encode information, not decoration. Every color choice comes from
references/color-palette.md.
Key principles:
- Each semantic purpose has a specific fill/stroke pair
- Free-floating text uses color for hierarchy (title/subtitle/body)
- Evidence artifacts use dark background + colored text
- Always pair a darker stroke with a lighter fill for contrast
Do not invent new colors. If a concept does not fit an existing semantic category, use Primary/Neutral.
Layout Principles
Hierarchy Through Scale
- Hero: 300x150 — visual anchor, most important
- Primary: 180x90
- Secondary: 120x60
- Small: 60x40
Whitespace = Importance
The most important element has the most empty space around it (200px+).
Flow Direction
Guide the eye: left-to-right or top-to-bottom for sequences, radial for hub-and-spoke.
Connections Required
Position alone does not show relationships. If A relates to B, there must be an arrow or line connecting them.
Modern Aesthetics
roughness: 0— Clean, crisp edges. Default for all professional diagrams.strokeWidth: 2— Standard for shapes and arrows. Use 1 for subtle lines.opacity: 100— Always. Use color and size for hierarchy, never transparency.fontFamily: 3— Monospace. Always.
Large Diagram Strategy
Build JSON one section at a time. Never generate the entire file in a single pass — it leads to truncation and worse quality.
The Section-by-Section Workflow
Phase 1: Build each section
- Create the base file with the JSON wrapper (
type,version,appState,files) and the first section of elements. - Add one section per edit. Each section gets its own dedicated pass.
- Use descriptive string IDs (e.g.,
"gateway_rect","arrow_to_cache"). - Namespace seeds by section (section 1 uses 100xxx, section 2 uses 200xxx).
- Update cross-section bindings as you go.
Phase 2: Review the whole
After all sections are in place, read through the complete JSON and check:
- Are cross-section arrows bound correctly on both ends?
- Is overall spacing balanced?
- Do all IDs and bindings reference elements that exist?
Phase 3: Render and validate
Run the render-view-fix loop.
Section Boundaries for Architecture Diagrams
- Section 1: Client layer + edge/CDN + gateway
- Section 2: Read path (services + caches)
- Section 3: Write path (collectors + event systems)
- Section 4: Data stores + background processing
- Section 5: Cross-cutting concerns (monitoring, annotations, legend)
JSON Structure
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [...],
"appState": {
"viewBackgroundColor": "#ffffff",
"gridSize": 20
},
"files": {}
}Element templates are in references/element-templates.md. The full JSON
schema is in references/json-schema.md.
Text Rules
The JSON text property contains ONLY readable words:
{
"id": "myElement1",
"text": "API Gateway",
"originalText": "API Gateway"
}Settings: fontSize: 16, fontFamily: 3, textAlign: "center",
verticalAlign: "middle".
For titles: fontSize: 20-24. For annotations: fontSize: 14.
Render and Validate (MANDATORY)
After generating the .excalidraw JSON, render it to PNG, view it, and fix
issues in a loop.
How to Render
cd <path-to-this-skill>/references && uv run python render_excalidraw.py <path-to-file.excalidraw>Where <path-to-this-skill> is the directory containing this SKILL.md file.
Outputs a PNG next to the .excalidraw file. Then use the Read tool on the PNG
to view it.
The Loop
- Render and View — Run the render script, then Read the PNG.
- Audit against your original vision — Compare the rendered result to what
you designed in Steps 1-4:
- Does the visual structure match the conceptual structure?
- Does each section use the pattern you intended?
- Does the eye flow in the correct order?
- Is visual hierarchy correct — hero elements dominant, supporting smaller?
- Check for visual defects:
- Text clipped by or overflowing its container
- Text or shapes overlapping other elements
- Arrows crossing through elements instead of routing around
- Arrows landing on wrong element or pointing to empty space
- Labels floating ambiguously
- Uneven spacing between elements that should be evenly spaced
- Text too small to read
- Fix — Edit the JSON:
- Widen containers for clipped text
- Adjust x/y coordinates for spacing
- Add intermediate waypoints to arrow points arrays
- Reposition labels closer to their target
- Resize elements to rebalance visual weight
- Re-render and re-view — Run the render script again.
- Repeat — Until the diagram passes both the vision check and defect check. Typically 2-4 iterations.
When to Stop
- The rendered diagram matches the conceptual design
- No text is clipped, overlapping, or unreadable
- Arrows route cleanly and connect to the right elements
- Spacing is consistent and composition is balanced
Quality Checklist
Depth and Evidence (Technical Diagrams)
- Evidence artifacts present (capacity numbers, protocol names, real data)?
- Multi-zoom (summary + sections + detail)?
- Concrete over abstract — real content shown, not just labeled boxes?
Conceptual
- Isomorphism — visual structure mirrors concept behavior?
- Argument — diagram shows something text alone cannot?
- Variety — each major concept uses a different visual pattern?
Container Discipline
- Minimal containers — could any boxed element work as free-floating text?
- Lines as structure — tree/timeline using lines + text, not boxes?
- Typography hierarchy — font size and color creating visual levels?
Structural
- Every relationship has an arrow or line?
- Clear visual path for the eye to follow?
- Important elements are larger/more isolated?
Technical
fontFamily: 3,roughness: 0,opacity: 100?- Text contains only readable words?
- All IDs unique and descriptive?
Visual Validation
- Rendered to PNG and visually inspected?
- No overlapping, clipped, or unreadable text?
- Arrows land correctly, spacing is consistent?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

