excalidraw-generator
Skill2 starsChanged 9 months agoMITView on GitHub
Generate Excalidraw (.excalidraw) format hand-drawn style flowcharts, SOP manuals, architecture diagrams, and visual documentation. Activate when user wants to create Excalidraw diagrams, draw flowcharts, make SOP handbooks, create system architecture diagrams, or visualize operational procedures. Supports direct output to importable .excalidraw files for the Excalidraw editor. Trigger keywords: excalidraw, flowchart, SOP diagram, hand-drawn diagram, system architecture (excalidraw format), operational manual visualization. Note: Activate immediately even if user just says "help me draw a flowchart and save as excalidraw format".
2 other projects use a version of this.
Adopted by
Most recently taken up by
- luongnv89/skillstheir own version, first seen Nov 6, 2026
- kv0906/pm-kittheir own version, first seen Apr 5, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- luongnv89/skills★ 149same name
- kv0906/pm-kit★ 138same name
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.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 254
Start layout from (100, 100) to leave margins
- Distinctive: line 279
Generate Elements: Create rectangles, text, arrows following templates
- Very specific: line 280
Establish Bindings: Ensure boundElements and containerId correspond correctly
- Very specific: line 281
Assemble JSON: Put all elements in elements array, output complete JSON
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Excalidraw Diagram Generator
This skill helps you generate .excalidraw files conforming to Excalidraw format specifications, with a hand-drawn style inspired by SOP manuals.
1. Output File Format
Save files with .excalidraw extension (Excalidraw native format):
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [ /* all graphic elements */ ],
"appState": {
"gridSize": 20,
"gridStep": 5,
"gridModeEnabled": false,
"viewBackgroundColor": "#ffffff"
},
"files": {}
}2. Visual Style Specifications
Color Scheme
| Purpose | Recommended Colors | Notes |
| Section Headers | #a5d8ff (Light Blue), #ffd8a8 (Light Orange), #b2f2bb (Light Green) | Choose ONE unified color for all headers in a diagram |
| Content Boxes | transparent | For content blocks, sub-nodes |
| Emphasis/Alert | #ffc9c9 | Light pink for warnings, special annotations |
| Canvas Background | #ffffff | Pure white |
| Strokes/Text | #1e1e1e | Dark gray/black |
Color Selection Principle: Header background color is flexible. Choose one unified color (e.g., light blue, light orange, light green) that fits your document theme. ALL header boxes in the diagram should use the SAME color for visual consistency.
Typography
fontFamily: 5(Excalidraw built-in CJK font, supports Chinese)fontSize: 20(uniform 20px for body text)lineHeight: 1.25
Graphic Styles (Uniform for all elements)
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100
roughness: 1is key to Excalidraw's hand-drawn style. Don't change to 0 (becomes precise mode).
Rounded Rectangles
"roundness": { "type": 3 }Arrow Types
- Flow arrows:
"endArrowhead": "arrow","startArrowhead": null - Elbowed lines:
"elbowed": true - Curves:
"elbowed": false,"roundness": { "type": 2 }
3. Element Type Templates
3.1 Rectangle with Title Text (Header Box)
Rectangle and text are two separate elements bound via containerId / boundElements.
// Rectangle container (Header - uses unified background color)
{
"id": "rect_001",
"type": "rectangle",
"x": 100,
"y": 100,
"width": 200,
"height": 45,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "#a5d8ff",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a0",
"roundness": { "type": 3 },
"seed": 123456,
"version": 1,
"versionNonce": 654321,
"isDeleted": false,
"boundElements": [{ "type": "text", "id": "text_001" }],
"updated": 1700000000000,
"link": null,
"locked": false
},
// Bound text (containerId points to rectangle)
{
"id": "text_001",
"type": "text",
"x": 105,
"y": 110,
"width": 120,
"height": 25,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a0V",
"roundness": null,
"seed": 111111,
"version": 1,
"versionNonce": 222222,
"isDeleted": false,
"boundElements": null,
"updated": 1700000000000,
"link": null,
"locked": false,
"text": "Header Content",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "middle",
"containerId": "rect_001",
"originalText": "Header Content",
"autoResize": true,
"lineHeight": 1.25
}3.2 Standalone Text Block (Description)
{
"id": "text_002",
"type": "text",
"x": 100,
"y": 170,
"width": 400,
"height": 25,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a1",
"roundness": null,
"seed": 333333,
"version": 1,
"versionNonce": 444444,
"isDeleted": false,
"boundElements": null,
"updated": 1700000000000,
"link": null,
"locked": false,
"text": "Description text (use \\n for multiline)",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "left",
"verticalAlign": "top",
"containerId": null,
"originalText": "Description text",
"autoResize": true,
"lineHeight": 1.25
}3.3 Connecting Arrows
{
"id": "arrow_001",
"type": "arrow",
"x": 300,
"y": 122,
"width": 100,
"height": 0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
"fillStyle": "solid",
"strokeWidth": 2,
"strokeStyle": "solid",
"roughness": 1,
"opacity": 100,
"groupIds": [],
"frameId": null,
"index": "a2",
"roundness": null,
"seed": 555555,
"version": 1,
"versionNonce": 666666,
"isDeleted": false,
"boundElements": null,
"updated": 1700000000000,
"link": null,
"locked": false,
"points": [[0, 0], [100, 0]],
"lastCommittedPoint": null,
"startBinding": {
"elementId": "rect_001",
"fixedPoint": [1.0, 0.5],
"focus": 0,
"gap": 0
},
"endBinding": {
"elementId": "rect_002",
"fixedPoint": [0.0, 0.5],
"focus": 0,
"gap": 0
},
"startArrowhead": null,
"endArrowhead": "arrow",
"elbowed": true,
"fixedSegments": null
}4. Layout Guidelines
Coordinate System
- Origin (0, 0) at top-left, x right, y down
- Start layout from (100, 100) to leave margins
- Same level elements: ~60-80px vertical spacing, ~120-150px horizontal spacing
Section Layout Pattern
[Header Rectangle - Unified Color] ← ~200px wide, 45px tall
[Description Text] ← 60px below header, multiline OK
[Sub-node] → [Sub-node] → [Sub-node] ← horizontal with arrows
[Screenshot/Diagram] ← image element (if any)Index Field Convention
- Increment sequentially:
"a0","a1","a2", ... - Bound text uses
"a0V"(appendVto parent index)
Seed and versionNonce
- Use random integers (1000000 ~ 9999999999)
- Each element needs different seed to avoid visual overlap
5. Generation Steps
- Understand Structure: Extract module hierarchy and flow relationships from user description
- Plan Layout: Determine (x, y) coordinates for each element
- Generate Elements: Create rectangles, text, arrows following templates
- Establish Bindings: Ensure
boundElementsandcontainerIdcorrespond correctly - Assemble JSON: Put all elements in
elementsarray, output complete JSON - Save File: Save as
.excalidrawfile (Excalidraw native format)
6. Common Mistakes to Avoid
| Mistake | Correct Approach |
| Rectangle and text IDs not bound | Rectangle's boundElements includes text ID, text's containerId points to rectangle ID |
| All elements have same seed | Use different random numbers for each element |
| Arrow points array empty | Include at least start and end: [[0,0],[dx,dy]] |
| Text outside rectangle | Text x,y should be within rectangle bounds (rect x+padding) |
| roughness set to 0 | Keep "roughness": 1 for hand-drawn style |
Missing "type": "excalidraw" | File must start with "type": "excalidraw" |
7. Multilingual Text Handling
- Chinese text uses
fontFamily: 5(built-in support) - Multiline text uses
\nseparator - Estimate text width: Chinese ~20px/char, English ~10px/char, total = chars × width + 10px padding
Reference Examples
See examples/ directory for complete sample diagrams.
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.

