Agent skill

Draw.io Diagram Generator

by GRCEngClub in GRCEngClub/claude-grc-engineering

Generates draw.io diagrams as native .drawio files, including GRC workflows and control maps, with optional PNG, SVG or PDF export that stays editable.

Custom licenceAuto-check: notesDevelopment

Install Draw.io Diagram Generator

skills CLI
$ npx skills add GRCEngClub/claude-grc-engineering --skill drawio -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GRCEngClub/claude-grc-engineering drawio --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GRCEngClub/claude-grc-engineering.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/grc-diagrams/skills/drawio .claude/skills/drawio && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
drawio
GitHub stars
419
Token cost
~1.3k tokens
SKILL.md length
566 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
Custom licence

At a glance

Generates draw.io diagrams as native .drawio files, including GRC workflows and control maps, with optional PNG, SVG or PDF export that stays editable.

  • Works in 7 steps: Generate draw.io XML in mxGraphModel… → Write the XML to a .drawio file in the… → Validate XML well-formedness before… → …
  • Drawing a flowchart or architecture diagram as an editable draw.io file
  • SKILL.md covers How to Create a Diagram, Choosing the Output Format, draw.io CLI Location and XML Format, plus 3 more sections
  • Calls npx

What it does

This skill generates diagrams as native draw.io files for requests such as flowcharts, architecture, ER, sequence, class and network diagrams, mockups and wireframes, along with GRC-specific diagrams like control maps, audit processes, risk register flows and compliance architecture. The agent writes draw.io XML in mxGraphModel format to a `.drawio` file in the working directory and checks that the XML is well-formed before calling it ready.

If you ask for PNG, SVG or PDF, it finds the draw.io CLI (on the PATH first, then standard macOS, Linux, Windows and WSL2 locations), exports with the diagram XML embedded so the image stays editable, and deletes the intermediate `.drawio` file after a successful export. Exported files use double extensions such as `name.drawio.png`. If the CLI is missing it keeps the `.drawio` file and tells you to install the desktop app. Edge routing is tidied with `npx @drawio/postprocess` only when it is already available, and JPG is noted as lossy and not editable.

When your agent uses it

  • Drawing a flowchart or architecture diagram as an editable draw.io file
  • Making an ER, sequence or class diagram for documentation
  • Mapping a compliance control or audit process visually
  • Exporting a diagram to PNG, SVG or PDF while keeping it editable

Example prompts

  • “Create a flowchart of our user login process as a draw.io file.”
  • “svg: ER diagram for the orders, customers and invoices tables.”
  • “Draw a control map showing how access reviews feed into the audit evidence process.”
  • “Export the architecture overview as a PDF that I can still edit in draw.io.”

Requirements

  • The draw.io desktop app or CLI, only for PNG, SVG or PDF export
  • Pre-approved tools (allowed-tools): Write, Bash, Read, WebFetch

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Generate draw.io XML in mxGraphModel format for the requested diagram.
  2. Write the XML to a .drawio file in the current working directory using the Write tool.
  3. Validate XML well-formedness before claiming the diagram is ready.
  4. Post-process edge routing when npx @drawio/postprocess is already available. Skip silently if it is unavailable. Do not install it or ask…
  5. If the user requested png, svg, or pdf, locate the draw.io CLI, export with embedded XML, then delete the source .drawio file after a…
  6. If the CLI is not found, keep the .drawio file and tell the user they can install the draw.io desktop app to enable export or open the…
  7. Open the result when the environment supports it. If open fails, print the absolute file path.

What it can do on your machine

Read from SKILL.md and the folder at commit 784fd9a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Write
    • Bash
    • Read
    • WebFetch

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • raw.githubusercontent.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Draw.io Diagram Generator loads about 1.3k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 566 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~96
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Write, Bash, Read, WebFetch

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 566 words (~1,284 tokens).

“Generate draw.io diagrams as native .drawio files. Optionally export to PNG, SVG, or PDF with the diagram XML embedded so the exported file remains editable in draw.io.”

— opening of SKILL.md by GRCEngClub, Custom licence
name
drawio
allowed-tools
Write, Bash, Read, WebFetch

Read the full SKILL.md on GitHub

Files

Just SKILL.md in plugins/grc-diagrams/skills/drawio of GRCEngClub/claude-grc-engineering.

Open the folder on GitHubat commit 784fd9a

Compare with similar skills

Draw.io Diagram Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Draw.io Diagram Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Draw.io Diagram Generator this skillGRCEngClub/claude-grc-engineering419—~1.3kAutomated safety check: NotesCustom licence
Specialist Solution DiagrammerHoangNguyen0403/agent-skills-standard572—~1kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design49k1 repos~7.6kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Draw.io Diagram ReconstructionHKUSTDial/Supervisor-Skills8.8k—~5.4kAutomated safety check: PassMIT
Scibox Diagramjihe520/sci-box2491 repos~983Automated safety check: NotesNone

Similar skills

  • Specialist Solution Diagrammer

    HoangNguyen0403/agent-skills-standard

    Draws one evidence-grounded architecture diagram as an editable draw.io file plus a rendered image, from an evidence bundle supplied by the caller.

    572 GitHub stars~1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    49k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Draw.io Diagram Reconstruction

    HKUSTDial/Supervisor-Skills

    Rebuilds a reference diagram image as an editable, high-fidelity Draw.io file, mixing native elements, SVG icons and cropped PNGs, with a batch workflow for a folder of images.

    8.8k GitHub stars~5.4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Scibox Diagram

    jihe520/sci-box

    制作与修改可编辑的 draw.io / diagrams.net 示意图(.drawio XML),产出 .drawio + PNG/PDF。三条路径:套用内置模板(五带技术路线图、三栏研究框架图、三栏阶段流程图、横版任务流水线图)、从零手写…

    249 GitHub starsUsed in 1 repo~983 tokens
    DevelopmentAuto-check: notes
  • Drawio Diagram Builder

    Will-hxw/drawio-diagram-builder

    Create, edit, replicate, and iteratively refine editable research and technical diagrams in diagrams.net/draw.io (.drawio XML) from prompts, papers, repositories, screenshots, or existing diagrams.

    413 GitHub stars~5.9k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed

More from GRCEngClub/claude-grc-engineering

All 12 skills in this repo
  • Trust Center Builder

    GRCEngClub/claude-grc-engineering

    Builds and deploys a serverless trust center that publishes a company's compliance posture, with gated access to audit reports and an admin dashboard.

    419 GitHub stars~2.6k tokensUpdated 7 days ago
    Auto-check passed
  • GRC Report Context Bootstrap

    GRCEngClub/claude-grc-engineering

    Checks that plugins, collected findings and history exist before a GRC /report command runs, and walks the user through setup instead of producing an empty report.

    419 GitHub stars~1.4k tokensUpdated 7 days ago
    Auto-check: notes
  • Academic Research Companion

    GRCEngClub/claude-grc-engineering

    Guide a research project through the full academic lifecycle — from raw idea to concrete research question, literature grounding, methodology, writing, feedback, and publication.

    419 GitHub stars~2.2k tokensUpdated 7 days ago
    Auto-check passed
  • Access Review Triage

    GRCEngClub/claude-grc-engineering

    Helps you triage a quarterly user access review from an Okta, Azure AD, AWS IAM, GitHub, or generic CSV/JSON export.

    419 GitHub stars~2.4k tokensUpdated 7 days ago
    Auto-check: notes
  • Audit Ready PR Reviewer

    GRCEngClub/claude-grc-engineering

    Reviews pull requests for compliance regressions. An agent skill from GRCEngClub/claude-grc-engineering.

    419 GitHub stars~587 tokensUpdated 7 days ago
    Auto-check: notes
  • Automation Coverage Analysis

    GRCEngClub/claude-grc-engineering

    Composes week-over-week automation coverage narratives. An agent skill from GRCEngClub/claude-grc-engineering.

    419 GitHub stars~1.3k tokensUpdated 7 days ago
    Auto-check: notes

Works with

Questions about Draw.io Diagram Generator

What does Draw.io Diagram Generator do?

Generates draw.io diagrams as native .drawio files, including GRC workflows and control maps, with optional PNG, SVG or PDF export that stays editable. io files for requests such as flowcharts, architecture, ER, sequence, class and network diagrams, mockups and wireframes, along with GRC-specific diagrams like control maps, audit processes, risk register flows and compliance architecture.drawio` file in the working directory and checks that the XML is well-formed before calling it ready.

When should I use Draw.io Diagram Generator?

Draw.io Diagram Generator fits situations like: drawing a flowchart or architecture diagram as an editable draw.io file; making an ER, sequence or class diagram for documentation; mapping a compliance control or audit process visually; exporting a diagram to PNG, SVG or PDF while keeping it editable.

How do I install Draw.io Diagram Generator in Claude Code?

Run `npx skills add GRCEngClub/claude-grc-engineering --skill drawio -a claude-code`. Or copy the skill folder (plugins/grc-diagrams/skills/drawio in GRCEngClub/claude-grc-engineering) into .claude/skills/drawio in your project. Claude Code loads it when a task matches its description.

How do I install Draw.io Diagram Generator in Codex?

Run `npx skills add GRCEngClub/claude-grc-engineering --skill drawio -a codex`. Or copy the skill folder (plugins/grc-diagrams/skills/drawio in GRCEngClub/claude-grc-engineering) into .agents/skills/drawio in your project. Codex loads it when a task matches its description.

Can I use Draw.io Diagram Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GRCEngClub/claude-grc-engineering --skill drawio -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/drawio, .gemini/skills/drawio, .github/skills/drawio and .opencode/skills/drawio in your project.

What does Draw.io Diagram Generator need to run?

Going by SKILL.md and its folder, Draw.io Diagram Generator needs the command-line tools its instructions call (npx). Our summary lists: The draw.io desktop app or CLI, only for PNG, SVG or PDF export. Its frontmatter pre-approves these tools: Write, Bash, Read, WebFetch.

Does Draw.io Diagram Generator access the network?

SKILL.md names 1 domain. As links in the text: raw.githubusercontent.com. This is read from the text; nothing was executed.

Is Draw.io Diagram Generator safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Draw.io Diagram Generator use?

Draw.io Diagram Generator has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Draw.io Diagram Generator use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Draw.io Diagram Generator?

Skills that share tags, products or a category with Draw.io Diagram Generator: Specialist Solution Diagrammer (HoangNguyen0403/agent-skills-standard, 572 stars), Diagram Design (cathrynlavery/diagram-design, 49k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Draw.io Diagram Reconstruction (HKUSTDial/Supervisor-Skills, 8.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Draw.io Diagram Generator?

GRCEngClub (a GitHub organization) maintains it in GRCEngClub/claude-grc-engineering, which has 419 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 4, 2026.

Source: GRCEngClub/claude-grc-engineering on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.