drawio-skill
Use when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Generates .drawio XML files and exports to PNG/SVG/P.
This rank signal uses GitHub stars, measured star growth, and recent maintenance. It is not a safety score or install approval.
Worth reviewing before you install
Worth a closer look if the use case fits. It has adoption, measured growth, and recent maintenance. No primary install command was extracted, so review the upstream source first.
Data visualization teams. Channel tag: Claude Code, OpenClaw, Codex, AI Agent. Treat this as a search fit signal, not compatibility proof. Best when you can review the repo manually before adoption. Start with SKILL.md.
Inspect SKILL.md and the install command before adding it to a shared agent workflow. No actionable warning was returned for this snapshot.
Compare nearby data and visualization skills in the Claude Code, OpenClaw, Codex, AI Agent channel when 3,149 GitHub stars, source freshness, or install notes are close. This one still needs manual install review, so a nearby skill may be easier to adopt.
How to install drawio-skill
No install command was extracted. Treat this as a manual review case.
SKILL.md and source review
Primary path: SKILL.md
73/100 from GitHub star count, star growth rate, and recent update.
73/100 from GitHub star count, star growth rate, and recent update.
31.5/45 points. Star count is log-scaled so large repos lead without completely hiding newer projects.
25.8/35 points from 2,776 net stars over 53.3 observed day(s).
16/20 points. Most recent GitHub activity: 2026-06-03T16:53:34Z.
- GitHub ranking score uses star count, measured star growth rate, and recent repository update only.
- 775 stars at last scan.
- 378 stars/week measured from 2026-04-22 to 2026-04-29T10:49:06.627Z.
- Most recent GitHub activity was 2026-04-27T15:57:49Z.
Source evidence preview
We show selected README/SKILL.md excerpts, not a full mirror of the repo. Use the focus cards for install notes, usage, and skill rules, then open GitHub before installing.
Sections found: Project-level install, Project-level install, Project-level install.
Sections found: Usage, Workflow.
Sections found: When to Use, Workflow.
Project-level install
git clone https://github.com/Agents365-ai/drawio-skill.git .claude/skills/drawio-skill
Project-level install
git clone https://github.com/Agents365-ai/drawio-skill.git .opencode/skills/drawio-skill
Opencode also reads ~/.claude/skills/ and .claude/skills/, so an existing Claude Code install is automatically picked up — no second clone needed.
Project-level install
git clone https://github.com/Agents365-ai/drawio-skill.git skills/drawio-skill
Install under design category
git clone https://github.com/Agents365-ai/drawio-skill.git ~/.hermes/skills/design/drawio-skill
Or add an external directory in ~/.hermes/config.yaml:
skills:
external_dirs:
- ~/myskills/drawio-skillUsage
Just describe what you want:
Create a microservices e-commerce architecture with API Gateway, auth/user/order/product/payment services,
Kafka message queue, notification service, and separate databases for each serviceThe agent will generate the .drawio XML file and export it to PNG automatically.
Need the full source? Read full README on GitHub
When to Use
Explicit triggers: user says "diagram", "visualize", "flowchart", "draw", "architecture diagram", "process flow", "ER diagram", "UML", "sequence diagram", "class diagram", "neural network", "model architecture"
Proactive triggers:
- Explaining a system with 3+ interacting components
- Describing a multi-step process or decision tree
- Comparing architectures or approaches side by side
Skip when: a simple list or table suffices, or user is in a quick Q&A flow
Prerequisites
The draw.io desktop app must be installed and the CLI accessible:
# Linux
draw.io --versionInstall draw.io desktop if missing:
- macOS:
brew install --cask drawioor download from https://github.com/jgraph/drawio-desktop/releases - Windows: download installer from https://github.com/jgraph/drawio-desktop/releases
- Linux: download
.deb/.rpmfrom https://github.com/jgraph/drawio-desktop/releases
Workflow
Before starting the workflow, assess whether the user's request is specific enough. If key details are missing, ask 1-3 focused questions:
- Diagram type — which preset? (ERD, UML, Sequence, Architecture, ML/DL, Flowchart, or general)
- Output format — PNG (default), SVG, PDF, or JPG?
- Output location — default is the user's working dir; honor any explicit path the user gives (e.g. "put it in
./artifacts/"). Don't ask if they didn't mention one. - Scope/fidelity — how many components? Any specific technologies or labels?
Skip clarification if the request already specifies these details or is clearly simple (e.g., "draw a flowchart of X").
- Auto-update (first use per conversation) — silently keep the skill current. Check the timestamp of
/.last_update. If the file is missing or older than 24 hours, run:
git -C <this-skill-dir> pull --ff-only && date +%s > <this-skill-dir>/.last_updateIf the pull fails (offline, conflict, not a git checkout, etc.), ignore the error and continue normally. Do not mention the update to the user unless they ask.
Step 0.5 — Resolve active preset. Determine which (if any) user-defined style preset applies to this generation.
- Scan the user's message for a phrase that clearly names a style preset: "use my
style", "with mystyle", "inmode", "in the style of". A barewithdoes not count — "draw a diagram with redis" names a component, not a style. If a clear match is found → active preset =. - Else, check
~/.drawio-skill/styles/for any file with"default": true. If found → active preset = that one. - Else → no preset active; fall through to the built-in color/shape/edge conventions for the rest of the workflow.
Load the preset JSON from ~/.drawio-skill/styles/ .json, falling back to /styles/built-in/ .json. If the named preset exists in neither location, tell the user the name is unknown, list the available presets (user dir + built-in), and stop — do not silently fall back to defaults.
When a preset loads successfully, mention it in the first line of the reply: *"Using preset (confidence: )." See the Applying a preset* subsection below for how the preset changes color/shape/edge/font decisions.
- Check deps — verify
draw.io --versionsucceeds; note platform for correct CLI path - Plan — identify shapes, relationships, layout (LR or TB), group by tier/layer
- Generate — write
.drawioXML file to disk. Default output dir is the user's working dir; if the user specified an output path or directory (e.g../artifacts/,docs/images/), use that instead —mkdir -pthe target dir first. Apply the same dir choice to PNG/SVG/PDF exports in steps 4 and 7. - Export draft — run CLI to produce a preview PNG. **Do NOT pass
-e** at this step — the embeddedzTXt mxGraphModelchunk it adds causes vision APIs (Claude included) to return 400 "Could not process image" in step 5. Save the clean preview as.png(single extension). Embedding is for the final export only (step 7). - Self-check — use the agent's built-in vision capability to read the exported PNG, catch obvious issues, auto-fix before showing user (requires a vision-enabled model such as Claude Sonnet/Opus). If reading the PNG returns a 400 / "Could not process image" error, you almost certainly exported with
-eby mistake — re-export without-eand retry once. If it still fails, skip self-check and continue to step 6. - Review loop — show image to user, collect feedback, apply targeted XML edits, re-export, repeat until approved
- Final export — re-export the approved version to all requested formats. Use
-ehere (PNG/SVG/PDF) so the deliverable stays editable in draw.io; save as.drawio.pngto signal embedded XML. **For PNG with-e, run the IEND repair snippet immediately after** — draw.io's CLI truncates the IEND chunk in-ePNG output (8 bytes missing), producing a corrupt file that vision APIs and strict PNG decoders reject (issue #8). See Export → Post-export PNG repair. Report file paths.
ML / Deep Learning Model Diagram
For neural network architecture diagrams — ideal for papers targeting NeurIPS, ICML, ICLR.
| Element | Style | Notes |
|---|---|---|
| Layer block | rounded=1;whiteSpace=wrap;html=1; + type color | Main building block |
| Input/Output | fillColor=#d5e8d4;strokeColor=#82b366; | Green |
| Conv / Pooling | fillColor=#dae8fc;strokeColor=#6c8ebf; | Blue |
| Attention / Transformer | fillColor=#e1d5e7;strokeColor=#9673a6; | Purple |
| RNN / LSTM / GRU | fillColor=#fff2cc;strokeColor=#d6b656; | Yellow |
| FC / Linear | fillColor=#ffe6cc;strokeColor=#d79b00; | Orange |
| Loss / Activation | fillColor=#f8cecc;strokeColor=#b85450; | Red/Pink |
| Skip connection | dashed=1;endArrow=block;curved=1; | Dashed curved arrow |
| Tensor shape label | Add shape annotation as secondary label: value="Conv2D
(B, 64, 32, 32)" | Use 
 for multi-line |
| Layout | TB (data flows top→bottom), layers 150px apart | Group encoder/decoder as swimlanes |
Excerpt truncated at a clean section boundary. Read full SKILL.md on GitHub
