draw-diagram

Installation
SKILL.md

Draw a draw.io diagram

draw.io is the default diagram tool for every project. This skill is the how: write the .drawio XML using the established visual grammar, then validate and render it so you actually see the result before calling it done.

1. Load the grammar (do not duplicate it here)

The rules and the full visual grammar live in DRAWIO_DIAGRAMS.md, next to this file: a checklist first, then each rule with the case that taught it, then the shape vocabulary, the seven-color palette and the layout skeleton (header, stages, data store column, footer). Read that file first and follow it. Do not reinvent shape semantics or copy the grammar into this skill.

Key points from it (reminders, not a replacement for reading it):

  • Save the .drawio source alongside any rendered PNG/SVG, inside the repo or project folder it documents, so it stays editable.
  • When the PNG goes into a README, a document or a slide, give it alt text that says what the diagram shows in one sentence, never its file name; a diagram one sentence cannot carry also gets its steps as text next to it.
  • Single wide page (2400+ px), header strip of 3 to 5 boxes, stage containers left-to-right, data-store column on the right, footer notes.
  • Reuse the palette for groupings/containers even when using built-in shape libraries (aws4, mscae, azure, gcp, cisco) for domain icons.
  • When a diagram in the same family already exists, copy it and rewrite the contents rather than starting from scratch.

2. Write the XML

Manage cell IDs carefully (every mxCell needs a unique id; edges reference source/target ids) and escape &, <, > in labels.

Installs
2
GitHub Stars
4
First Seen
Nov 7, 2026