/draw-io:draw-iofrom draw-io
Creates, reads, edits, and opens draw.io (.drawio) files for architecture diagrams, ER diagrams, flowcharts, domain models, and more.
Ships in draw-io. 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.
Create, read, and edit diagrams in draw.io format (.drawio).
Any other diagram type that can be expressed in draw.io is also supported.
Read domain model or architecture diagrams and use them as development context.
Trigger examples: "Check the domain model", "Read the design diagram", "Reference the architecture", "What's in this diagram?"
Steps:
Glob to search for .drawio filesRead to load the XMLmxCell attributes:
value attribute: labels (entity names, method names, etc.)parent attribute: parent-child relationships (group membership)source/target attributes: edge connectionsfillColor in style attribute: element classification (color-based)Create new diagrams or update existing .drawio files.
Trigger examples: "Create a diagram", "Make a flowchart", "Draw an architecture diagram", "Create an ER diagram", "Update the diagram", "Add an entity", "Change a relationship"
Steps:
Glob to search for the target .drawio file
Read to get the XML and check existing IDs.drawio using WriteEditTrigger examples: "Open this file", "Open the .drawio file", "Open the diagram"
Steps:
Glob to search for .drawio files)open -a "draw.io" <file-path> using BashPrerequisite: draw.io must be installed via brew install --cask drawio
Important: Always specify darkMode="0". This disables Adaptive Colors, preventing color inversion when opened in a dark-mode editor, and maintains light-mode colors during SVG/PNG export.
<mxfile host="app.diagrams.net" agent="Claude" version="21.0.0">
<diagram name="Diagram Name" id="unique-id">
<mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0" darkMode="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<!-- Add elements here -->
</root>
</mxGraphModel>
</diagram>
</mxfile>
For multiple pages, add multiple <diagram> elements. Specify darkMode="0" in each <mxGraphModel>.
darkMode="0" — omitting it causes color inversion in dark modebox1, edge1
 for line breaks — for text line breaks within XMLparent attribute — coordinates of child elements within a group are relative to the parentvertex="1" for shapes, edge="1" for edges-- in XML comments — <!-- Order ---> Customer --> causes an XML error; write as <!-- Order to Customer -->Cause: -- is included in a comment
Fix: Avoid -- as in <!-- Order to Customer -->. See the beginning of references/xml-reference.md for details
Cause: Missing darkMode="0" specification
Fix: Add darkMode="0" to <mxGraphModel>. For multiple pages, specify it on all pages
Cause: Layout calculation issues
Fix: Check layout principles in references/layout-guide.md. Distribute edge connection points using exitX/exitY/entryX/entryY
Cause: Multiple mxCells with the same ID exist Fix: Check existing IDs before editing and assign unique IDs
Cause: draw.io desktop app is not installed
Fix: Install with brew install --cask drawio
XML Patterns & Styles → references/xml-reference.md Contents: mxCell patterns (rectangle, text, edge, group, DB, stack layout), style attributes, color palette, edge styles, custom properties, connection points, parsing examples for reading Load for reading, creating, and editing
Layout Guide → references/layout-guide.md Contents: Layout principles, coordinate calculations, placement patterns, boundary coordinate calculations Load for creating and editing
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
drawio, diagrams, architecture-diagrams, flowcharts, er-diagrams
npx claudepluginhub little-hands/claude-drawio-skill --plugin draw-ioOther plugins' skills for the same job