This handles draw.io diagram files end to end: editing the XML directly, converting to PNG with transparent backgrounds at 2x scale, and managing font settings for Japanese text in Quarto slides. It's opinionated about workflow, treating drawio files as source and using pre-commit hooks to generate PNGs automatically. The real value is in the detailed coordinate adjustment guidance and the checklist for common mistakes like arrows overlapping labels or elements bleeding outside container boxes. It includes AWS icon search tooling and specific rules about layer ordering, which matters more than you'd think when arrows start disappearing behind boxes. If you're maintaining technical diagrams in a Git repo and tired of manual PNG exports, this codifies a lot of hard-won layout knowledge.

skills.sh installs
838
GitHub stars
2.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add softaworks/agent-toolkit --skill draw-io --agent claude-code

Installs into .claude/skills of the current project.

Files

draw.io Diagram Skill

1. Basic Rules

  • Edit only .drawio files
  • Do not directly edit .drawio.png files
  • Use auto-generated .drawio.png by pre-commit hook in slides

2. Font Settings

For diagrams used in Quarto slides, specify defaultFontFamily in mxGraphModel tag:

<mxGraphModel defaultFontFamily="Noto Sans JP" ...>

Also explicitly specify fontFamily in each text element's style attribute:

style="text;html=1;fontSize=27;fontFamily=Noto Sans JP;"

3. Conversion Commands

See conversion script at scripts/convert-drawio-to-png.sh.

# Convert all .drawio files
mise exec -- pre-commit run --all-files

# Convert specific .drawio file
mise exec -- pre-commit run convert-drawio-to-png --files assets/my-diagram.drawio

# Run script directly (using skill's script)
bash ~/.claude/skills/draw-io/scripts/convert-drawio-to-png.sh assets/diagram1.drawio

Internal command used:

drawio -x -f png -s 2 -t -o output.drawio.png input.drawio

Sponsors

Details

Repository
github.com/softaworks/agent-toolkit
Categories
Frontend Development, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Marketing & SEO, Cloud & Infrastructure
First seen
Jun 3, 2026

More from softaworks/agent-toolkit

All 43
1bitjaru avatarss-patternbitjaru/styleseedGenerate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives828skills.sh installs
2mindrally avatarblazormindrally/skillsGuidelines for Blazor development including component lifecycle, state management, and performance optimization823skills.sh installs
3softaworks avatardesign-system-startersoftaworks/agent-toolkitCreate and evolve design systems with design tokens, component architecture, accessibility guidelines, and documentation templates. Ensures consistent, scalable823skills.sh installs
4mindrally avatarionicmindrally/skillsIonic development guidelines for building cross-platform mobile applications with Angular, Cordova, and Firebase integration.822skills.sh installs
5adobe avatarappbuilder-e2e-testingadobe/skillsUse this skill whenever the user wants browser-based end-to-end tests for an Adobe App Builder application. Covers Playwright E2E testing for ExC Shell SPAs, AE800skills.sh installs
6diodeinc avatarreference-designdiodeinc/pcbGrow a component package into a high-quality, sourceable reusable design in Zener. Use when translating a datasheet, application note, or eval design into circu799skills.sh installs