Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aktsmm avatar

Drawio Diagram Forge

  • 110 installs
  • 23 repo stars
  • Updated August 4, 2026
  • aktsmm/agent-skills

Generate architecture, flow, and system diagrams in draw.io XML from natural-language specs during design and documentation work.

About

drawio-diagram-forge turns spoken or written system descriptions into editable draw.io diagrams for architecture, sequence, and data-flow documentation. It accelerates technical docs during build by producing standardized visual artifacts teams can iterate in draw.io or embed in repos and wikis.

  • draw.io XML output
  • architecture and flow diagrams
  • natural-language to diagram
  • system design visualization
  • documentation-ready exports

Drawio Diagram Forge by the numbers

  • 110 all-time installs (skills.sh)
  • Ranked #634 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aktsmm/agent-skills --skill drawio-diagram-forge

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs110
repo stars23
Last updatedAugust 4, 2026
Repositoryaktsmm/agent-skills

What it does

Generate architecture, flow, and system diagrams in draw.io XML from natural-language specs during design and documentation work.

Files

SKILL.mdMarkdownGitHub ↗

Draw.io Diagram Forge

Generate draw.io editable diagrams using AI-powered workflow.

When to Use

  • Creating architecture diagrams (Azure, AWS)
  • Converting flowcharts from text descriptions
  • Transforming images/screenshots into editable format
  • Generating swimlane, sequence diagrams
  • Editing Azure/AWS icons in existing .drawio files

Choose this skill when the result will need later GUI editing in draw.io, cloud icons, or documentation-facing diagram assets.

When NOT to Use

  • Quick inline diagrams that are easier to keep as Mermaid in README or Markdown
  • One-off text-native diagrams where manual GUI adjustment is not expected

Prerequisites

ToolRequired
VS CodeYes
Draw.io IntegrationYes
GitHub CopilotYes

Quick Start

Create a login flow diagram
Generate an Azure Hub-Spoke architecture diagram
From inputs/requirements.md, create a system diagram

Output Formats

ExtensionDescriptionWhen to Use
*.drawioNative formatRecommended
*.drawio.svgSVG + metadataMarkdown/Web
*.drawio.pngPNG + metadataImage with edit

Output: outputs/

Recommended Delivery Pattern

For documentation-facing diagrams, generate outputs as a pair:

  • name.drawio for editing in VS Code Draw.io
  • name.drawio.svg for README / web embedding

Reserve *.drawio.svg for SVG files that actually contain draw.io metadata. If you hand-author or post-process a plain SVG without embedded draw.io metadata, name it *.svg instead of *.drawio.svg.

If the visible asset started from manual SVG cleanup or hand-authored layout tweaks, still keep a matching name.drawio as the editable SSOT. Do not leave documentation diagrams as SVG-only when future edits are expected.

Recommended markdown pattern:

Use `outputs/name.drawio.svg` as the embedded image path.

- outputs/name.drawio.svg
- outputs/name.drawio

If multilingual variants are needed, keep parallel filenames instead of overwriting a single asset:

  • name.drawio / name.drawio.svg
  • name-ja.drawio / name-ja.drawio.svg

This keeps the editable source, the embeddable image, and the language variants aligned.

For local article drafting, if the Markdown preview surface does not reliably render the SVG variant, it is acceptable to:

  • keep .drawio as the editable source
  • keep .drawio.svg as the web / embeddable artifact
  • temporarily reference a generated *.png from the draft article for local preview stability

At publish time, replace local relative preview paths with the final hosted asset URL.

For Qiita articles, do not leave non-trivial diagrams as Mermaid blocks in the article body. Qiita rendering can be inconsistent. Create a .drawio source, export PNG for Qiita image upload, keep .drawio.svg as the web artifact, and replace the draft-local path with the hosted Qiita image URL before publish.

Workflow

USER INPUT → ORCHESTRATOR → MANIFEST GATEWAY → SVG FORGE → COMPLETED

Quality Gates

ScoreAction
90-100Proceed
70-84Fix and retry
50-69Simplify
0-29Ask user

Limits

LimitValue
Manifest revision2
SVG revision2
Total timeout45min

Cloud Icons

[references/cloud-icons.md](references/cloud-icons.md)

For Azure-centric diagrams, proactively use the official Azure icon set when a verified Azure2 icon exists. Prefer icon + short label over plain rounded boxes for first-class Azure services. Fall back to generic boxes only when the icon is missing, misleading, or would hurt readability.

Enable in VS Code

1. Open .drawio file 2. Click "+ More Shapes" (bottom-left) 3. Enable: Azure, AWS 4. Apply

Azure Format (Critical)

This format applies to both new diagrams and edits to existing .drawio files. When fixing or replacing Azure icons, always use this format.

<!-- WRONG -->
<mxCell style="shape=mxgraph.azure.front_door;..." />

<!-- CORRECT -->
<mxCell style="aspect=fixed;image=img/lib/azure2/networking/Front_Doors.svg;..." />

Azure Icon Preference

  • Use Azure service icons aggressively for Azure architecture diagrams when the service has a verified Azure2 path.
  • Keep the service name as a short text label even when the icon is obvious.
  • Do not mix verified Azure2 icons with generic blue boxes for the same diagram layer unless there is a clear reason.
  • If only some services have official icons, use icons for those services and use neutral fallback boxes for the rest.

References

FileDescription
mxcell-structure.mdmxCell XML structure
cloud-icons.mdAzure/AWS icon guide
style-guide.mdNode colors, edge styles

Scripts

ScriptDescription
scripts/validate_drawio.pyValidate mxCell structure

Troubleshooting

IssueSolution
Blank in draw.ioCheck content attribute
Edges not visibleVerify node IDs
Icons missingEnable Azure/AWS shapes
Text overlaps near outer frameInset top note/callout boxes 16-24px from the panel border, increase box height, and wrap to 3-4 lines. Review at actual embed width before finishing. See style-guide.md Top Callouts / Note Boxes
README image only links to sourceGenerate *.drawio.svg and embed that instead of linking only to *.drawio
SVG is viewable but hard to edit laterKeep a paired *.drawio source and treat it as the editable SSOT; use SVG as delivery output, not as the only source file
VS Code says a .drawio.svg or .drawio file cannot be opened even though the file existsCheck whether the file is actually a plain SVG misnamed as .drawio.svg; if so, rename it to *.svg. If path resolution still looks stale, create a short alias filename such as current-understanding.drawio / current-understanding.svg and repoint links
Local Markdown preview does not show the expected diagramExport *.png from .drawio and use that in the draft article preview. Keep .drawio and *.drawio.svg as the editable and embeddable pair for final delivery
Too many crossing arrowsAlign source/target y to make edges horizontal; spread entryY on shared targets. See style-guide.md Edge Crossing Prevention
Legend inside a containerMove legend outside the outermost box. See style-guide.md Nested Containers
Diagonal edge crosses a boxMove annotation boxes below diagonal endpoints. See style-guide.md Flow Diagrams
Title duplicated in PDF/HTMLRemove title mxCell from diagram; let the document layer handle captions
PNG export blurry or croppedUse draw.io --export --format png --scale 2 instead of browser screenshot. See style-guide.md Export for PDF Pipelines

Done Criteria

  • [ ] .drawio or .drawio.svg file generated
  • [ ] Diagram opens correctly in VS Code Draw.io extension
  • [ ] All nodes and edges visible
  • [ ] Quality gate score ≥ 85
  • [ ] If diagram is referenced from documentation, both editable source and embeddable image are provided
  • [ ] Render review completed at the target embed width with no text overlap, clipping, or border collisions

Related skills

Documentationdocsintegrationsfrontend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.