drawio-agents-code-validator
Installation
SKILL.md
Draw.io Code Validator
Purpose
This skill defines an 8-stage validation pipeline for Draw.io mxGraph XML. Run this pipeline on EVERY diagram before presenting it to the user or saving it to a file. The pipeline catches structural, style, and geometry errors in order of severity — blocking errors first, warnings second.
Critical Rules (Memorize These)
- ALWAYS run ALL 8 stages — NEVER skip a stage, even if earlier stages pass.
- Stages 1-4 are BLOCKING — If ANY stage from 1 to 4 fails, STOP and fix before continuing. NEVER deliver XML that fails a blocking stage.
- Stages 5-8 produce WARNINGS — Fix these when possible, but they do NOT block delivery.
- ALWAYS report errors in severity order — BLOCKING errors first, then WARNINGS.
- ALWAYS provide a fix for each error — NEVER report an error without its correction.
- NEVER silently fix errors — Report what was found AND what was corrected.
- ALWAYS validate the COMPLETE file — NEVER validate a partial snippet and assume the rest is correct.