--- description: "Index of draw.io XML templates by diagram type — reference when generating diagrams" triggers: - drawio template - diagram template globs: - "**/*.drawio" --- # Template Index This skill indexes all available templates. Each template demonstrates the correct XML structure with the full `` wrapper, proper layers, edge routing, shadows, and containers. ## Template Files | Template | File | Use For | |----------|------|---------| | Flowchart | `commands/create.md` (Template Library section) | Process flows, algorithms | | Sequence | `commands/create.md` (Sequence Diagram Template) | API flows, request traces | | ER Diagram | `commands/create.md` (ER Diagram Template) | Database schemas | | C4 Architecture | `commands/create.md` (C4 Architecture Template) | System architecture | | UML Class | `commands/create.md` (UML Class Diagram Template) | OO design | | Kubernetes | `commands/create.md` (Kubernetes Diagram Template) | K8s topology | | Swimlane | `commands/create.md` (Swimlane Diagram Template) | Cross-team flows | | Mind Map | `commands/create.md` (Mind Map Template) | Brainstorming | | Simple Flowchart | `skills/xml-generation/SKILL.md` (Example 1) | Quick processes | | AWS Architecture | `skills/xml-generation/SKILL.md` (Example 2) | Cloud infra | | UML Sequence | `skills/xml-generation/SKILL.md` (Example 3) | Detailed sequences | ## Template Requirements Every template MUST include: 1. `` wrapper (never bare ``) 2. `background="none"` on `` 3. At least 2 layers (content + annotations) 4. Title annotation cell on the annotations layer 5. `shadow=1;` on primary shapes 6. `html=1;` with `` tags on labels 7. `edgeStyle=orthogonalEdgeStyle;rounded=1;jettySize=auto;` on edges 8. `strokeWidth=2;` on primary flow edges 9. Explicit `exitX/exitY/entryX/entryY` on edges between non-aligned shapes 10. Containers for grouped elements 11. Legend if 3+ color categories ## Quick Reference: Starting Skeleton ```xml ```