Excalidraw studio

From diegosouzapw/awesome-omni-skills · View interactive version

Excalidraw studio is an AI agent skill from the GitHub repository diegosouzapw/awesome-omni-skills. Excalidraw Studio workflow skill. Use this skill when the user needs 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 architec

How to use this skill

Skill file

Excalidraw Studio

Overview

This public intake copy packages packages/skills-catalog/skills/(tooling)/excalidraw-studio from https://github.com/tech-leads-club/agent-skills into the native Omni Skills editorial shape without hiding its origin.

Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.

This intake keeps the copied upstream files intact and uses metadata.json plus ORIGIN.md as the provenance anchor for review.

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).

Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Templates, Icon Libraries, Validation Checklist, Limitations.

When to Use This Skill

Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.

Operating Table

| Situation | Start here | Why it matters |

| --- | --- | --- |

| First-time use | metadata.json | Confirms repository, branch, commit, and imported path before touching the copied workflow |

| Provenance review | ORIGIN.md | Gives reviewers a plain-language audit trail for the imported source |

| Workflow execution | references/element-types.md | Starts with the smallest copied file that materially changes execution |

| Supporting context | references/excalidraw-schema.md | Adds the next most relevant copied source file without loading the entire package |

| Handoff decision | ## Related Skills | Helps the operator switch to a stronger native skill when the task drifts |

Workflow

This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.

  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)
  5. User Intent - Diagram Type - Keywords
  6. Process flow, steps - Flowchart - "workflow", "process", "steps"
  7. Connections, dependencies - Relationship - "relationship", "connections", "dependencies"

Imported Workflow Notes

Imported: 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 Intent | Diagram Type | Keywords |

| -------------------------- | -------------------- | --------------------------------------------- |

| Process flow, steps | Flowchart | "workflow", "process", "steps" |

| Connections, dependencies | Relationship | "relationship", "connections", "dependencies" |

| Concept hierarchy | Mind Map | "mind map", "concepts", "breakdown" |

| System design | Architecture | "architecture", "system", "components" |

| Data movement | Data Flow (DFD) | "data flow", "data processing" |

| Cross-functional processes | Swimlane | "business process", "swimlane", "actors" |

| Object-oriented design | Class Diagram | "class", "inheritance", "OOP" |

| Interaction sequences | Sequence Diagram | "sequence", "interaction", "messages" |

| Database design | ER Diagram | "database", "entity", "data model" |

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

| Mode | roughness | fontFamily | When to use |

| ---------- | ----------- | ------------ | ---------------------------------------------------- |

| Sketch | 1 | 5 | Default — informal, approachable, Excalidraw-native |

| Clean | 0 | 2 | Executive presentations, formal specs |

| Mixed | zones: 0, shapes: 1 | 5 | Architecture diagrams (structural zones + sketchy shapes) |

Step 3: Extract Structured Information

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

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:

```json

[

{

"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

}

]

```

  1. Arrow labels — Also use boundElements + separate text element with containerId. Never use a label shorthand on arrows:

```json

[

{

"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

}

]

```

  1. Arrow bindings — Use startBinding/endBinding (not start/end). Connected shapes must list the arrow in their boundElements:

```json

{

"id": "shape-1",

"boundElements": [

{ "type": "text", "id": "text-shape-1" },

{ "type": "arrow", "id": "arrow-1" }

]

}

```

```json

{

"id": "arrow-1",

"type": "arrow",

"startBinding": { "elementId": "shape-1", "focus": 0, "gap": 1 },

"endBinding": { "elementId": "shape-2", "focus": 0, "gap": 1 }

}

```

  1. 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.
  1. Positioning — Use grid-aligned coordinates (multiples of 20px when gridSize: 20). Leave 200-300px horizontal gap, 100-150px vertical gap between elements.
  1. Unique IDs — Every element must have a unique id. Use descriptive IDs like "step-1", "decision-valid", "arrow-1-to-2", "text-step-1".
  1. Colors — Use a consistent palette:

| Role | Color | Hex |

|------|-------|-----|

| Primary entities | Light blue | #a5d8ff |

| Process steps | Light green | #b2f2bb |

| Important/Central | Yellow | #ffd43b |

| Warnings/Errors | Light red | #ffc9c9 |

| Secondary | Cyan | #96f2d7 |

| Default stroke | Dark | #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

```

Imported: 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:

| Template | File |

| ---------------- | ------------------------------------------------------ |

| Flowchart | assets/flowchart-template.json |

| Relationship | assets/relationship-template.json |

| Mind Map | assets/mindmap-template.json |

| Data Flow (DFD) | assets/data-flow-diagram-template.json |

| Swimlane | assets/business-flow-swimlane-template.json |

| Class Diagram | assets/class-diagram-template.json |

| Sequence Diagram | assets/sequence-diagram-template.json |

| ER Diagram | assets/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.

Examples

Example 1: Ask for the upstream workflow directly

Use @excalidraw-studio to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.

Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.

Example 2: Ask for a provenance-grounded review

Review @excalidraw-studio against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.

Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.

Example 3: Narrow the copied support files before execution

Use @excalidraw-studio for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.

Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.

Example 4: Build a reviewer packet

Review @excalidraw-studio using the copied upstream files plus provenance, then summarize any gaps before merge.

Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.

Best Practices

Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.

Imported Operating Notes

Imported: Best Practices

Element Count

| Diagram Type | Recommended | Maximum |

| --------------------- | ----------- | ------- |

| Flowchart steps | 3-10 | 15 |

| Relationship entities | 3-8 | 12 |

| Mind map branches | 4-6 | 8 |

| Sub-topics per branch | 2-4 | 6 |

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

Common Mistakes to Avoid

Troubleshooting

Problem: The operator skipped the imported context and answered too generically

Symptoms: The result ignores the upstream workflow in packages/skills-catalog/skills/(tooling)/excalidraw-studio, fails to mention provenance, or does not use any copied source files at all.

Solution: Re-open metadata.json, ORIGIN.md, and the most relevant copied upstream files. Load only the files that materially change the answer, then restate the provenance before continuing.

Problem: The imported workflow feels incomplete during review

Symptoms: Reviewers can see the generated SKILL.md, but they cannot quickly tell which references, examples, or scripts matter for the current task.

Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.

Problem: The task drifted into a different specialization

Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better.

Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.

Imported Troubleshooting Notes

Imported: Troubleshooting

| Issue | Solution |

| ----------------------------- | --------------------------------------------------------------------------------------------- |

| Text not showing in shapes | Use boundElements + separate text element with containerId, originalText, lineHeight |

| Text hidden behind arrows | Move text elements to end of elements array (after all arrows) |

| Arrows don't move with shapes | Use startBinding/endBinding with elementId, focus: 0, gap: 1 |

| Shape not moving with arrows | Add the arrow to the shape's boundElements array |

| Elements overlap | Increase spacing between coordinates |

| Text doesn't fit | Increase shape width or reduce font size |

| Too many elements | Break into multiple diagrams |

| Colors look inconsistent | Define color palette upfront, apply consistently |

Related Skills

Additional Resources

Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.

| Resource family | What it gives the reviewer | Example path |

| --- | --- | --- |

| references | copied reference notes, guides, or background material from upstream | references/element-types.md |

| examples | worked examples or reusable prompts copied from upstream | examples/n/a |

| scripts | upstream helper scripts that change execution or validation | scripts/.gitignore |

| agents | routing or delegation notes that are genuinely part of the imported package | agents/n/a |

| assets | supporting assets or schemas copied from the source package | assets/business-flow-swimlane-template.json |

Imported Reference Notes

Imported: 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:

Imported: Validation Checklist

Before delivering the diagram, verify:

Imported: Limitations
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.