zero2Agent: Skill for Codex

.agents/skills/drawio-skill/SKILL.md

drawio-skill is a skill for Codex from ranxi2001/zero2Agent. It costs 68 tokens per session (7,301 once invoked), scanned A, original, MIT.

A tool for creating editable draw.io diagrams and exporting them as PNG, SVG, PDF, or JPG files. It supports diagrams such as flowcharts, architecture charts, process flows, and UML diagrams.

In plain words
What is it for?
Drawing system architectures, workflows, decision trees, data flows, entity relationships, and class or sequence diagrams.
Why use it?
It provides a consistent way to turn multi-step processes and relationships between system parts into shareable visual files.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); built for openclaw.

This is ranxi2001/zero2Agent's own configuration. It tells Codex how to work on zero2Agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zero2Agent configures →

About the project

zero2Agent is a tutorial repository that teaches software developers how to build AI agents, covering core concepts, model APIs, tools, memory, frameworks, implementation, and complete projects. It is intended for programmers learning agent engineering and for candidates preparing for agent-related technical interviews.

ranxi2001/zero2Agent · 1,026 stars · on GitHub · onefly.top

Reuse

Borrowing it

Nothing to install: this file belongs to ranxi2001/zero2Agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ranxi2001/zero2Agent/main/.agents/skills/drawio-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ranxi2001/zero2Agent

Made for: 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 drawio-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/ranxi2001/zero2agent/drawio-skill/github.svg)](https://agentmods.dev/skills/ranxi2001/zero2agent/drawio-skill)
Your own site
<a href="https://agentmods.dev/skills/ranxi2001/zero2agent/drawio-skill"><img src="https://agentmods.dev/badge/skills/ranxi2001/zero2agent/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.

agentmods 80×15 button for drawio-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/ranxi2001/zero2agent/drawio-skill"><img src="https://agentmods.dev/badge/skills/ranxi2001/zero2agent/drawio-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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: 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 135
    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.00068 $0.07301
Opus 5.5 $0.00027 $0.02920
Sonnet 5.5 $0.00014 $0.01460
Haiku 4.5 $0.00007 $0.00730

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

Security

Grade A, and why

drawio-skill scanned grade A with 1 finding 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 1 executable file (scripts/check-update.sh), 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

import zlib, base64, urllib.parse, sys
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/drawio-skill/SKILL.md · 474 lines

How it starts

The opening of the file, as written. The whole thing — 474 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.

When to Use

Explicit triggers: user says "diagram", "visualize", "flowchart", "draw", "architecture diagram", "process flow", "ER diagram", "UML", "sequence diagram", "class diagram", "neural network", "model architecture"

Proactive triggers:

  • Explaining a system with 3+ interacting components
  • Describing a multi-step process or decision tree
  • Comparing architectures or approaches side by side

Skip when: a simple list or table suffices, or user is in a quick Q&A flow

Prerequisites

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

# macOS (Homebrew — recommended)
brew install --cask drawio
draw.io --version

# macOS (full path if not in PATH)
/Applications/draw.io.app/Contents/MacOS/draw.io --version

# Windows
"C:\Program Files\draw.io\draw.io.exe" --version

# Linux
draw.io --version

Install draw.io desktop if missing:

Workflow

Before starting the workflow, assess whether the user's request is specific enough. If key details are missing, ask 1-3 focused questions:

  • Diagram type — which preset? (ERD, UML, Sequence, Architecture, ML/DL, Flowchart, or general)
  • Output format — PNG (default), SVG, PDF, or JPG?
  • Scope/fidelity — how many components? Any specific technologies or labels?

Read the full file on GitHub · 474 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. 2mo ago First seen · 474 lines · 68 tokens per session scan A b4cd078c78b7

Subscribe to this mod's changes

drawio-skill is a skill published in the GitHub repository ranxi2001/zero2Agent (1,026 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 7,301 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

drawio-skill compared with skills from other repositories

drawio-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drawio-skillranxi2001/zero2AgentSkill1.0kyesterdayMITA68Codex
ui-designginlix-ai/LangAlphaSkill2.2kyesterdayApache-2.0A24Claude Code, Codex
html-artifactslangchain-ai/open-sweSkill11ktodayMITA52Claude Code, Codex
browserwing-executorMemTensor/MemOSSkill12k2d agoApache-2.0A42Claude Code, Codex
web-designPrism-Shadow/penguin-harnessSkill3.2kyesterdayApache-2.0A51Claude Code, Codex
a2uiPrism-Shadow/penguin-harnessSkill3.2kyesterdayApache-2.0A203Claude Code, Codex
bento-slidesPrism-Shadow/penguin-harnessSkill3.2kyesterdayApache-2.0A48Claude Code, Codex