No slash command · from Teacher
Generates editable Excalidraw diagrams for complex structures like system architectures, layered designs, data structures, or detailed flows. Supports multi-zoom levels and evidence artifacts.
Ships in Teacher. 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.
What to draw: $ARGUMENTS
Saving and loading progress: in this turn, before you run the save helper or read any of this plugin's files, load the save-progress skill; it is what allows both. Follow ${CLAUDE_PLUGIN_ROOT}/references/saving-progress.md (read it once per session). Session id: ${CLAUDE_SESSION_ID}.
Generate an .excalidraw file with an explanation. The student can open it at excalidraw.com or with the Excalidraw extension for VS Code, then move, edit and annotate it.
A diagram is not a picture — it is a visual argument. Every shape, arrow, and color must advance the student's understanding. If an element does not teach something, remove it.
If you removed ALL text from the diagram, would the spatial structure alone communicate the concept? The layout, grouping, arrow directions, and color coding should carry meaning independently of labels.
Could someone who knows nothing about this topic learn something concrete from this diagram? Not just "see a pretty picture" but actually understand a relationship, flow, or structure they did not understand before.
Read these three files before writing any diagram; they hold the exact colours, element templates and binding rules, and memory is not a substitute:
${CLAUDE_SKILL_DIR}/references/color-palette.md${CLAUDE_SKILL_DIR}/references/element-templates.md${CLAUDE_SKILL_DIR}/references/json-schema.mdBefore building, assess the complexity the student needs:
Choose depth based on the student's level and the concept's complexity. When in doubt, go comprehensive — concrete evidence teaches better than abstract boxes.
Large diagrams should work at three levels of detail:
The bird's-eye view. 5-8 major shapes connected by arrows. A student glancing at this level gets the overall flow or structure. Use large labels (fontSize 24-28) and primary colors.
Logical grouping within the flow. Dashed boundary rectangles or spatial clustering. Section headers (fontSize 20-24) label each group. This is where the diagram's "chapters" become visible.
The concrete details. Real code, JSON payloads, event names, packet contents inside dark evidence artifact boxes. fontSize 14-16. This level answers "but what does it actually look like?"
Boxes around text are expensive — they add visual noise and make diagrams feel like PowerPoint slides.
Choose the pattern that best matches the concept's structure. Combine patterns for complex diagrams.
+--> B
A ---+--> C
+--> D
Use for: event emission, broadcast, one-to-many relationships, API responses consumed by multiple services.
A --+
B --+--> D
C --+
Use for: aggregation, reduce operations, load balancers, merging streams.
A
/ \
B C
/ \
D E
Use for: DOM trees, file systems, inheritance, organizational charts, ASTs.
A --> B --> C --> D
Use for: request lifecycle, protocol handshakes, pipeline stages, state machines. Can be horizontal (left-to-right) or vertical (top-to-bottom).
A --> B
^ |
| v
D <-- C
Use for: event loops, retry logic, feedback systems, iterative processes.
[raw] --> |Stage 1| --> |Stage 2| --> |Stage 3| --> [done]
Use for: compilation pipeline, CI/CD, data processing, middleware chains. Show what transforms at each stage.
| Concept A | | Concept B |
| - point | | - point |
| - point | | - point |
Use for: TCP vs UDP, SQL vs NoSQL, sync vs async, before/after.
[Problem state] ~~gap~~ [Solution state]
Use for: debugging visualization, refactoring before/after, migration steps.
Large diagrams must be built incrementally, not all at once.
Divide the diagram into 2-5 logical sections. Each section is a coherent visual unit.
Use descriptive string IDs and namespace seeds by section:
100xxx (e.g., 100001, 100010, 100020)200xxx300xxx900xxxID examples: "client_rect", "server_rect", "arrow_syn", "evidence_packet", "title_text"
Generate the JSON for section 1 completely, then section 2, etc. This avoids mistakes from trying to hold 50+ elements in working memory at once.
Cross-section arrows and references come after all sections are built. Update boundElements arrays on previously defined shapes when adding arrows to them.
Combine all sections into a single elements array. Verify all cross-references are consistent.
Check the facts against official documentation or standards, and keep the source link. Do not draw something you have not checked.
Assess depth — simple/conceptual or comprehensive/technical? Based on student level and concept complexity.
Map concepts to visual patterns — which pattern(s) from the library match this concept's structure? Sketch the layout mentally.
Plan layout with multi-zoom levels — where does the Level 1 summary flow go? Where do Level 3 evidence artifacts attach? Plan spatial regions.
Read the three reference files listed above.
Build JSON section-by-section — follow the section-by-section strategy above. Use templates from element-templates.md as starting points.
Save the file to docs/<concept-name>.excalidraw
Write educational explanation alongside the diagram:
Save the explanation to docs/<concept-name>.md (or append if it already exists) — note that an Excalidraw diagram is available.
groupIds to group related elements so they move togetherBefore saving any diagram, verify:
boundElements entry has a matching containerId or startBinding/endBinding; every containerId has a matching boundElements entry; every arrow binding has matching boundElements on both connected shapes"id1", "id2". Use "server_rect", "arrow_request", "evidence_payload"${CLAUDE_SKILL_DIR}/references/color-palette.mddocs/<concept>.excalidraw and the explanation as docs/<concept>.md. Read an existing file first and keep the student's edits.seen ("activity": "diagram", the file, and the topic's slug if it is a saved one).What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/asciiDraw a quick text diagram directly in the conversation. Use for a simple visual of a sequence, flow, layout, hierarchy or comparison with up to about ten parts. For structures with many parts use excalidraw; for anything that moves or changes step by step use demo./challengeGive the student one short hands-on exercise on a topic they have been taught, wait for their attempt, then evaluate it and record the result. Use when they ask for practice, an exercise or a task, or when an idea they understand in words needs applying./compareBuild a side-by-side comparison of two ideas, with a table, when to use which, and the usual confusions. Use when the student asks for the difference between two things, mixes two ideas up, or has to choose between them./demoBuild an animated, step-by-step visual lesson as one self-contained HTML file that opens in any browser and works offline. Use when an idea is about something moving or changing over time, such as a protocol exchange, an algorithm trace, a state machine or data flowing through a pipeline. For a still picture use ascii or excalidraw./explainExplain an idea in levels, from a one-sentence version a five-year-old could follow up to the precise technical one. Use whenever a new concept needs explaining during a lesson, when the student asks "what is", "how does" or "why", and when they ask for it simpler, deeper, with an example, or "like I'm five"./flashcardsMake study cards from topics the student has already been taught, save them for review sessions, and export them as Markdown and an Anki-importable file. Use when they ask for flashcards, cards, or something to study from on their own.npx claudepluginhub yarikleto/claude-teacher-plugin --plugin teacherOther plugins' skills for the same job