Drawio Diagram Skill — Development skill for Claude Code
A Claude Code skill that produces diagrams as draw.io files, then validates and renders them so the result is actually looked at before it is called done.
How to install Drawio Diagram Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open eranw2000/drawio-diagram-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Drawio Diagram Skill does
A Claude Code skill that produces diagrams as draw.io files, then validates and renders them so the result is actually looked at before it is called done.
Alternatives in Development
- Portaljs Add Chart — Add a chart (line, bar, area, pie, or scatter) to a dataset's showcase in a PortalJS portal 2.3k ★
- Diagram 2.3k ★
- Deep Dive Claude Code — 《深入理解 Claude Code 源码》— 系统剖析 Anthropic Claude Code CLI 的架构设计、工程实践与编程哲学 25 chapters, 101 Mermaid diagrams, 467 c 181 ★
README
draw.io diagram skill for Claude Code
A Claude Code skill that produces diagrams as draw.io files, then validates and renders them so the result is actually looked at before it is called done.
The problem it solves is narrow and specific. Asking a coding agent for a diagram usually gets you Mermaid or ASCII art, or a `.drawio` file that was never opened. XML validity says nothing about whether two boxes are printed on top of each other. This skill pairs a written visual grammar with a renderer, so the diagram gets produced, exported to an image, and inspected as part of the loop.
How it runs

Source: [docs/drawio-skill-flow.drawio](docs/drawio-skill-flow.drawio) (editable in draw.io).
What is in here
draw-diagram/SKILL.mdthe skill itself. Loads the grammar, writes the XML, renders, looks at the image, reports where the source and the image were saved.draw-diagram/DRAWIO_DIAGRAMS.mdthe visual grammar: shape vocabulary, a seven-color palette, the layout skeleton (header strip, stage containers, data store column, footer), arrow conventions, and the decision-hub temporal-ordering defenses. It also carries the traps that only surface at render time, including the CLI exporter silently refusing;base64data URIs and text cells that do not wrap.draw-diagram/render.pyvalidates a.drawiofile and exports it to PNG, SVG, or PDF. Pure standard library for the validation half, so it runs anywhere with no install.
Install
Copy the skill directory into your `~/.claude/skills/` so Claude Code picks it up:
cp -R drawio-diagram-skill/draw-diagram ~/.claude/skills/
The grammar file lives inside the skill directory, so the skill stays self-contained and there is nothing else to wire up.
To make draw.io your default for every diagram rather than something you ask for by name, add a line to your `~/.claude/CLAUDE.md`:
Whenever a diagram is needed (architectur
Related Skills
Multi Chart Draw Skills
支持多种图表类型的绘制工具,包括思维导图、流程图、数据可视化图表、数学函数图等;可根据用户需求生成 Mermaid、ECharts、Mindmap、DrawIO、GeoGebra 等格式的图表,并导出为 PNG、SVG、
Drawio Diagram
Emit
Generate a standalone, org-owned Claude Code plugin (the org's agent harness) from .forge.org.yaml. Reads the
Interactive Diagram
生成可交互式、可拖动的 HTML 图表(流程图、架构图、思维导图、序列图),并将其作为独立文件保存。支持 Dagre 自动布局、平移/缩放,并可导出为 PNG/SVG/JSON 格式。零依赖。Claude Code 技能
Arch Diagram
Generate Mermaid diagrams from codebase analysis or description.
Tldraw Diagram Skill
Claude Code skill for generating tldraw diagrams (.tldr files & SDK code) with a headless PNG/SVG renderer. Un
Related Agents
Diagram Generation
Diagram generation expert for draw.io, PlantUML, and Mermaid — use proactively when creating architecture diag
Figure Critic
Reviews a generated or existing figure (data plot or diagram) against figure-quality rules before it goes in t
Visual Exporter
Convert a structured deepthinking thought into diagram source code. Use when the user asks to visualize, rende