excalidraw-studio

tech-leads-club/agent-skills · updated May 23, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/tech-leads-club/agent-skills --skill excalidraw-studio
0 commentsdiscussion
summary

Generate Excalidraw diagrams from natural language descriptions. Outputs .excalidraw JSON files openable in Excalidraw. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", "generate an Excalidraw file", "draw an ER diagram", "create a sequence diagram", or "make a class diagram". Supports flowcharts, relationship diagrams, mind maps, architecture, DFD, swimlane, class, sequence, and ER diagrams. Can use icon libraries (AWS, GCP, etc.) when set up. Do NOT use for code architecture analysis (use the architecture skills), Mermaid diagram rendering (use mermaid-studio), or non-visual documentation (use docs-writer).

skill.md
name
excalidraw-studio
description
Generate Excalidraw diagrams from natural language descriptions. Outputs .excalidraw JSON files openable in Excalidraw. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", "generate an Excalidraw file", "draw an ER diagram", "create a sequence diagram", or "make a class diagram". Supports flowcharts, relationship diagrams, mind maps, architecture, DFD, swimlane, class, sequence, and ER diagrams. Can use icon libraries (AWS, GCP, etc.) when set up. Do NOT use for code architecture analysis (use the architecture skills), Mermaid diagram rendering (use mermaid-studio), or non-visual documentation (use docs-writer).
license
CC-BY-4.0
metadata
author: Felipe Rodrigues - github.com/felipfr version: 1.0.1

Excalidraw Studio

Generate Excalidraw-format diagrams from natural language descriptions. Outputs .excalidraw JSON files that can be opened directly in Excalidraw (web, VS Code extension, or Obsidian plugin).

Workflow

UNDERSTAND → CHOOSE TYPE → EXTRACT → GENERATE → SAVE

Step 1: Understand the Request

Analyze the user's description to determine:

  1. Diagram type — Use the decision matrix below
  2. Key elements — Entities, steps, concepts, actors
  3. Relationships — Flow direction, connections, hierarchy
  4. Complexity — Number of elements (target: under 20 for clarity)

Step 2: Choose the Diagram Type and Visual Mode

Diagram type:

User IntentDiagram TypeKeywords
Process flow, stepsFlowchart"workflow", "process", "steps"
Connections, dependenciesRelationship"relationship", "connections", "dependencies"
Concept hierarchyMind Map"mind map", "concepts", "breakdown"
System designArchitecture"architecture", "system", "components"
Data movementData Flow (DFD)"data flow", "data processing"
Cross-functional processesSwimlane"business process", "swimlane", "actors"
Object-oriented designClass Diagram"class", "inheritance", "OOP"
Interaction sequencesSequence Diagram"sequence", "interaction", "messages"
Database designER Diagram"database", "entity", "data model"

Visual mode — decide upfront and apply consistently to all elements:

ModeroughnessfontFamilyWhen to use
Sketch15Default — informal, approachable, Excalidraw-native
Clean02Executive presentations, formal specs
Mixedzones: 0, shapes: 15Architecture diagrams (structural zones + sketchy shapes)

Step 3: Extract Structured Information

Extract the key components based on diagram type. For each type, identify:

  • Nodes/entities — What are the boxes/shapes?
  • Connections — What connects to what, and with what label?
  • Hierarchy — What contains what, what comes before what?
  • Decision points — Where does the flow branch?

For detailed extraction guidelines per diagram type, read references/element-types.md.

Step 4: Generate the Excalidraw JSON

CRITICAL: Read references/excalidraw-schema.md before generating your first diagram. It contains the correct element format, text container model, and binding system.

Key rules for generation:

  1. Text inside shapes — Use boundElements on the shape and a separate text element with containerId. Never use a label shorthand:

    [
      {
        "id": "step-1",
        "type": "rectangle",
        "x": 100, "y": 100, "width": 200, "height": 80,
        "boundElements": [{ "type": "text", "id": "text-step-1" }]
      },
      {
        "id": "text-step-1",
        "type": "text",
        "x": 130, "y": 128, "width": 140, "height": 24,
        "text": "My Step", "originalText": "My Step",
        "fontSize": 20, "fontFamily": 5,
        "textAlign": "center", "verticalAlign": "middle",
        "containerId": "step-1", "lineHeight": 1.25, "roundness": null
      }
    ]
    
  2. Arrow labels — Also use boundElements + separate text element with containerId. Never use a label shorthand on arrows:

    [
      {
        "id": "arrow-1",
        "type": "arrow",
        "x": 100, "y": 150,
        "points": [[0, 0], [200, 0]],
        "boundElements": [{ "type": "text", "id": "text-arrow-1" }]
      },
      {
        "id": "text-arrow-1",
        "type": "text",
        "x": 160, "y": 132, "width": 80, "height": 18,
        "text": "sends data", "originalText": "sends data",
        "fontSize": 14, "fontFamily": 5,
        "textAlign": "center", "verticalAlign": "middle",
        "containerId": "arrow-1", "lineHeight": 1.25, "roundness": null
      }
    ]
    
  3. Arrow bindings — Use startBinding/endBinding (not start/end). Connected shapes must list the arrow in their boundElements:

    {
      "id": "shape-1",
      "boundElements": [
        { "type": "text", "id": "text-shape-1" },
        { "type": "arrow", "id": "arrow-1" }
      ]
    }
    
    {
      "id": "arrow-1",
      "type": "arrow",
      "startBinding": { "elementId": "shape-1", "focus": 0, "gap": 1 },
      "endBinding": { "elementId": "shape-2", "focus": 0, "gap": 1 }
    }
    
  4. Element order for z-index — Always declare shapes first, arrows second, text elements last. This guarantees text renders on top and is never obscured by arrows or other shapes.

  5. Positioning — Use grid-aligned coordinates (multiples of 20px when gridSize: 20). Leave 200-300px horizontal gap, 100-150px vertical gap between elements.

  6. Unique IDs — Every element must have a unique id. Use descriptive IDs like "step-1", "decision-valid", "arrow-1-to-2", "text-step-1".

  7. Colors — Use a consistent palette:

    RoleColorHex
    Primary entitiesLight blue#a5d8ff
    Process stepsLight green#b2f2bb
    Important/CentralYellow#ffd43b
    Warnings/ErrorsLight red#ffc9c9
    SecondaryCyan#96f2d7
    Default strokeDark#1e1e1e

Step 5: Save and Present

  1. Save as <descriptive-name>.excalidraw

  2. Provide a summary:

    Created: user-workflow.excalidraw
    Type: Flowchart
    Elements: 7 shapes, 6 arrows, 1 title
    Total: 14 elements
    
    To view:
    1. Visit https://excalidraw.com → Open → drag and drop the file
    2. Or use the Excalidraw VS Code extension
    3. Or open in Obsidian with the Excalidraw plugin
    

Templates

Pre-built templates are available in assets/ for quick starting points. Use these when the diagram type matches — they provide correct structure and styling:

TemplateFile
Flowchartassets/flowchart-template.json
Relationshipassets/relationship-template.json
Mind Mapassets/mindmap-template.json
Data Flow (DFD)assets/data-flow-diagram-template.json
Swimlaneassets/business-flow-swimlane-template.json
Class Diagramassets/class-diagram-template.json
Sequence Diagramassets/sequence-diagram-template.json
ER Diagramassets/er-diagram-template.json

Read a template when creating that diagram type for the first time. Use its structure as a base, then modify elements to match the user's request.

Icon Libraries

For professional architecture diagrams with service icons (AWS, GCP, Azure, etc.), icon libraries can be set up. Read references/icon-libraries.md when:

  • User requests an AWS/cloud architecture diagram
  • User mentions wanting specific service icons
  • You need to check if icon libraries are available

Best Practices

Element Count

Diagram TypeRecommendedMaximum
Flowchart steps3-1015
Relationship entities3-812
Mind map branches4-68
Sub-topics per branch2-46

If the user's request exceeds maximum, suggest breaking into multiple diagrams:

"Your request includes 15 components. For clarity, I recommend: (1) High-level architecture diagram with 6 main components, (2) Detailed sub-diagrams for each subsystem. Want me to start with the high-level view?"

Layout

  • Flow direction: Left-to-right for processes, top-to-bottom for hierarchies
  • Spacing: 200-300px horizontal, 100-150px vertical between elements
  • Grid alignment: Position on multiples of 20px for clean alignment
  • Margins: Minimum 50px from canvas edge
  • Text sizing: 28-36px titles, 18-22px labels, 14-16px annotations
  • Font: Use fontFamily: 5 (Excalifont) for hand-drawn consistency. Fallback to 1 (Virgil) if 5 is not supported.
  • Background zones: For architecture diagrams, add semi-transparent dashed zone rectangles (opacity: 35, strokeStyle: "dashed", roughness: 0) as the first elements in the array to create visual grouping regions. See references/excalidraw-schema.md → Background Zones.
  • Element order: zones first → shapes → arrows → text elements (ensures correct z-index and text always renders on top)

Common Mistakes to Avoid

  • ❌ Using label: { text: "..." } shorthand on shapes or arrows — not supported by the Excalidraw parser
  • ❌ Putting text directly on shape elements without containerId
  • ❌ Using start/end for arrow bindings — use startBinding/endBinding with elementId/focus/gap
  • ❌ Forgetting to add arrows to their connected shapes' boundElements arrays
  • ❌ Omitting originalText, lineHeight, autoResize, or backgroundColor: "transparent" from text elements inside containers
  • ❌ Omitting required base properties (angle, strokeStyle, opacity, groupIds, frameId, index, isDeleted, seed, version, versionNonce, updated, link, locked) — elements will not render
  • ❌ Missing "files": {} at the top level of the JSON
  • ❌ Using roundness: { "type": 3 } on ellipses — ellipses must use roundness: null
  • ❌ Missing lastCommittedPoint, startArrowhead, endArrowhead on arrows
  • ❌ Declaring text elements before arrows — text renders underneath and gets obscured
  • ❌ Floating arrows without bindings (won't move with shapes)
  • ❌ Overlapping elements (increase spacing)
  • ❌ Inconsistent color usage (define palette upfront)
  • ❌ Too many elements on one diagram (break into sub-diagrams)

Validation Checklist

Before delivering the diagram, verify:

  • All elements have unique IDs
  • Every element has ALL required base properties: angle, strokeStyle, opacity, groupIds, frameId, index, isDeleted, link, locked, seed, version, versionNonce, updated
  • index values are assigned in order ("a0", "a1", …) with text elements getting higher values than shapes/arrows
  • Top-level JSON includes "files": {}
  • Shapes with text use boundElements + separate text element with containerId
  • Text elements inside containers have containerId, originalText, lineHeight: 1.25, autoResize: true, roundness: null, backgroundColor: "transparent"
  • Arrows use startBinding/endBinding (with elementId, focus, gap) when connecting shapes, plus lastCommittedPoint: null, startArrowhead: null, endArrowhead: "arrow"
  • Connected shapes list the arrow in their boundElements arrays
  • Element order: shapes → arrows → text elements (text always on top)
  • Ellipses use roundness: null (not { "type": 3 })
  • Coordinates prevent overlapping (check spacing)
  • Text is readable (font size 16+)
  • Colors follow consistent scheme
  • File is valid JSON
  • Element count is reasonable (<20 for clarity)

Troubleshooting

IssueSolution
Text not showing in shapesUse boundElements + separate text element with containerId, originalText, lineHeight
Text hidden behind arrowsMove text elements to end of elements array (after all arrows)
Arrows don't move with shapesUse startBinding/endBinding with elementId, focus: 0, gap: 1
Shape not moving with arrowsAdd the arrow to the shape's boundElements array
Elements overlapIncrease spacing between coordinates
Text doesn't fitIncrease shape width or reduce font size
Too many elementsBreak into multiple diagrams
Colors look inconsistentDefine color palette upfront, apply consistently

Limitations

  • Complex curves are simplified to straight/basic curved lines
  • Hand-drawn roughness is set to default (1)
  • No embedded images in auto-generation (use icon libraries for service icons)
  • Maximum recommended: 20 elements per diagram for clarity
  • No automatic collision detection — use spacing guidelines
how to use excalidraw-studio

How to use excalidraw-studio on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add excalidraw-studio
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/tech-leads-club/agent-skills --skill excalidraw-studio

The skills CLI fetches excalidraw-studio from GitHub repository tech-leads-club/agent-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/excalidraw-studio

Reload or restart Cursor to activate excalidraw-studio. Access the skill through slash commands (e.g., /excalidraw-studio) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.559 reviews
  • Amina Mensah· Dec 28, 2024

    excalidraw-studio reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Fatima Torres· Dec 24, 2024

    Solid pick for teams standardizing on skills: excalidraw-studio is focused, and the summary matches what you get after install.

  • Dhruvi Jain· Dec 4, 2024

    I recommend excalidraw-studio for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Amina Abbas· Dec 4, 2024

    We added excalidraw-studio from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Oshnikdeep· Nov 23, 2024

    Solid pick for teams standardizing on skills: excalidraw-studio is focused, and the summary matches what you get after install.

  • Tariq Farah· Nov 23, 2024

    excalidraw-studio fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Isabella Liu· Nov 19, 2024

    excalidraw-studio has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Liam Yang· Nov 15, 2024

    I recommend excalidraw-studio for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Rahul Santra· Nov 3, 2024

    Useful defaults in excalidraw-studio — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Pratham Ware· Oct 22, 2024

    Registry listing for excalidraw-studio matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 59

1 / 6