drawio-syntax-connections
Installation
SKILL.md
Draw.io Syntax: Connections
Purpose
This skill teaches how to connect shapes with edges in Draw.io mxGraph XML. It covers connection types, edge routing algorithms, waypoints, self-loops, custom connection points, and edge label positioning.
Critical Rules (Memorize These)
- ALWAYS set
edge="1"on every connector cell. - ALWAYS set
sourceandtargetto valid vertex IDs. NEVER create edges without both attributes. - ALWAYS use
relative="1"on edge<mxGeometry>. - NEVER hardcode waypoints when an
edgeStylecan auto-route the path. - NEVER set both
vertex="1"andedge="1"on the same cell. - ALWAYS use
html=1in the edge style when labels contain HTML.