Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/LFTPadilla/agent-dev-kitnpx agentmods add skills/lftpadilla/agent-dev-kit/drawio-skillWrote 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.
[](https://agentmods.dev/skills/lftpadilla/agent-dev-kit/drawio-skill)<a href="https://agentmods.dev/skills/lftpadilla/agent-dev-kit/drawio-skill"><img src="https://agentmods.dev/badge/skills/lftpadilla/agent-dev-kit/drawio-skill/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.
<a href="https://agentmods.dev/skills/lftpadilla/agent-dev-kit/drawio-skill"><img src="https://agentmods.dev/badge/skills/lftpadilla/agent-dev-kit/drawio-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00120 | $0.09524 |
| Opus 5.5 | $0.00048 | $0.03810 |
| Sonnet 5.5 | $0.00024 | $0.01905 |
| Haiku 4.5 | $0.00012 | $0.00952 |
Grade A, and why
drawio-skill 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.
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.
How it starts
The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Draw.io Diagrams
Vendored from Agents365-ai/drawio-skill (MIT). See
LICENSEin this directory and the repo'sATTRIBUTION.md.
Overview
Generate .drawio XML files and export to PNG/SVG/PDF/JPG locally using the native draw.io desktop app CLI.
Supported formats: PNG, SVG, PDF, JPG — no browser automation needed.
PNG, SVG, and PDF exports support --embed-diagram (-e) — the exported file contains the full diagram XML, so opening it in draw.io recovers the editable diagram. Use double extensions (name.drawio.png) to signal embedded XML.
When to use / when NOT to use
Use this skill for: polished, precise diagrams (architecture, network, strict UML, ERD), anything needing solid opaque fills, 10,000+ stock/branded shapes, swimlanes, or custom geometry, exported as editable PNG/SVG/PDF.
Do NOT use it — route elsewhere — for:
- A casual hand-drawn / whiteboard look → excalidraw or tldraw.
- Diagrams-as-code that live in git / render in Markdown → mermaid (general) or plantuml (UML).
- Freeform infinite-canvas sketching or freehand strokes → tldraw.
Bundled resources
When the workflow references one of these, read it on demand — none of them need to be in context up front.
| File | Read it when |
|---|---|
references/diagram-types.md |
The user names a specific diagram type (ERD, UML class, sequence, architecture, ML/DL, flowchart) |
references/shapes.md + scripts/shapesearch.py |
The diagram needs a specific shape — a cloud icon (AWS/Azure/GCP), Cisco/Kubernetes/network symbol, UML/BPMN/ER/electrical/P&ID element — or any time you'd otherwise guess a style= string. shapesearch.py "<keywords>" returns the exact official style for 10k+ shapes |
scripts/aiicons.py |
The diagram involves an AI/LLM brand (OpenAI, Claude, Gemini, Mistral, Llama, HuggingFace, Ollama, LangChain, …) — aiicons.py "<brand>" returns a draw.io image style for the brand logo (lobe-icons via CDN; --embed to inline). draw.io has no built-in AI logos. See references/shapes.md → "AI / LLM brand logos" |
references/style-presets.md |
The user asks to learn / save / list / set-default / delete a style preset, or you've resolved an active preset and need the application rules |
references/style-extraction.md |
You're inside the Learn flow and need the extraction procedure (called from style-presets.md) |
references/troubleshooting.md |
An export fails, vision rejects a PNG, or a rendering looks wrong |
scripts/repair_png.py |
After every -e PNG export — fixes draw.io's truncated IEND chunk (issue #8) |
scripts/encode_drawio_url.py |
The CLI is unavailable and you need a browser-fallback diagrams.net URL (--edit for an editable editor URL) |
references/autolayout.md |
The diagram is large or layout-heavy (dependency/call graph, code structure, >~15 nodes) and you want Graphviz to place nodes + route edges instead of hand-placing coordinates |
scripts/pyimports.py · jsimports.py · goimports.py · rustimports.py |
The user wants to visualize a Python, JS/TS, Go, or Rust project structure — extracts the import graph (transitive-reduced, optional --group containers, nested by sub-package) for autolayout |
scripts/pyclasses.py |
The user wants a Python class hierarchy / class diagram — extracts classes + inheritance edges (boxed by module with --group) for autolayout |
scripts/validate.py |
You generated a .drawio (especially via autolayout or for a large hand-placed diagram) and want a fast deterministic structural lint (dangling edges, dup/reserved ids, broken parents, overlaps) before the vision self-check |
What ships with it
25 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.
- data/lobe-icons.json 13 KB
- data/SHAPE-INDEX-NOTICE.md 880 B
- data/shape-index.json.gz 426 KB
- LICENSE 1.0 KB
- references/autolayout.md 10 KB
- references/diagram-types.md 5.6 KB
- references/shapes.md 7.0 KB
- references/style-extraction.md 17 KB
- references/style-presets.md 9.7 KB
- references/troubleshooting.md 5.2 KB
- scripts/aiicons.py 7.4 KB runs code
- scripts/autolayout.py 14 KB runs code
- scripts/encode_drawio_url.py 2.2 KB runs code
- scripts/goimports.py 5.4 KB runs code
- scripts/jsimports.py 6.2 KB runs code
- scripts/pyclasses.py 6.1 KB runs code
- scripts/pyimports.py 6.2 KB runs code
- scripts/repair_png.py 1.1 KB runs code
- scripts/rustimports.py 7.4 KB runs code
- scripts/shapesearch.py 5.8 KB runs code
- scripts/validate.py 5.2 KB runs code
- styles/built-in/corporate.json 1.4 KB
- styles/built-in/default.json 1.4 KB
- styles/built-in/handdrawn.json 1.4 KB
- styles/schema.json 3.9 KB
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.
- 2mo ago First seen · 489 lines · 120 tokens per session scan A 07bae75d5f0c
drawio-skill is a skill published in the GitHub repository LFTPadilla/agent-dev-kit (2 stars, last pushed 1mo ago), licensed MIT. It adds 120 tokens to every session and 9,524 once invoked, about $0.0005 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-31.
drawio-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| drawio-skillLFTPadilla/agent-dev-kit | Skill | 2 | 1mo ago | MIT | A | 120 | Claude Code |
| pr-lensNousResearch/hermes-agent | Skill | 261k | yesterday | MIT | A | 15 | Claude Code, Codex |
| pr-screenshot-comparisonpetekp/claude-code-setup | Skill | 49 | 11d ago | MIT | A | 70 | Codex |
| star-chamberpeteski22/agent-pragma | Skill | 24 | 2d ago | Apache-2.0 | A | 22 | Claude Code |
| principle-minimize-reader-loadamajorai/ryu | Skill | 44 | yesterday | none | A | 44 | Claude Code |
| principle-model-the-domainamajorai/ryu | Skill | 44 | yesterday | none | A | 39 | Claude Code |
| criticmgifford/accessibility-skills | Skill | 58 | 1mo ago | AGPL-3.0 | A | 0 | Claude Code, Codex |