agentleFS
ruoningxiongruoningxiong/excalidraw-generator-claude-skill/SKILL.md

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

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. luongnv89/skills★ 149same name
    2. 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
  1. Distinctive:

    Start layout from (100, 100) to leave margins

    line 254
  2. Distinctive:

    Generate Elements: Create rectangles, text, arrows following templates

    line 279
  3. Very specific:

    Establish Bindings: Ensure boundElements and containerId correspond correctly

    line 280
  4. Very specific:

    Assemble JSON: Put all elements in elements array, output complete JSON

    line 281

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

PurposeRecommended ColorsNotes
Section Headers#a5d8ff (Light Blue), #ffd8a8 (Light Orange), #b2f2bb (Light Green)Choose ONE unified color for all headers in a diagram
Content BoxestransparentFor content blocks, sub-nodes
Emphasis/Alert#ffc9c9Light pink for warnings, special annotations
Canvas Background#ffffffPure white
Strokes/Text#1e1e1eDark 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: 1 is 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" (append V to parent index)

Seed and versionNonce

  • Use random integers (1000000 ~ 9999999999)
  • Each element needs different seed to avoid visual overlap

5. Generation Steps

  1. Understand Structure: Extract module hierarchy and flow relationships from user description
  2. Plan Layout: Determine (x, y) coordinates for each element
  3. Generate Elements: Create rectangles, text, arrows following templates
  4. Establish Bindings: Ensure boundElements and containerId correspond correctly
  5. Assemble JSON: Put all elements in elements array, output complete JSON
  6. Save File: Save as .excalidraw file (Excalidraw native format)

6. Common Mistakes to Avoid

MistakeCorrect Approach
Rectangle and text IDs not boundRectangle's boundElements includes text ID, text's containerId points to rectangle ID
All elements have same seedUse different random numbers for each element
Arrow points array emptyInclude at least start and end: [[0,0],[dx,dy]]
Text outside rectangleText x,y should be within rectangle bounds (rect x+padding)
roughness set to 0Keep "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 \n separator
  • Estimate text width: Chinese ~20px/char, English ~10px/char, total = chars × width + 10px padding

Reference Examples

See examples/ directory for complete sample diagrams.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.