draw-io

draw-io is a skill for Claude Code, Codex from softaworks/agent-toolkit. It costs 33 tokens per session (2,032 once invoked), scanned A, original, MIT.

Instructions for editing draw.io files, which are editable diagrams, and converting them into PNG images. It also sets font details needed when diagrams are used in Quarto slides.

In plain words
What is it for?
Edit .drawio diagrams, export them as transparent PNGs, and prepare diagrams for Quarto presentations with explicit font settings.
Why use it?
It keeps the editable diagram as the source and provides a repeatable way to produce a high-resolution image. The font rules help text render consistently in slide decks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Edit .drawio diagrams, export them as transparent PNGs, and prepare diagrams for Quarto presentations with explicit font settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/softaworks/agent-toolkit/draw-io
About the project

Softaworks Agent Toolkit is a collection of packaged instructions, scripts, agents, and commands that give AI coding assistants reusable procedures for development, documentation, planning, and professional work. Developers install its components individually in compatible coding-agent environments; catalogue entries represent parts of this toolkit.

softaworks/agent-toolkit · 2,735 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add softaworks/agent-toolkit --skill draw-io
Clone the repo
git clone --depth 1 https://github.com/softaworks/agent-toolkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for draw-io

README.md
[![agentmods](https://agentmods.dev/badge/skills/softaworks/agent-toolkit/draw-io/github.svg)](https://agentmods.dev/skills/softaworks/agent-toolkit/draw-io)
Your own site
<a href="https://agentmods.dev/skills/softaworks/agent-toolkit/draw-io"><img src="https://agentmods.dev/badge/skills/softaworks/agent-toolkit/draw-io/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for draw-io

Your own site · 80×15
<a href="https://agentmods.dev/skills/softaworks/agent-toolkit/draw-io"><img src="https://agentmods.dev/badge/skills/softaworks/agent-toolkit/draw-io.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 131
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02032
Opus 5.5 $0.00013 $0.00813
Sonnet 5.5 $0.00007 $0.00406
Haiku 4.5 $0.00003 $0.00203

Measured 3mo ago against content hash fb23a8baa3a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

draw-io scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/convert-drawio-to-png.sh, scripts/find_aws_icon.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/draw-io/SKILL.md · 279 lines

How it starts

The opening of the file, as written. The whole thing — 279 lines — stays where its author put it; the contents beside it link to each section on GitHub.

draw.io Diagram Skill

1. Basic Rules

  • Edit only .drawio files
  • Do not directly edit .drawio.png files
  • Use auto-generated .drawio.png by pre-commit hook in slides

2. Font Settings

For diagrams used in Quarto slides, specify defaultFontFamily in mxGraphModel tag:

<mxGraphModel defaultFontFamily="Noto Sans JP" ...>

Also explicitly specify fontFamily in each text element's style attribute:

style="text;html=1;fontSize=27;fontFamily=Noto Sans JP;"

3. Conversion Commands

See conversion script at scripts/convert-drawio-to-png.sh.

# Convert all .drawio files
mise exec -- pre-commit run --all-files

# Convert specific .drawio file
mise exec -- pre-commit run convert-drawio-to-png --files assets/my-diagram.drawio

# Run script directly (using skill's script)
bash ~/.claude/skills/draw-io/scripts/convert-drawio-to-png.sh assets/diagram1.drawio

Internal command used:

drawio -x -f png -s 2 -t -o output.drawio.png input.drawio
Option Description
-x Export mode
-f png PNG format output
-s 2 2x scale (high resolution)
-t Transparent background
-o Output file path

4. Layout Adjustment

4.1. Coordinate Adjustment Steps

  1. Open .drawio file in text editor (plain XML format)
  2. Find mxCell for element to adjust (search by value attribute for text)
  3. Adjust coordinates in mxGeometry tag
    • x: Position from left
    • y: Position from top
    • width: Width
    • height: Height
  4. Run conversion and verify

4.2. Coordinate Calculation

  • Element center coordinate = y + (height / 2)
  • To align multiple elements, calculate and match center coordinates

5. Design Principles

5.1. Basic Principles

  • Clarity: Create simple, visually clean diagrams
  • Consistency: Unify colors, fonts, icon sizes, line thickness
  • Accuracy: Do not sacrifice accuracy for simplification

5.2. Element Rules

Read the full file on GitHub · 279 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 279 lines · 33 tokens per session scan A fb23a8baa3a3

Subscribe to this mod's changes

draw-io is a skill published in the GitHub repository softaworks/agent-toolkit (2,735 stars, last pushed 9mo ago), licensed MIT. It adds 33 tokens to every session and 2,032 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

draw-io compared with skills from other repositories

draw-io next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
draw-iosoftaworks/agent-toolkitSkill2.7k9mo agoMITA33Claude Code, Codex
desktop-brand-builderQwenLM/qwen-codeSkill31ktodayApache-2.0A68Claude Code, Codex
datavizQwenLM/qwen-codeSkill31ktodayApache-2.0A26Claude Code
frontend-designHmbown/CodeWhaleSkill41k2d agoMITA21Claude Code, Codex
frontend-design-landing-pagecloudflare/vibesdkSkill5.5k1mo agoMITA106Claude Code, Codex
frontend-design-saascloudflare/vibesdkSkill5.5k1mo agoMITA105Claude Code, Codex
genuiLodyAI/LodySkill1.9ktodayApache-2.0A66Claude Code, Codex