excalidraw-generator
Excalidraw Diagram Generator
Generate professional diagrams as valid Excalidraw JSON. Every request flows through four phases — Understand, Propose, Generate, Validate — before the file is written. The body stays lean to respect the agent's context budget; depth lives in references/.
Part of the diagram-generator suite. For precise, editable-in-draw.io output, use
drawio-generatorinstead; thediagram-generatorumbrella routes between the two.
When to Use
The frontmatter description sets triggers and exclusions. Output: a .excalidraw file, plus a companion .md only on request.
Environment Check
If the Agent tool is available, use subagents per Subagent Architecture for large diagrams; fresh-context validation avoids single-pass context overflow. Without it (e.g., Claude.ai), run every phase inline and self-review against the 10 checks.
Repo Sync Before Edits (mandatory)
Run this once: before reading an existing .excalidraw file (Iteration), otherwise before the Phase 4 write. The sync target is the output file's directory.