agentleFS
ericgandradeericgandrade/claude-superskills/skills/excalidraw-diagram/SKILL.md

excalidraw-diagram

Skill1 starsChanged 8 days agoMITView on GitHub

This skill should be used when the user needs to create a diagram using Excalidraw — a hand-drawn style whiteboard tool. Use when the user wants a sketch-style architecture diagram, system design, concept map, user flow, or any visual that benefits from the informal, freehand aesthetic of Excalidraw. Outputs an embedded Excalidraw file ready for use in Obsidian or standalone.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use mermaid-visualizer, obsidian-canvas-creator and 9 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.
  • BCS1037Skill

    mermaid-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 8 projects that use this

  • BCS1037Skill

    obsidian-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

  • MicrosoftSkill

    rvap-brand

    Applies the RVAP (Real Value Acceleration Program) brand identity — colors, fonts, logo, and layout patterns — consistently to any GitHub Pages website. Use this skill whenever someone asks to brand, rebrand, apply RVAP/RVAS visual identity, make a site look RVAP, match the brand kit, or transform a GitHub Pages site's look and feel to match RVAP. Also trigger when the user shares an HTML/CSS/MkDocs site and says it should look consistent with other RVAP/RVAS materials, even if they don't explicitly say "brand".

    Also in 3 projects that use this

  • MicrosoftSkill

    gestures

    Build drag, swipe, and sheet interactions that track the finger 1:1 and stay interruptible. Use when building or fixing anything the user drags, swipes, flings, holds, or dismisses with a gesture — drawers, sheets, swipe-to-dismiss toasts and cards, drag-to-reorder, pull-to-refresh, hold-to-confirm — or when a gesture feels laggy, disconnected from the finger, jumps on release, or can't be caught mid-animation. Triggers on — gesture, drag, swipe, fling, sheet, snap points, Vaul, Motion drag props, rubber-band, pull to refresh, hold to delete, touch-action, "doesn't follow my finger", "jumps when I let go", "can't grab it mid-animation".

    Also in 3 projects that use this

  • wangzhuofengSkill

    obsidian-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 7 projects that use this

  • wangzhuofengSkill

    json-canvas

    Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.

    Also in 5 projects that use this

  • +4 more from microsoft

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 13 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 47 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT use this skill when:

    line 27
  2. Distinctive:

    If the user's request is vague ("draw our system"), ask one clarifying question:

    line 75
  3. Distinctive:

    Concept maps: Place the central concept in the middle.

    line 84
  4. Distinctive:

    User flows: Use horizontal layout. Actors as column headers at the top.

    line 85
  5. Distinctive:

    C4 sketches: Use nested rectangles. Outer box = system, inner boxes = containers, innermost = components.

    line 86
  6. Distinctive:

    After the output, explain how to use it:

    line 192
  7. Distinctive:

    Every arrow must have a label if the relationship is not obvious.

    line 202
  8. Distinctive:

    Avoid crossing arrows where possible — reroute elements to minimize crossings.

    line 203
  9. Distinctive:

    Use the color scheme consistently: blue = frontend, green = backend, orange = external.

    line 206
  10. Distinctive:

    Add a legend box at the bottom right when using 3+ colors.

    line 207
  11. Very specific:

    Use fontFamily: 1 (the hand-drawn font) for titles and labels.

    line 210
  12. Distinctive:

    Keep label text short: 3-5 words maximum per element.

    line 211
  13. Very specific:

    Use ALL_CAPS or Title Case for component names, sentence case for descriptions.

    line 212
  14. Distinctive:

    Use element IDs that are duplicated — every ID must be unique

    line 223
  15. Distinctive:

    Use more than 20 elements without suggesting the diagram be split

    line 226
  16. Very specific:

    Use the roughness: 1 property for the hand-drawn aesthetic

    line 230

“Common” is measured: kept by at least 6 in 10 of the 47 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.

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

Purpose

This skill creates diagrams using the Excalidraw format — a JSON-based drawing format rendered by the Excalidraw library and its integrations. The output has a distinctive hand-drawn, whiteboard aesthetic that is ideal for architecture sketches, concept maps, brainstorming visuals, and informal system diagrams.

Unlike Mermaid which produces precise, flow-based diagrams from DSL text, Excalidraw uses geometric primitives (rectangles, ellipses, arrows, text, lines) laid out on a freeform canvas. The hand-drawn style makes it suitable for early-stage thinking, workshop facilitation, and documentation where the informal look communicates "this is a sketch, not a specification."

In Obsidian, Excalidraw files are supported via the Excalidraw plugin by Zsolt Viczian, which renders .excalidraw files natively and allows embedding them in notes.

When to Use

Invoke this skill when:

  • The user explicitly asks for an Excalidraw diagram
  • The user wants a "sketch-style" or "whiteboard" diagram
  • The user says "draw this informally" or "make it look hand-drawn"
  • The user needs a system architecture or C4-style diagram with an informal aesthetic
  • The user wants a concept map or mind map with free positioning (not the rigid Mermaid mindmap syntax)
  • The user is working in Obsidian and wants to embed a whiteboard-style drawing
  • The user wants a diagram exported as .excalidraw file or embedded in a Markdown note

Do NOT use this skill when:

  • The user wants precise, structured flowcharts with clear graph routing — use mermaid-diagram instead
  • The user wants a structured knowledge graph layout in Obsidian — use obsidian-canvas instead
  • The user asks for a "professional" or "polished" diagram (Excalidraw's hand-drawn look is intentionally informal)
  • The user wants to embed code blocks or data-driven diagrams

Excalidraw Output Formats

FormatUse Case
Obsidian embed (.md with JSON)Embedded in an Obsidian note, edited with the Excalidraw plugin
Standalone .excalidraw fileOpened directly in Excalidraw app or excalidraw.com
Animated SVGExcalidraw plugin "export animated" feature — for presentations

Diagram Types

Systems architecture

Boxes representing services/components connected with labeled arrows. Uses color to group related components (e.g., blue for frontend, green for backend, orange for external).

Concept map / mind map

Central concept with radiating branches. Each branch is a related idea. Uses curved arrows and freeform text nodes.

User flow / journey

Horizontal swim lanes for actors. Steps flow left to right. Decision points use diamond shapes.

C4-style sketch

Four levels: System Context → Container → Component → Code. Each level drawn as nested boxes with arrows for interactions.

Sequence sketch

Actors as columns, time flowing downward. Message arrows between columns with labels.

Workflow

Step 1: Identify the Diagram Type and Content

From the user's request, determine:

  1. Diagram type from the list above
  2. Main components — the nodes/entities in the diagram
  3. Relationships — how components connect (and the labels on connections)
  4. Layout preference — horizontal flow, vertical hierarchy, radial, or freeform

If the user's request is vague ("draw our system"), ask one clarifying question:

  • "What are the main components to include?"
  • "Should this be a sketch of the overall architecture, or a sequence of interactions?"

Step 2: Design the Layout

Plan the component positions before writing the Excalidraw JSON:

  • Architecture diagrams: Group related components into clusters. Place external systems at the edges. Group by layer (frontend → backend → data → external).
  • Concept maps: Place the central concept in the middle. Branch outward with related concepts at a radius of 200-300 units.
  • User flows: Use horizontal layout. Actors as column headers at the top. Steps flow left to right.
  • C4 sketches: Use nested rectangles. Outer box = system, inner boxes = containers, innermost = components.

Color guidelines:

  • Blue (#1971c2 / fill #d0ebff) — user-facing or frontend components
  • Green (#2f9e44 / fill #d3f9d8) — backend or processing components
  • Orange (#e8590c / fill #ffe8cc) — external systems or third-party services
  • Purple (#862e9c / fill #f3d9fa) — data storage or databases
  • Gray (#495057 / fill #f1f3f5) — infrastructure or platform components

Step 3: Generate the Excalidraw JSON

Excalidraw diagrams are JSON objects with an elements array. Each element is a shape with position, size, style, and content properties.

Element schema:

{
  "type": "rectangle",
  "id": "unique-id",
  "x": 100,
  "y": 200,
  "width": 160,
  "height": 80,
  "strokeColor": "#1971c2",
  "backgroundColor": "#d0ebff",
  "fillStyle": "hachure",
  "strokeWidth": 2,
  "roughness": 1,
  "opacity": 100,
  "text": "Component Name",
  "fontSize": 16,
  "fontFamily": 1,
  "textAlign": "center",
  "verticalAlign": "middle"
}

Shape types:

  • rectangle — boxes for components and systems
  • ellipse — circles/ovals for actors or rounded shapes
  • diamond — decision points
  • arrow — directed connections between components
  • line — undirected connections
  • text — standalone labels

Arrow element:

{
  "type": "arrow",
  "id": "arrow-1",
  "x": 260,
  "y": 240,
  "width": 140,
  "height": 0,
  "points": [[0, 0], [140, 0]],
  "startBinding": {"elementId": "source-id", "gap": 5, "focus": 0},
  "endBinding": {"elementId": "target-id", "gap": 5, "focus": 0},
  "strokeColor": "#343a40",
  "strokeWidth": 2,
  "roughness": 1
}

Full Excalidraw file structure:

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [...],
  "appState": {
    "gridSize": null,
    "viewBackgroundColor": "#ffffff"
  }
}

Step 4: Output the Diagram

For standalone .excalidraw file output: Output the complete JSON block in a fenced code block labeled json. Instruct the user to save it as DiagramName.excalidraw.

For Obsidian embed: Wrap the JSON in an Obsidian Excalidraw note format — a Markdown file with an excalidraw-plugin: parsed frontmatter and the JSON embedded in a code fence:

---
excalidraw-plugin: parsed
tags:
  - excalidraw
---

```json
{
  "type": "excalidraw",
  ...
}
```

Save as DiagramName.excalidraw.md in the vault. Embed in any note with ![[DiagramName.excalidraw.md]].

For animated SVG: Note that animated export requires the Obsidian Excalidraw plugin's export command — it cannot be generated as pure JSON. Guide the user through: Design view → ⋮ menu → Export as animated SVG.

Step 5: Provide Rendering Instructions

After the output, explain how to use it:

  • Obsidian: Install the Excalidraw plugin by Zsolt Viczian. Save the file with .excalidraw.md extension. Open in Obsidian to see the rendered diagram. Embed with ![[filename.excalidraw.md]].
  • Excalidraw.com: Go to excalidraw.com → ☰ Open → paste JSON.
  • VS Code: Install the "Excalidraw" VS Code extension to render .excalidraw files.

Design Principles

Clarity over complexity:

  • Limit to 10-15 elements per diagram. Larger diagrams should be split.
  • Every arrow must have a label if the relationship is not obvious.
  • Avoid crossing arrows where possible — reroute elements to minimize crossings.

Grouping by color:

  • Use the color scheme consistently: blue = frontend, green = backend, orange = external.
  • Add a legend box at the bottom right when using 3+ colors.

Typography:

  • Use fontFamily: 1 (the hand-drawn font) for titles and labels.
  • Keep label text short: 3-5 words maximum per element.
  • Use ALL_CAPS or Title Case for component names, sentence case for descriptions.

Spacing:

  • Maintain at least 40px gap between elements to prevent crowding.
  • Grid spacing of 20px keeps elements visually aligned without rigid structure.
  • Arrow labels should be positioned midpoint between source and target.

Critical Rules

NEVER:

  • Output partial JSON that is not valid Excalidraw format
  • Use element IDs that are duplicated — every ID must be unique
  • Reference an element in a binding that does not exist in the elements array
  • Include CJK characters, non-ASCII text, or language-specific content in labels
  • Use more than 20 elements without suggesting the diagram be split
  • Output a Mermaid block when the user asked for Excalidraw

ALWAYS:

  • Use the roughness: 1 property for the hand-drawn aesthetic
  • Assign unique, descriptive IDs (e.g., frontend-ui, api-gateway, user-db)
  • Include a label on every arrow
  • Output valid JSON that can be pasted directly into Excalidraw or saved as a file
  • Note which Obsidian plugin is required (Excalidraw by Zsolt Viczian)

Example Usage

Example 1: Three-tier web architecture

User: "Draw a simple three-tier web architecture: browser, API server, and database."

Produces: An Excalidraw JSON with three boxes (Browser in blue, API Server in green, Database in purple) connected by two labeled arrows (HTTP Request/Response, SQL Query/Result). Grid layout, left to right.


Example 2: Concept map for product strategy

User: "Create a concept map where Product Strategy is the center, connected to: Vision, ICP, Positioning, Pricing, GTM, and Roadmap."

Produces: A radial layout with "Product Strategy" as a central ellipse and six boxes arranged around it, each connected with an arrow. Consistent spacing (~250px radius), short labels.


Example 3: User registration flow

User: "Sketch a user registration flow: User fills form → Validate email → Check if email exists → (Yes) Show error → (No) Hash password → Save to DB → Send confirmation."

Produces: A left-to-right flowchart with rectangles for process steps, a diamond for the decision point, two branches (Yes to error box, No continuing the flow), and end at "Send confirmation."


Example 4: C4 Context diagram

User: "Draw a C4 context diagram for our SaaS application. Users interact with our Web App. The Web App calls our Payment Provider and sends emails via our Email Service."

Produces: A C4-style sketch with User as a person icon (ellipse), Web App as the central rectangle, and two external system boxes (Payment Provider, Email Service) at the right edge. Labeled arrows for each interaction.


Example 5: Team structure org chart

User: "Quick org chart sketch: CPO at top, under CPO are PM Lead and Design Lead, under PM Lead are three PMs, under Design Lead are two Designers."

Produces: A top-down tree with seven total boxes, connected by hierarchical lines, using gray for the org structure coloring and clear label names.

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.