excalidraw
Installation
SKILL.md
Excalidraw Diagram Generator
Generate hand-drawn Excalidraw diagrams and save them as .excalidraw files.
Workflow
- Read
colors.mdfrom this skill directory to get the current color theme - Decide if the diagram benefits from icons (see Icons section below)
- If yes, read
icons.mdfrom this skill directory for icon recipes - Plan the diagram: elements, layout, colors, labels, arrows, and icon placements
- Spawn a subagent (Task tool,
subagent_type: "general-purpose") with:- The full element format reference below
- The colors from
colors.md - Icon recipes from
icons.md(if applicable) - A detailed description of the diagram to draw (element positions, labels, connections, colors, icon placements)
- The output file path (ask the user or default to
diagram.excalidrawin the current directory)
- The subagent produces the JSON elements array and writes the
.excalidrawfile - Tell the user the output path — they can open it at excalidraw.com or in VS Code with the Excalidraw extension