/excalidraw-kit:excalidraw-masteryfrom Excalidraw
Use whenever the user is creating or editing Excalidraw diagrams or using the Excalidraw library — authoring .excalidraw scene JSON, designing flowchart/architecture/mind-map diagrams that read well, or embedding @excalidraw/excalidraw in React (initialData, exports, Mermaid-to-Excalidraw). Trigger on "make a diagram/flowchart", pasted Excalidraw JSON, or .excalidraw/.excalidrawlib files — even when "Excalidraw" is never named but an editable hand-drawn diagram is meant. For non-Excalidraw vector work use svg-tools.
Ships in Excalidraw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Grounded in the official Excalidraw documentation and the @excalidraw/excalidraw v0.18.1 source (scene format version 2). Design methodology adapted from the community Excalidraw skills by coleam00 and awesome-copilot.
Working knowledge of Excalidraw — the virtual whiteboard for hand-drawn-style diagrams. Use this to author correct .excalidraw files, design diagrams that actually communicate, drive the @excalidraw/excalidraw API from code, and convert Mermaid — grounded in the docs and the source, not training-data guesses.
.excalidraw file is just JSON. A wrapper (type/version/elements/appState/files) around a flat array of elements. You can author it directly — no editor required. See references/file-format.md.references/design-principles.md.startBinding/endBinding and the shape's boundElements. Contained text needs the text's containerId and the shape's boundElements. One-sided links render wrong.fontFamily is a numeric id (5 = Excalifont, the default; 8 = Comic Shanns/code), strokeWidth is 1/2/4 (not 3), roundness: { type: 3 } rounds rectangles. The two most-cited community skills disagree on these — trust references/elements.md, which quotes the source constants.The concepts are shared, but the entry point differs — pick one:
.excalidraw file (the common case) → file-format.md + elements.md + design-principles.md, then the workflow below.design-principles.md.@excalidraw/excalidraw in an app (React component, programmatic scene, export, skeleton API, Mermaid) → developer-api.md.libraries-and-icons.md.Load only the rows the task touches — usually one or two.
| Asking about… | Read |
|---|---|
The .excalidraw file wrapper, appState, files, coordinates, what restore fills | references/file-format.md |
| Element types, shared properties, the exact constants, arrow/text binding, full JSON examples | references/elements.md |
| Designing a diagram that argues: patterns, evidence artifacts, container discipline, color, layout | references/design-principles.md |
| The step-by-step process, section-by-section for big diagrams, validate + render loop, checklist | references/authoring-workflow.md |
Embedding the component, initialData, convertToExcalidrawElements, restore, export, Mermaid | references/developer-api.md |
.excalidrawlib format, splitting a library, inserting cloud/architecture icons | references/libraries-and-icons.md |
| A complete, validated scene to crib from | examples/flowchart-basics.excalidraw, examples/system-architecture.excalidraw |
| Runnable helpers (validate, render, split library, add icon/arrow) | scripts/README.md |
design-principles.md.elements.md. Build large diagrams section by section.python scripts/validate_excalidraw.py scene.excalidraw — fix every ERROR.uv run --project scripts python scripts/render_excalidraw.py scene.excalidraw, Read the PNG, fix defects, repeat (2–4 passes). (--project scripts points uv at the render env in scripts/.) Full loop in authoring-workflow.md.Use convertToExcalidrawElements([...]) — specify only type/x/y (+ label, start/end to bind arrows) and it fills the rest; pass the result to initialData or api.updateScene. See developer-api.md.
parseMermaidToExcalidraw(mermaidText) → { elements, files } (skeletons) → convertToExcalidrawElements → updateScene. The fastest route from a textual spec to an editable diagram. See developer-api.md.
Install @excalidraw/excalidraw + React, import the component and index.css, load it client-only (dynamic import in SSR frameworks), and capture excalidrawAPI to drive it. See developer-api.md.
Download a .excalidrawlib, split it (scripts/split_excalidraw_library.py), then scripts/add_icon_to_diagram.py scene.excalidraw <Icon> <x> <y> — ids are regenerated to avoid collisions. See libraries-and-icons.md.
@excalidraw/[email protected] in its CDN import: esm.sh's ?bundle currently 404s on a transitive import for the unpinned tag and for the latest 0.18.1, while 0.18.0 bundles cleanly. The current npm release is 0.18.1 (the documented API is unchanged). To move the pin, bump it in scripts/render_template.html and re-test the render.restore() fills missing element fields with defaults but cannot invent intent — keep geometry, color, text, and bindings correct yourself, and validate for unique ids and live references.evals/evals.json (opens in a new tab)examples/flowchart-basics.excalidraw (opens in a new tab)examples/system-architecture.excalidraw (opens in a new tab)references/authoring-workflow.md (opens in a new tab)references/design-principles.md (opens in a new tab)references/developer-api.md (opens in a new tab)references/elements.md (opens in a new tab)references/file-format.md (opens in a new tab)references/libraries-and-icons.md (opens in a new tab)scripts/README.md (opens in a new tab)scripts/add_arrow.py (opens in a new tab)scripts/add_icon_to_diagram.py (opens in a new tab)scripts/pyproject.toml (opens in a new tab)scripts/render_excalidraw.py (opens in a new tab)scripts/render_template.html (opens in a new tab)scripts/split_excalidraw_library.py (opens in a new tab)scripts/validate_excalidraw.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
excalidraw-kit@cypherpoet-toolchest is listed by cypherpoet/cypherpoet-toolchest — review the source before installing
npx claudepluginhub cypherpoet/cypherpoet-toolchest --plugin excalidraw-kit