draw-io

draw-io is a skill for Claude Code, Codex from Dannykkh/skill-olympus. It costs 70 tokens per session (2,087 once invoked), scanned A, original, MIT.

A tool for creating and editing draw.io diagram files, including architecture diagrams, and converting them to PNG images. Draw.io is a diagram editor often used for system and cloud architecture drawings.

In plain words
What is it for?
Use it to build or update draw.io diagrams, document AWS or other system architectures, and export diagrams as PNG files.
Why use it?
It provides a defined workflow for changing the editable diagram source while preserving the generated image output.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build or update draw.io diagrams, document AWS or other system architectures, and export diagrams as PNG files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dannykkh/skill-olympus/draw-io
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 Dannykkh/skill-olympus --skill draw-io
Clone the repo
git clone --depth 1 https://github.com/Dannykkh/skill-olympus

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/dannykkh/skill-olympus/draw-io/github.svg)](https://agentmods.dev/skills/dannykkh/skill-olympus/draw-io)
Your own site
<a href="https://agentmods.dev/skills/dannykkh/skill-olympus/draw-io"><img src="https://agentmods.dev/badge/skills/dannykkh/skill-olympus/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/dannykkh/skill-olympus/draw-io"><img src="https://agentmods.dev/badge/skills/dannykkh/skill-olympus/draw-io.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,087 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.
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.00070 $0.02087
Opus 5.5 $0.00028 $0.00835
Sonnet 5.5 $0.00014 $0.00417
Haiku 4.5 $0.00007 $0.00209

Measured 2mo ago against content hash 2ab293dbeba5, 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 2mo 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 · 284 lines

How it starts

The opening of the file, as written. The whole thing — 284 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. Resolve module_root as the directory containing this exact SKILL.md before running a bundled helper.

# 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 the loaded skill's module root)
bash "<module_root>/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

Read the full file on GitHub · 284 lines

Files

What ships with it

4 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. 2mo ago First seen · 284 lines · 70 tokens per session scan A 2ab293dbeba5

Subscribe to this mod's changes

draw-io is a skill published in the GitHub repository Dannykkh/skill-olympus (9 stars, last pushed 6d ago), licensed MIT. It adds 70 tokens to every session and 2,087 once invoked, about $0.0003 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-09-03.

Related

draw-io compared with skills from other repositories

draw-io next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
draw-ioDannykkh/skill-olympusSkill96d agoMITA70Claude Code, Codex
design-systemclaude-hangar/claude-hangarSkill15mo agoMITC164Claude Code
polishclaude-hangar/claude-hangarSkill15mo agoMITC44Claude Code
audit-projectluiseiman/dotforgeSkill826d agoMITA26Claude Code
init-projectluiseiman/dotforgeSkill826d agoMITA28Claude Code
factory-animationnonlinear-xyz/factory-kitSkill105d agoMITA125Claude Code
domain-extractluiseiman/dotforgeSkill826d agoMITA24Claude Code