/schematic:diagramfrom schematic
Create an editable draw.io diagram from a plain description. Writes a .drawio file, or a .drawio.svg when the diagram belongs in a repo next to its docs. Covers flowcharts, architecture, sequence, swimlane, ER and org diagrams. Use when the user asks for a diagram they can edit in draw.io or diagrams.net, or for a diagram to commit with a README. For an animated diagram use the dashmotion skill.
Ships in schematic. 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.
Turn a description into a draw.io file the user can open, edit and version. The output is plain XML that draw.io, diagrams.net and VS Code's draw.io extension all open.
| The user wants | Write | Why |
|---|---|---|
| A diagram to edit in draw.io, or a standalone file | <name>.drawio | Smallest and simplest |
| A diagram in a repo, shown in a README or docs | <name>.drawio.svg | GitHub renders it as an image, and draw.io still opens it for editing |
For .drawio.svg, the file is an SVG with two parts:
<svg> has a content attribute holding the complete <mxfile> XML, with ", <, & escaped as ", <, &. This is the source of truth.<rect>, <text>, <path> with an arrow <marker>), computed from the same mxGeometry values. Set width, height and viewBox from the page size (pageWidth, pageHeight).Write the .drawio XML first, then derive the SVG from it so the two never disagree.
If the user does not say, write .drawio. Name the file after the title: lowercase, hyphens, no special characters ("Network Topology" becomes network-topology.drawio). If the file already exists, ask before overwriting.
List every shape, its label, every connection with its direction and label, and any grouping (container, swimlane, zone). Pick one flow direction (top to bottom or left to right) and stick to it. For more than 15 shapes, split into pages (section 6).
Every file has this skeleton. The two mandatory cells come first.
<mxfile host="Claude" modified="2026-01-01T00:00:00.000Z" agent="Claude" version="24.0.0" type="device">
<diagram id="page-1" name="Overview">
<mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- vertices and edges, all with parent="1" unless inside a container -->
</root>
</mxGraphModel>
</diagram>
</mxfile>
<mxCell id="web_frontend" value="Web frontend" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="120" y="80" width="140" height="60" as="geometry"/>
</mxCell>
<mxCell id="edge_web_to_api" value="HTTPS" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="web_frontend" target="api_gateway">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
Every edge needs source and target that match existing vertex ids. Add waypoints with <Array as="points"><mxPoint x="..." y="..."/></Array> inside the edge's mxGeometry when a route must avoid a shape.
Children use the container's id as parent, and their x and y are relative to the container's top-left corner.
<mxCell id="zone_private" value="Private subnet" style="swimlane;whiteSpace=wrap;html=1;startSize=30;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="300" y="60" width="400" height="260" as="geometry"/>
</mxCell>
<mxCell id="svc_orders" value="Orders" style="whiteSpace=wrap;html=1;rounded=1;" vertex="1" parent="zone_private">
<mxGeometry x="30" y="60" width="120" height="60" as="geometry"/>
</mxCell>
Use a swimlane when the diagram shows who owns each step. Use a plain group (group;) for a loose visual grouping.
Use descriptive ids (svc_orders, edge_orders_to_db), never bare numbers. Every id is unique within its page, and pages are independent.
Base style strings (add colors and text settings as needed):
| Shape | Style |
|---|---|
| Rectangle | whiteSpace=wrap;html=1; |
| Rounded rectangle | rounded=1;whiteSpace=wrap;html=1;arcSize=10; |
| Ellipse | shape=ellipse;whiteSpace=wrap;html=1; |
| Decision | shape=rhombus;whiteSpace=wrap;html=1; |
| Terminator (start/end) | rounded=1;whiteSpace=wrap;html=1;arcSize=50; |
| Database | shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;size=15; |
| Cloud | shape=cloud;whiteSpace=wrap;html=1; |
| Document | shape=document;whiteSpace=wrap;html=1; |
| Actor | shape=mxgraph.basic.person;whiteSpace=wrap;html=1; |
| Swimlane | swimlane;whiteSpace=wrap;html=1;startSize=30; |
| Dashed frame | whiteSpace=wrap;html=1;fillColor=none;strokeColor=#666666;dashed=1; |
Edges:
| Type | Style |
|---|---|
| Straight arrow | endArrow=classic;html=1; |
| Orthogonal | edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic; |
| Curved | curved=1;html=1;endArrow=classic; |
| Dashed | dashed=1;html=1;endArrow=classic; |
| Two-way | endArrow=classic;startArrow=classic;html=1; |
| Entity relation | edgeStyle=entityRelationEdgeStyle;html=1;endArrow=ERmany;startArrow=ERone; |
Use orthogonal edges for architecture and network diagrams, straight edges for simple flowcharts.
Palette (fill / stroke), one palette per diagram, at most four or five colors:
| Role | Fill | Stroke |
|---|---|---|
| Primary | #dae8fc | #6c8ebf |
| Success | #d5e8d4 | #82b366 |
| Warning | #fff2cc | #d6b656 |
| Danger | #f8cecc | #b85450 |
| Neutral | #f5f5f5 | #666666 |
Set fontColor=#333333 on light fills. Text in labels is short; use html=1 with <br> only for a second line, and escape markup inside value (<b>Title</b>).
Put an overview on the first page and detail on the others. Each <diagram> has its own <mxGraphModel> with its own cells 0 and 1.
Run the bundled checker before you report. Use the path to this skill's folder:
python3 <this-skill-folder>/scripts/check_drawio.py <file>
It checks that the XML is well formed, every edge's source and target exist, every vertex has a geometry, ids are unique, and no two shapes with the same parent overlap. It exits 0 when clean, 1 when there are problems, and 2 when it cannot read the file. Fix every problem it reports and run it again. The checker needs only Python 3.
Then report the file path as a link and one line on what it shows. Do not open the file yourself.
.drawio file is plain XML and diffs cleanly in git.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
schematic@seayniclabs is listed by seayniclabs/plugins — review the source before installing
npx claudepluginhub seayniclabs/plugins --plugin schematic6 skills in this plugin
/architecture-diagramCreate polished dark-themed architecture diagrams as self-contained HTML+SVG files. Use when the user asks for system, infrastructure, cloud, security, or network topology diagrams./dashmotionCreate dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the system (Diagrid/Temporal landing-page style). Use this skill whenever the user asks for a flowchart, workflow, pipeline, process diagram, state machine, system architecture, infrastructure, cloud, microservices, or network topology diagram — and especially when they mention "animated", "flowing", "dynamic", "alive", "GIF-like", or want a diagram for a landing page, README, docs, or product demo. Also use it to convert Mermaid source (a mermaid code block or .mmd file) into an animated diagram — "animate this mermaid", "make this flowchart move". Prefer this over static diagram output whenever the diagram represents anything that moves: requests, events, data, jobs, messages, or control flow./getting-startedOrient a new user of the Schematic skills. Explains what they do, how to install them in Claude Code as a plugin or by copying the skills folder into another app, which skill fits which request, and how to open the files they produce. Use when the user asks what Schematic is, how to install or start with these skills, or which diagram skill to use./network-diagramDraw a network topology diagram (L1 physical, L2 VLAN, or L3 IP subnets) as an editable draw.io file from a device inventory the user supplies. Groups devices into subnets and zones, and adds a device table. Use when the user asks for a network map, topology, rack or subnet layout, or a diagram of their home or office network./visualizeMap a codebase into one self-contained interactive HTML page showing its components, how they connect, where data flows, and which external services it calls. Also lists real gaps such as orphaned files and dead endpoints. Use when the user wants to see how an unfamiliar project fits together, asks for an architecture or component map, or wants to find unused or unprotected code.