agentsclimarketplace

Drawio

Skill garyld1962/savviety-skills/.claude/skills/drawio

Generate native .drawio diagram files (flowcharts, ER, sequence, class, architecture diagrams) as draw.io XML, with optional export to PNG/SVG/PDF or a browser URL that opens in app.diagrams.net. No MCP setup required. Triggers on "/drawio", "create a diagram", "draw.io", "flowchart", "sequence/ER/class diagram". When NOT to use: for Azure resource-group / cloud-architecture diagrams, use create-diagram instead.From its SKILL.md

Install
npx -y skills add garyld1962/savviety-skills --skill drawio

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.9 KB, as published. Nobody here has run it

Draw.io Skill for Claude Code

A Claude Code skill that generates native .drawio files, with optional export to PNG, SVG, or PDF (with embedded XML so the exported file remains editable in draw.io) or as a browser URL that opens the diagram directly in app.diagrams.net. No MCP setup required.

How It Works

When you ask Claude Code to create a diagram, it will:

  1. Generate draw.io XML for your requested diagram
  2. Write it to a .drawio file in your current directory
  3. Handle the requested output:
    • PNG / SVG / PDF — export using the draw.io desktop CLI
    • url — compress the XML with Node.js's built-in zlib and open https://app.diagrams.net/#create=... in your browser (keeps the .drawio file as a local copy)
    • (default) — leave the .drawio file as-is
  4. Open the result

Prerequisites

Installation

Copy drawio/SKILL.md to your Claude Code skills directory:

Global (all projects):

mkdir -p ~/.claude/skills/drawio
cp drawio/SKILL.md ~/.claude/skills/drawio/SKILL.md

Per-project:

mkdir -p .claude/skills/drawio
cp drawio/SKILL.md .claude/skills/drawio/SKILL.md

Usage

/drawio create a flowchart for user login

By default, this writes a .drawio file and opens it in draw.io. To export to an image format or open the diagram in the browser, mention the format in your request:

/drawio png flowchart for user login       → login-flow.drawio.png
/drawio svg: ER diagram for e-commerce     → er-diagram.drawio.svg
/drawio pdf architecture overview          → architecture-overview.drawio.pdf
/drawio url flowchart for user login       → opens app.diagrams.net in browser, keeps login-flow.drawio locally

More examples:

/drawio sequence diagram for API auth
/drawio png class diagram for the models in src/
/drawio url architecture overview

Output Formats

FormatOutputEditorDependency
(default).drawio filedraw.io Desktop, or the browser appNone
png.drawio.png (embedded XML)draw.io Desktop, or any viewerdraw.io Desktop (for export)
svg.drawio.svg (embedded XML)draw.io Desktop, or any viewerdraw.io Desktop (for export)
pdf.drawio.pdf (embedded XML)draw.io Desktop, or any PDF viewerdraw.io Desktop (for export)
urlBrowser tab at app.diagrams.net + .drawio file kept locallydraw.io editor in browserNode.js (bundled with Claude Code)

The .drawio.* double extension signals that the file contains embedded diagram XML. Open any of these in draw.io to recover and edit the full diagram. The intermediate .drawio source file is deleted after image export since the exported file contains the complete diagram. In url mode, the .drawio file is kept so you have a persistent local copy to re-edit or share.

url mode uses only Node.js's built-in zlib (deflate-raw compression) and child_process (browser open) — no external dependencies. The resulting https://app.diagrams.net/#create=... URL is the same format used by the MCP Tool Server, so behavior is identical.

XML Reference

The skill references the shared XML generation guide (edge routing, containers, layers, tags, metadata, dark mode, etc.) from GitHub at runtime: shared/xml-reference.md

This is the single source of truth for all draw.io MCP prompts across the repository. No extra files need to be copied during installation.

Why XML Only?

A .drawio file is just mxGraphModel XML. Mermaid and CSV formats require draw.io's server-side conversion — they can't be saved as native files. Claude generates XML directly for all diagram types, which means:

  • No server dependency
  • No conversion step
  • Files are immediately editable in draw.io

Other Variants

This repository offers multiple ways to integrate draw.io with AI assistants:

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.