From drawio-diagramming
Critiques draw.io diagram quality using a checklist for XML structure, layout alignment, edge routing, visual styling, sophistication, and platform compatibility before saving .drawio files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/drawio-diagramming:quality-critiqueThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run this critique on every generated diagram XML BEFORE writing the file.
Run this critique on every generated diagram XML BEFORE writing the file. Fix all issues found before saving — do not write substandard diagrams.
<mxfile> wrapping <diagram> wrapping <mxGraphModel>background="none" set on <mxGraphModel> (transparent, not white)id="0" and id="1" parent="0" presentparent references point to existing cellssource/target on edges point to existing verticesrounded=1;jettySize=auto; (no sharp 90-degree bends)strokeWidth=2;exitX/exitY/entryX/entryYjumpStyle=arc;jumpSize=16;dashed=1;dashPattern=8 4;shadow=1; for depthhtml=1;) with <b> for titles#333333 for light fills, #FFFFFF for dark fills)fontStyle=1; (bold)container=1;collapsible=1;)<object> tags where appropriate (services, APIs).drawio.svg with --embed-diagram for editability| Fill Color | Recommended fontColor | Example |
|---|---|---|
#DAE8FC (blue) | #333333 | Services |
#D5E8D4 (green) | #333333 | Data stores |
#FFF2CC (yellow) | #333333 | Decisions |
#F8CECC (red) | #333333 | Errors |
#E1D5E7 (purple) | #333333 | External |
#F5F5F5 (gray) | #333333 | Containers |
#08427B (C4 blue) | #FFFFFF | C4 person |
#438DD5 (C4 mid) | #FFFFFF | C4 system |
#1B1B1B (dark) | #FFFFFF | Dark mode |
#143642 (blueprint) | #DADADA | Blueprint |
When critique finds issues, apply these automatic fixes:
| Issue | Fix |
|---|---|
Missing rounded=1 on edge | Add rounded=1;jettySize=auto; to edge style |
Missing shadow=1 on shape | Add shadow=1; to vertex style |
| Missing layers | Add <mxCell id="layer-notes" value="Annotations" parent="0"/> |
background not set | Add background="none" to <mxGraphModel> |
No html=1 on labeled shape | Add html=1; and wrap value in <b> tags |
| Sharp edge corners | Add rounded=1; to edge style |
| Thin primary edges | Add strokeWidth=2; to primary flow edges |
| No title | Add text cell on annotations layer |
npx claudepluginhub markus41/claude --plugin drawio-diagrammingGenerates and validates draw.io XML diagrams enforcing 23 strict quality rules for structure, styles, fonts, edges, and layout. CLI validator for flowcharts, architecture, and sequence diagrams.
Reference for generating valid draw.io XML diagrams programmatically, including mxGraphModel structure, cell types, style properties, and validation rules for .drawio files.
Generates .drawio architecture diagrams with consistent styles for containers, capabilities, external services, processes, and outcomes. Includes legend and exports to PNG/SVG/PDF/HTML.