drawio

Generate draw.io diagrams from XML and export to PNG, SVG, or PDF.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Mar5929/claude-toolkit --skill drawio-mar5929
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drawio
Source: https://github.com/Mar5929/claude-toolkit/tree/main/config/skills/drawio
Command: npx skills add https://github.com/Mar5929/claude-toolkit --skill drawio-mar5929

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation and export of visual diagrams using draw.io, streamlining the process of illustrating concepts, architectures, and workflows.

Core Features & Use Cases

  • Diagram Generation: Create diagrams from scratch using draw.io XML.
  • Format Export: Export diagrams to PNG, SVG, or PDF with embedded XML for editability.
  • Use Case: Generate an architecture diagram for a new microservice, export it as a PNG, and embed it directly into your project documentation.

Quick Start

Use the drawio skill to create a flowchart for the user login process and save it as a .drawio file.

Frequently Asked Questions about drawio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a draw.io diagram from XML and export it as a PNG?

To generate a draw.io diagram, define the structure using draw.io XML, then export the native .drawio file to PNG, SVG, or PDF. The export process embeds the diagram XML directly into the output file for continued editability.

Can I export draw.io architecture diagrams to PDF with embedded XML?

Yes, you can export draw.io architecture diagrams to PDF format. The export mechanism embeds the diagram XML within the PDF output, ensuring the visual architecture remains fully editable when reopened later.

What is the best way to automate flowchart creation using draw.io XML?

Automating flowchart creation involves defining the flowchart nodes and edges within a draw.io XML structure. This XML is processed to generate a native .drawio file, which can then be automatically exported to SVG or PNG.

Do I need the draw.io CLI to export diagrams to SVG or other formats?

Yes, handling diagram export to SVG, PNG, or PDF formats requires the draw.io CLI. The CLI processes the native .drawio files generated from your XML structures and manages the format conversion.

Why does my exported draw.io diagram need embedded XML?

Exported draw.io diagrams need embedded XML to preserve the underlying structural data of the diagram. This ensures that exported PNG, SVG, or PDF files can be imported back and edited without losing structural fidelity.

When do I need to export a microservice architecture diagram as a .drawio file?

You need to export a microservice architecture diagram as a .drawio file when you want to embed it into project documentation while retaining the ability to edit the architecture later. The native .drawio format stores the structural XML data.