drawio-syntax-cells
Installation
SKILL.md
Draw.io Syntax: Cells
Purpose
This skill teaches how to create and configure every type of mxCell in Draw.io XML: vertex cells (shapes, images, containers), edge cells (connectors), UserObject/object wrappers for metadata, HTML labels, placeholder variables, groups, and container nesting.
Critical Rules (Memorize These)
- ALWAYS set
vertex="1"on shapes. Without it, the cell is invisible. - ALWAYS set
edge="1"on connectors. Without it, the cell renders as a shape, not a line. - NEVER set both
vertex="1"andedge="1"on the same cell. - NEVER omit the
parentattribute on any cell exceptid="0". - ALWAYS use
<object>wrapper when attaching custom metadata properties. - ALWAYS XML-escape HTML in
valueattributes:<to<,>to>,&to&,"to". - ALWAYS include
html=1in style when labels contain HTML markup. - ALWAYS include
whiteSpace=wrapin style on vertex cells with text labels.