drawio-impl-templates

Installation
SKILL.md

Draw.io Template Implementation

Purpose

This skill enables correct use of Draw.io templates for starting new diagrams and creating reusable diagram templates. It prevents the most common mistake: rebuilding complex diagrams from scratch when a suitable template exists.

Critical Rules (Memorize These)

  1. ALWAYS use the standard <mxfile> wrapper for template files — NEVER output bare <mxGraphModel> when creating a reusable template.
  2. ALWAYS include both structural cells (id="0" root and id="1" default parent) in every template.
  3. ALWAYS use unique, descriptive cell IDs in templates — NEVER use numeric-only IDs like "2", "3". Use semantic IDs like "header", "process_1", "decision_auth".
  4. ALWAYS include whiteSpace=wrap;html=1; in every shape style within a template.
  5. NEVER hard-code user-specific content in templates — use placeholder text (e.g., "[Process Name]", "[Decision]") that signals replacement.
  6. ALWAYS set grid="1" and guides="1" in the mxGraphModel attributes of every template.
  7. NEVER embed images or external resources in templates — templates MUST be self-contained XML.

Template XML Structure

Full Template File (mxfile wrapper)

Installs
1
GitHub Stars
4
First Seen
Jun 1, 2026
drawio-impl-templates — impertio-studio/draw.io-claude-skill-package