Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

drawio-diagrams

Skill by codebytes

Creates and edits draw.io .drawio.svg diagrams that render as images and stay editable in draw.io. Built for slide decks and docs where diagrams must be revised later in draw.io.

  • Score 61
  • 40 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install drawio-diagrams

Built from the published package, never by AI.

git clone --depth 1 https://github.com/codebytes/marp-slides-template /tmp/marp-slides-template && mkdir -p ~/.claude/skills && cp -r /tmp/marp-slides-template/.github/skills/drawio-diagrams ~/.claude/skills/drawio-diagrams

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install drawio-diagrams in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The drawio-diagrams skill helps an AI assistant create and edit .drawio.svg files. A .drawio.svg is an SVG that also holds the draw.io model in its root content attribute. The same file displays as an image and reopens editable in draw.io, diagrams.net, or the Draw.io Integration VS Code extension. The skill covers the format, authoring mxGraphModel XML, and embedding diagrams in Marp slides.

It includes a dependency-free Node helper, make-drawio-svg.mjs. The helper builds an editable diagram from a JSON node and edge spec, and it extracts the embedded XML from an existing file. The source says to prefer Mermaid for quick throwaway diagrams and to use this skill when a diagram must stay editable in draw.io, such as architecture diagrams.

Written from the project's SKILL.md and checked against it.

What it can do

  • Build from specThe build command renders a JSON node and edge spec to an editable .drawio.svg file.
  • Extract embedded XMLThe extract command prints the mxfile XML of an existing file for inspection or editing.
  • Hand-authored mxGraphModelWrites mxCell vertices and edges directly and wraps them in an mxfile document.
  • CLI exportUses the draw.io desktop CLI to render hand-written XML with the embedded source.
  • Edit existing diagramsExtracts the XML, edits it or the original spec, then regenerates the file.
  • Output verificationChecks that the file is well-formed XML with a content attribute on the root svg.
  • Slide embeddingEmbeds the resulting SVG as an image in Marp slides or docs.

What you need

  • Node.js to run the helper script
  • draw.io desktop CLI or its headless Docker image, only for exporting hand-written XML
  • Draw.io Integration VS Code extension, optional, for visual editing

Try asking

  • Make a draw.io diagram of our login flow as a .drawio.svg
  • Extract the embedded draw.io XML from slides/img/flow.drawio.svg
  • Add a database node to my architecture .drawio.svg and keep it editable

Good to know

  • draw.io re-routes edges on open, so exact edge paths may shift; node geometry is preserved.
  • Marp PDF or PPTX export of local files needs the --allow-local-files flag.
  • Mermaid is the preferred choice for quick throwaway diagrams.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .github/skills/drawio-diagrams/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to drawio-diagrams

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

drawio-diagrams: common questions

What is a .drawio.svg file?

It is a normal SVG that also contains the editable draw.io model in its root content attribute. It renders as an image and reopens fully editable in draw.io.

Does the draw.io helper need npm packages?

No. The source describes the helper as dependency-free and runs on plain Node, with no draw.io install required.

When should I use this instead of Mermaid?

Use it when the diagram must stay editable in draw.io, such as architecture diagrams or figures that will be revised later. The source recommends Mermaid for quick throwaway diagrams.

How do I install drawio-diagrams?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is drawio-diagrams free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is drawio-diagrams safe to use?

It scores 61 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to drawio-diagrams?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

drawio-diagrams Install

Add to stack

Loading.