draw-io

Edit .drawio diagram XML and export transparent 2x PNGs.

11|Updated Mar 12, 2023
One-click install
npx skills add https://github.com/i9wa4/dotfiles --skill draw-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: draw-io
Source: https://github.com/i9wa4/dotfiles/tree/main/dot.config/claude/skills/draw-io
Command: npx skills add https://github.com/i9wa4/dotfiles --skill draw-io

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires drawio, git, jq, python3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps create, edit, and review draw.io diagrams programmatically, including editing the underlying XML, converting to PNG, and applying layout and AWS icon usage guidelines to keep diagrams consistent across slides and docs.

Core Features & Use Cases

  • XML-based editing: Edit only .drawio files; avoid touching generated PNGs.
  • PNG conversion: Convert .drawio to high-resolution PNGs for presentations.
  • Layout & design rules: Apply font, color, and icon guidelines for consistent visuals.
  • Use case: Convert a set of diagrams to PNGs for a slide deck or documentation.

Quick Start

Run the conversion script on a diagram file, for example: bash dot.config/claude/skills/draw-io/scripts/convert-drawio-to-png.sh assets/my-diagram.drawio

Frequently Asked Questions about draw-io

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

FAQPage Schema
How do I convert draw.io diagrams to PNG for presentations?

Convert .drawio files to high-resolution PNGs using the drawio CLI and conversion script. The script exports 2x PNGs with transparent backgrounds, suitable for slide decks and documentation without manual re-editing.

Can I edit draw.io diagrams programmatically by modifying XML?

Yes, edit .drawio files directly by manipulating their underlying XML structure. This lets you automate layout adjustments, apply design rules, and enforce AWS icon usage across multiple diagrams without opening the GUI.

What's the best way to keep diagrams consistent across slides and documentation?

Apply layout and design rules—font families, colors, and AWS icon guidelines—through XML-based editing and automated PNG export. This ensures visual consistency when diagrams appear in Quarto, reveal.js slides, and architecture documentation.

Do I need to manually adjust coordinates and layout in draw.io files?

No, you can automate coordinate-based layout adjustments by editing the XML directly, then regenerate PNGs. This eliminates manual repositioning for diagram updates and bulk conversions.

Can I use AWS icons in draw.io and enforce their usage programmatically?

Yes, integrate AWS icon sets into .drawio diagrams and enforce their usage through XML manipulation and automated validation. The Skill supports AWS icon integration for architecture visuals and technical diagrams.

What should I edit—the .drawio file or the exported PNG?

Edit only .drawio files; avoid touching generated PNGs. The XML-based workflow ensures edits persist through regeneration and prevents loss of work when diagrams are re-exported.