/arkitect:arkitect-excalidrawfrom arkitect
Creates and edits editable Excalidraw (.excalidraw) diagrams for system architectures, component/block diagrams, data pipelines, agentic/LLM systems, network views, and decision flows in a hand-drawn style with custom product logo icons.
Ships in arkitect. 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.
Produces native, editable .excalidraw JSON — never a flattened image, never
Mermaid as the final artifact. Any cloud, any stack. The builder applies the
house style, binds the arrows and embeds the icons; you write a small JSON spec.
scripts/ and every path below are in
${CLAUDE_PLUGIN_ROOT}/skills/arkitect-excalidraw/; run commands from the project,
never cd there.
Read only what the task needs.
| Task | Read |
|---|---|
| Draw a new scene | this file, the one pattern you pick in step 2, and one worked example (step 4) |
Edit an existing .excalidraw | references/editing.md |
| An item the search cannot find, an unnamed library item, a logo, a public library | references/icons.md |
| Rendering fails, a README image, or the real app | references/rendering.md |
| Hand-written scene JSON | references/excalidraw-format.md |
| A deliberate deviation from the house style, or its evidence | references/style-guide.md |
If ~/.arkitect/excalidraw/style-notes.md or patterns.md exist
($ARKITECT_HOME/excalidraw/ when set), read them too: they are what
/learn-excalidraw-style found in the user's own scenes, and they win over the
shipped guide. Say so in the report.
The builder already draws the corpus's habits: elbow arrows at stroke width 4, edge captions beside the line, dashed-rectangle regions, captions below shapes. Do not undo them.
Decide whether to ask — see Interview first, below. Most requests are drawn straight away, with the assumptions stated.
Pick a pattern and state assumptions. Choose the nearest, then print
only its section, node scripts/pattern.mjs N:
1 pipeline · 2 scope or trust box · 3 tiers · 4 request with a decision ·
5 current vs proposed · 6 external systems · 7 one service's inside ·
8 agentic/LLM · 9 ordered protocol · 10 legend · 11 sources into one store ·
12 tables inside a product · 13 big phases (CI/CD) · 14 one tool, many
outputs · 15 naming convention · 16 two diagrams, one canvas · 17 unwired
components. Prefer 11–17, the corpus's own shapes, when the system fits.
Spec fragments: assets/templates/patterns.json. Write every assumption
down for the report and, where it matters, a note on the canvas.
An assumption fills a gap the user left open; it never overrides a stated
fact. Never add, remove or renumber a component they specified: if the
stated count draws awkwardly, draw the stated count and say the layout is
tight.
Resolve icons — bundled libraries first.
node scripts/find-icon.mjs "postgres" --compact
Put the ref from a match in the spec: "icon": "data-platform:9". A node
that only names its component resolves by product name alone; the search says
what it would draw ("draws") or why it gets a placeholder. Shared packs fill
gaps ("icon": "drawio:databases/postgresql"). Unnamed library items:
references/icons.md. Otherwise use a placeholder and move on:
kind: "placeholder", or an unresolvable icon, draws a dotted ? slot
named under placeholders in the build report. Do not fetch a logo unless
asked, and never use one product's mark for another.
Build from a spec. First see which style this install draws with:
node scripts/build-diagram.mjs --print-style
node scripts/build-diagram.mjs my-spec.json --out "path/to/architecture.excalidraw"
Write the spec next to the output file, never inside this skill's folder.
With "source": "override" (the user's own conventions), pick each edge
kind by its meaning there and keep the tokens it changed. A non-empty
style.errors means the override was ignored: tell the user. Never pass
--defaults for a user's scene.
Look at one worked example's PNG before writing a spec, then its spec:
assets/templates/starter-architecture.spec.json for every node and
connector kind, or assets/templates/aws-data-platform.spec.json for a
large real answer (regions per phase, sublabels, an error lane, assumptions
on the canvas, fractional col/row).
The build writes nothing and lists every problem (exit 1) when an edge or
parent names something missing or a number is not one (a string col, a
size ≤ 0). Edges connect nodes, not boundaries. Fix the spec; never drop the
edge. A missing col or row is 0. The build then validates the scene and
ends its report with todo, one line per thing to act on — an unknown
kind, a dropped field (a node's style above all), a placeholder, an
edge through a node (move that node), a validate warning. Fix the spec or
report the line; a dropped field never applied. Hand-written JSON only for
what the spec cannot express: references/editing.md.
Never overwrite blind. The builder backs up an existing file, keeping the
oldest plus the newest five (--keep-backups N, 0 keeps all). Every other
edit goes analyze → back up → edit → validate, and the backup is
node scripts/backup.mjs "<file>" before the first write.
Validate.
node scripts/validate-excalidraw.mjs "path/to/architecture.excalidraw"
Errors block delivery. Warnings are judgement calls: check each one against the render.
Render and look at it.
node scripts/render-excalidraw.mjs "path/to/architecture.excalidraw" --out-dir .analysis/renders --width 2200
Needs a local Edge, Chrome or Chromium; with none it exits 1 — fall back to
--format svg, dropping --width, which is PNG-only. Retry with
--no-sandbox only when the error names it. Read the PNG back and
iterate; a scene that validates but reads badly is not done. The PNG is
geometry-faithful, not font-faithful: judge layout from it, not typography;
an SVG is markup you read, not a picture you see, and settles neither. First
renders nearly always need, in the spec:
"route": "avoid"; two on one line: "straight".Open it in the real app when the user wants to, and before claiming it
looks right in Excalidraw itself: references/rendering.md.
Report. Write all seven headings out first, in order, then fill them in. Each one appears even where it is a single line:
File · Engine · Assumptions · Icons · Validation · Render · Deviations
Engine only when the user named none: what made it Excalidraw rather than
Draw.io — the audience, the sketch style, the README; never a generic virtue.
Assumptions: every one, asked or not, and any product the user did not
name. Icons: each ref and its source — bundled library, shared pack, a
logo you built; every placeholder. Render: you looked at the PNG, or it
failed and why; never "rendered" for a render that failed, and never a
picture you did not see. With only an SVG, say so — spacing and crossings are
then the validator's findings, quoted as its. Validation: node ${CLAUDE_PLUGIN_ROOT}/bin/arkitect.mjs report --draft <file> --spec <spec>
drafts it; each defect seen and left, by page.
Deviations from the guide.
Offer nothing Arkitect cannot do: there is no PowerPoint or PDF export.
Ask only what would change the drawing, and only someone who can answer. A request that names its components and flows is drawn, not questioned — even with a product or a source left unnamed: pick the common choice, draw, and list it under Assumptions.
A diagram is a claim about someone's system; a wrong claim drawn well gets believed. Ask one question at a time, each with your recommended answer and a one-line reason, in dependency order, feeding answers forward. Never ask about styling — that is this skill's job. Skip a branch the request already answers or that cannot change the drawing:
Stop when the remaining unknowns could not change the drawing: a three-box flow needs two questions, a review-board architecture needs the ladder. Write the answers down; they are the report's assumptions and the canvas note.
references/editing.md says how to work on one..excalidraw JSON is the deliverable; images embed in the scene's
files, never linked.assets/icons/README.md (opens in a new tab)assets/libraries/README.md (opens in a new tab)assets/libraries/bundled/ATTRIBUTION.md (opens in a new tab)assets/libraries/bundled/architecture-diagram-components.excalidrawlib (opens in a new tab)assets/libraries/bundled/artem-s-icons.excalidrawlib (opens in a new tab)assets/libraries/bundled/authors.json (opens in a new tab)assets/libraries/bundled/awesome-icons.excalidrawlib (opens in a new tab)assets/libraries/bundled/aws-serverless-icons-v2.excalidrawlib (opens in a new tab)assets/libraries/bundled/aws-serverless.excalidrawlib (opens in a new tab)assets/libraries/bundled/azure-cloud-services.excalidrawlib (opens in a new tab)assets/libraries/bundled/azure-general.excalidrawlib (opens in a new tab)assets/libraries/bundled/azure-network.excalidrawlib (opens in a new tab)assets/libraries/bundled/cloud-design-patterns.excalidrawlib (opens in a new tab)assets/libraries/bundled/cloud.excalidrawlib (opens in a new tab)assets/libraries/bundled/data-platform.excalidrawlib (opens in a new tab)assets/libraries/bundled/data-science.excalidrawlib (opens in a new tab)assets/libraries/bundled/data-viz.excalidrawlib (opens in a new tab)assets/libraries/bundled/db-eng.excalidrawlib (opens in a new tab)assets/libraries/bundled/dev-ops.excalidrawlib (opens in a new tab)assets/libraries/bundled/drwnio.excalidrawlib (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/apply-drawio-styleChoose which conventions learn-drawio-style found in the user's own .drawio diagrams this install should draw with - what an edge style means, connector colours, font sizes, text colour, corner rounding - and write them into the per-install style override that build-diagram.mjs merges in. User-invoked only./apply-excalidraw-styleChoose which conventions learn-excalidraw-style found in the user's own .excalidraw scenes this install should draw with - what a connector style means, connector colour, width and routing, shape stroke width, fill style, corner rounding, boundary strokes - and write them into the per-install style override that build-diagram.mjs merges in. User-invoked only./arkitect-drawionpx claudepluginhub mouadja02/arkitect --plugin arkitectOther plugins' skills for the same job