drawio
Generate draw.io diagrams as .drawio files, optionally export to PNG/SVG/PDF with embedded XML
Skill by rysk-tanaka
Chalk Labs
Need help deploying drawio?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rysk-tanaka-drawio
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/drawio
Tools it pre-approves 2
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
BashWrite
What's inside
- Skill name
drawio- Description
- Generate draw.io diagrams as .drawio files, optionally export to PNG/SVG/PDF with embedded XML
- License
- MIT
- Allowed tools
- Bash, Write
- Instructions
- 244 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves any shell command
Files (1)
- SKILL.md
SKILL.md (first lines)
# Draw.io Diagram Skill
Generate draw.io diagrams as native `.drawio` files. Optionally export to PNG, SVG, or PDF with the diagram XML embedded (so the exported file remains editable in draw.io).
## How to create a diagram
1. Generate draw.io XML in mxGraphModel format for the requested diagram
2. Write the XML to a `.drawio` file in the current working directory using the Write tool
3. If the user requested an export format (png, svg, pdf), export using the draw.io CLI with `--embed-diagram`
4. Only after the export succeeds and the output file exists, delete the source `.drawio` file
5. Open the result — the exported file if exported, or the `.drawio` file otherwise
## Choosing the output format
Check the user's request for a format preference. Examples:
- `/drawio create a flowchart` → `flowchart.drawio`
- `/drawio png flowchart for login` → `login-flow.drawio.png`
- `/drawio svg: ER diagram` → `er-diagram.drawio.svg`
- `/drawio pdf architecture overview` → `architecture-overview.drawio.pdf`
If no format is mentioned, just write the `.drawio` file and open it in draw.io. The user can always ask to export later.
### Supported export formats
| Format | Embed XML | Notes |
| --- | --- | --- |
| `png` | Yes (`-e`) | Viewable everywhere, editable in draw.io |
| `svg` | Yes (`-e`) | Scalable, editable in draw.io |
| `pdf` | Yes (`-e`) | Printable, editable in draw.io |
All three formats support `--embed-diagram` — the exported file contains the full diagram XML, so opening it in draw.io recovers the editable diagram.
## draw.io CLI
The draw.io desktop app includes a command-line interface for exporting.
### Locating the CLI
Try `drawio` first (works if on PATH), then fall back to the platform-specific path:
- macOS: `/Applications/draw.io.app/Contents/MacOS/draw.io`
- Linux: `drawio` (typically on PATH via snap/apt/flatpak)
- Windows: `"C:\Program Files\draw.io\draw.io.exe"`
Use `which drawio` (or `where drawio` on Windows) to check if it's on PATH before falling back.
### Export command
```bash
drawio -x -f <format> -e -b 10 -o <output> <input.drawio>
```
Key flags:
- `-x` / `--export`: export mode
- `-f` / `--format`: output format (png, svg, pdf)
- `-e` / `--embed-diagram`: embed diagram XML in the output (PNG/SVG/PDF only)
- `-o` / `--output`: output file path
- `-b` / `--border`: border width around diagram (default: 0)
- `-t` / `--transparent`: transparent background (PNG only)
- `-s` / `--scale`: scale the diagram size
- `--width` / `--height`: fit into specified dimensions (preserves aspect ratio)
- `-a` / `--all-pages`: export all pages (PDF only)
- `-p` / `--page-index`: select a specific page (0-based)
### Opening the result
- macOS: `open <file>`
- Linux: `xdg-open <file>`
- Windows: `start <file>`
## File naming
- Use a descriptive filename based on the diagram content (e.g., `login-flow`, `database-schema`)
- Use lowercase with hyphens for multi-word names
- For export, use double extensions: `name.drawio.png`, `name.drawio.svg`, `name.drawio.pdf` — this signals the file contains embedded diagram XML
- After a successful export, delete the intermediate `.drawio` file — the exported file contains the full diagram
## XML format
A `.drawio` file is XML. The formal schema uses an `<mxfile>` wrapper, but `<mxGraphModel>` alone also works and is simpler to generate. Always generate XML directly — Mermaid and CSV formats require server-side conversion and cannot be saved as native files.
### Basic structure
Every diagram must have this structure:
```xml
<mxGraphModel>
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- Diagram cells go here with parent="1" -->
</root>
</mxGraphModel>
```
Note: draw.io's formal file format wraps this in `<mxfile><diagram>...</diagram></mxfile>`, but `<mxGraphModel>` alone is accepted by both the editor and CLI.
- Cell `id="0"` is the root layer
- Cell `id="1"` is the default parent layer
- All diagram elements use `parent="1"` unless using multiple layers
### Common styles
Rounded rectangle:
```xml
<mxCell id="2" value="Label" style="rounded=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="100" y="100" width="120" height="60" as="geometry"/>
</mxCell>
```
Diamond (decision):
```xml
<mxCell id="3" value="Condition?" style="rhombus;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="100" y="200" width="120" height="80" as="geometry"/>
</mxCell>From rysk-tanaka/skills, MIT.
More from rysk-tanaka/skills
- 0.558score
review-router
rysk-tanaka
差分を分析して規模・観点に応じたレビューを自動振り分けし、Must-Fix・Important を未コミットのまま自動修正して再レビューする (user)
SkillAFreshness: AClaude Code - 0.555score
fix-prose
rysk-tanaka
コードコメント・ドキュメント内の語彙や言い回しを辞書ルールに従って自動で直す (user)
SkillAFreshness: AClaude Code +9 - 0.555score
lms-rescue
rysk-tanaka
LM Studio のローカル LLM に調査・修正を委任(Codex CLI 経由) (user)
SkillAFreshness: AClaude Code - 0.555score
auto-commit
rysk-tanaka
ステージ済みの変更からコミットメッセージを自動生成 (user)
SkillAFreshness: AClaude Code +9 - 0.555score
drawio-aws
rysk-tanaka
draw.io で AWS アーキテクチャ図を作成(AWS 4 アイコン、カテゴリ別カラー指定付き)
SkillAFreshness: AClaude Code +9 - 0.555score
lms-review
rysk-tanaka
LM Studio のローカル LLM でブランチ差分をレビュー (user)
SkillAFreshness: AClaude Code - 0.555score
resolve-review
rysk-tanaka
PRレビューコメントを取得し対応が必要な項目を確認 (user)
SkillAFreshness: AClaude Code - 0.555score
design-doc-yaml
rysk-tanaka
設計内容をYAMLに集約し診断レビューを経て肥大化しないMarkdown設計書を作成 (user)
SkillAFreshness: AClaude Code +9 - 0.555score
cloudwatch-logs
rysk-tanaka
CloudWatchログの取得・検索(Lambda関数のログ解析、エラー調査)
SkillAFreshness: AClaude Code +9 - 0.552score
await-ci
rysk-tanaka
CIチェックの状態確認・完了待機 (user)
SkillAFreshness: AClaude Code - 0.552score
pr
rysk-tanaka
ブランチの変更を分析してプルリクエストを作成 (user)
SkillAFreshness: AClaude Code +9 - 0.552score
suggest-branch
rysk-tanaka
作業内容を分析して適切なブランチ名を提案 (user)
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- May 4, 2026 (6 months ago)
- Last release
- Oct 14, 2026 (16 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/rysk-tanaka/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from rysk-tanaka
- 0.558score
review-router
rysk-tanaka
差分を分析して規模・観点に応じたレビューを自動振り分けし、Must-Fix・Important を未コミットのまま自動修正して再レビューする (user)
SkillAFreshness: AClaude Code - 0.555score
fix-prose
rysk-tanaka
コードコメント・ドキュメント内の語彙や言い回しを辞書ルールに従って自動で直す (user)
SkillAFreshness: AClaude Code +9 - 0.555score
lms-rescue
rysk-tanaka
LM Studio のローカル LLM に調査・修正を委任(Codex CLI 経由) (user)
SkillAFreshness: AClaude Code - 0.555score
auto-commit
rysk-tanaka
ステージ済みの変更からコミットメッセージを自動生成 (user)
SkillAFreshness: AClaude Code +9 - 0.555score
drawio-aws
rysk-tanaka
draw.io で AWS アーキテクチャ図を作成(AWS 4 アイコン、カテゴリ別カラー指定付き)
SkillAFreshness: AClaude Code +9 - 0.555score
lms-review
rysk-tanaka
LM Studio のローカル LLM でブランチ差分をレビュー (user)
SkillAFreshness: AClaude Code
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get drawio running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
drawio skill. Agent Mart. https://agentmart.dev/skills/rysk-tanaka-drawio (last updated 2026-10-24)