diagram-drawio

diagram-drawio is a skill for Claude Code, Codex from xiaohei-info/oh-my-multica. It costs 120 tokens per session (8,069 once invoked), scanned A, original, MIT.

A workflow for creating editable diagrams in Draw.io, a diagramming application, and exporting them as image or document files.

In plain words
What is it for?
Create flowcharts, architecture diagrams, database and UML diagrams, network maps, machine-learning figures, and mind maps.
Why use it?
It lets an agent produce common technical diagrams locally while preserving an editable diagram version in supported exports.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Codex; built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is mkdir -p ./artifacts && draw.io -x -f png -e -s 2 -o ./artifacts/diagram.drawio.png input.drawio.

Good fit Create flowcharts, architecture diagrams, database and UML diagrams, network maps, machine-learning figures, and mind maps.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/xiaohei-info/oh-my-multica
agentmods
npx agentmods add skills/xiaohei-info/oh-my-multica/diagram-drawio

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 diagram-drawio

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaohei-info/oh-my-multica/diagram-drawio/github.svg)](https://agentmods.dev/skills/xiaohei-info/oh-my-multica/diagram-drawio)
Your own site
<a href="https://agentmods.dev/skills/xiaohei-info/oh-my-multica/diagram-drawio"><img src="https://agentmods.dev/badge/skills/xiaohei-info/oh-my-multica/diagram-drawio/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 diagram-drawio

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaohei-info/oh-my-multica/diagram-drawio"><img src="https://agentmods.dev/badge/skills/xiaohei-info/oh-my-multica/diagram-drawio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,069 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
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, 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 175
    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.
  • medium Rogue Agent · line 138
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00120 $0.08069
Opus 5 $0.00060 $0.04034
Sonnet 5 $0.00024 $0.01614
Haiku 4.5 $0.00012 $0.00807

Measured 12d ago against content hash 5a210df27bf0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

diagram-drawio 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/encode_drawio_url.py, scripts/repair_png.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.

src/omac/agents/architect/skills/diagram-drawio/SKILL.md · 470 lines

How it starts

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

Draw.io Diagrams

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.

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/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/format-comparison.md Choosing between drawio-skill, architecture-diagram, and excalidraw for a given task; multi-format workflow; Obsidian compatibility per format
references/troubleshooting.md An export fails, vision rejects a PNG, or a rendering looks wrong
references/obsidian-integration.md Embedding diagrams in Obsidian vault notes, architecture-from-doc patterns, cloud-platform color conventions
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

Prerequisites

The draw.io desktop app must be installed and the CLI accessible:

macOS sandbox / sandbox isolation note (e.g., codex.app): In some sandboxed macOS environments, invoking the draw.io desktop CLI (even draw.io --version) can crash the draw.io process or produce no output. If that happens, treat the CLI as unavailable in this sandbox isolation — do not keep retrying inside the sandbox. Prefer a non-sandboxed host environment (outside sandbox isolation) for any CLI export work, or use the browser fallback / XML-only outputs.

Read the full file on GitHub · 470 lines

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. 12d ago First seen · 470 lines · 120 tokens per session scan A 5a210df27bf0

Subscribe to this mod's changes

diagram-drawio is a skill published in the GitHub repository xiaohei-info/oh-my-multica (26 stars, last pushed 5d ago), licensed MIT. It adds 120 tokens to every session and 8,069 once invoked, about $0.0006 per session on Opus 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.