/arkitect:learn-excalidraw-stylefrom arkitect
Teaches the arkitect-excalidraw skill from user-designated .excalidraw files, building a personal style record outside the plugin. User-invoked only; never auto-activates.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Folds user-designated .excalidraw files into this install's own style
knowledge. It only ever runs when the user asks for it — never learn from a
scene just because you happened to read one.
Plugin root: ${CLAUDE_PLUGIN_ROOT}. Work from
${CLAUDE_PLUGIN_ROOT}/skills/arkitect-excalidraw.
The shipped house style already carries real evidence: version 1, 9 scenes,
3,270 elements, learned 2026-09-08. (Before that first learning run,
source-analysis.json was version 0 with an empty corpus and every convention
marked default — that state shipped in older releases and would reappear if
the file were deleted, but it is not what a fresh install of this repository has
today.) This skill does not change that record. It builds the user's own,
and a further run merges into theirs.
Where it goes. Everything this skill writes lives in the user's store,
~/.arkitect/excalidraw/ ($ARKITECT_HOME/excalidraw/ when that is set) —
outside the plugin, so a plugin update or reinstall never wipes it:
| file | what |
|---|---|
source-analysis.json | the evidence record, built from the designated scenes only |
sources.json | the designated paths, written by build-knowledge.mjs |
findings.json | what the corpus says, for /apply-excalidraw-style |
style-notes.md | prose: only where these scenes differ from the shipped guide |
patterns.md | prose: recurring layouts the shipped catalog lacks |
renders/ | scratch renders of the examples |
The drawing skill reads style-notes.md and patterns.md after the shipped
guides, and they win where the two conflict. What the generator draws changes
only when the user runs /apply-excalidraw-style and chooses among the findings
recorded here.
build-knowledge.mjs
enforces this for the record — structural statistics, style-token counts and
digests only.references/, not a script, not a
committed example. That is maintenance, below./apply-excalidraw-style and chooses.--merge so the record keeps its version
history instead of being replaced.Earlier designations. If the store has no sources.json but
${CLAUDE_PLUGIN_ROOT}/.analysis/sources.local.json exists, it lists scenes
designated before the store existed. Offer to include its excalidraw paths
in this run. Only copy the paths — never move or delete that file: in a git
checkout it is also the test suite's corpus.
Confirm each path exists and record hashes:
sha256sum "<example.excalidraw>"
If the files live under OneDrive they may be cloud-only placeholders, and
every read fails with "the cloud file provider is not running" or "the
cloud operation failed" — the bytes are not on the disk. Check with
Get-ChildItem … | Select Attributes: bit 0x400000 set means cloud-only.
Start OneDrive.exe, then open each file once to pull it down; retry a few
times, since the provider refuses requests while it is still waking up.
Summarize each one without pulling the JSON into context:
node scripts/analyze-excalidraw.mjs "<example.excalidraw>" --out /tmp/new-example.json
A scene with embedded images is megabytes of base64; reading one whole would blow up the context and put diagram text into it.
Look at it. Render and inspect the image before drawing any conclusion about layout — the numbers say how far apart things are, not whether it reads well:
node scripts/render-excalidraw.mjs "<example.excalidraw>" --out-dir "$HOME/.arkitect/excalidraw/renders"
Rebuild the record over the whole corpus — every designated scene, including
the ones already in sources.json:
node scripts/build-knowledge.mjs --sources <every example path> --merge
This writes source-analysis.json and sources.json in the store, bumps
version, appends to history, and recomputes every convention's evidence
count and confidence level.
Read the roles tallies, not the whole-scene ones. A scene's raw style
counts are dominated by the line segments inside library icons; roles
separates arrows, authored text, authored shapes and boundary boxes.
Record what the conventions settle:
node scripts/style-findings.mjs --derive
It compares every convention that is exactly one style token with the house style: roughness, shape and connector stroke width, font family, corner rounding, fill style, connector colour and routing, boundary stroke style and width, and canvas colour. Font size is not derived — its tally mixes labels, captions and titles — so judge it by eye in the next step.
Record what only looking settles. For each convention the scenes contradict and a style override can express — what a connector style means (a legend is the best evidence), a connector's colour, dash or width, the caption size, node size or grid pitch — add one finding, with how many of the scenes show it:
node scripts/style-findings.mjs --add edgeKinds.async.meaning --observed "file transfer" --evidence 4 --confidence medium --note "legend in 4 of 5 scenes"
node scripts/style-findings.mjs --add edgeKinds.query --observed '{"color":"#f08c00","strokeStyle":"solid","width":2,"meaning":"SQL query"}' --evidence 3 --confidence medium
Values are Excalidraw's own: stroke widths 1, 2 or 4, font sizes 16, 20, 28 or
36, strokes solid, dashed or dotted, fills solid, hachure or
cross-hatch; anything else is refused. When the scenes give a colour or dash
a meaning that a shipped kind already uses for something else, record a
new kind: red error stays the failure path, and an orange "SQL query"
arrow is edgeKinds.query. Confidence is high when every scene agrees,
medium for a clear majority, low for one or two. Keep a meaning generic —
the kind of data or trigger, never a customer, system or project name.
--list shows every finding; --remove <target> drops one that no longer
holds. Which library item or logo stands for a product is never a finding.
Update the user's prose where the evidence actually moved:
style-notes.md — only rules where these scenes differ from
references/style-guide.md, with the new counts and confidence.patterns.md — a genuinely new recurring layout.Do not restate a convention whose confidence did not change.
Things worth looking for that the tallies alone will not tell you: whether boundaries are frames, scope rectangles or just proximity; whether icons are traced, embedded or library items; whether arrows are bound or free; whether labels are bound to shapes or floating; whether the canvas is on a grid.
Report: what was learned, which conventions changed confidence, which
contradicted the house style or earlier evidence, anything the corpus does
that the generator cannot yet produce — and that none of it changes a scene
until the user runs /apply-excalidraw-style.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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