Generate Excalidraw diagrams from natural language descriptions. Transforms any prompt into a visual argument using the excalidraw-diagram skill methodology.
User request: $ARGUMENTS
Load methodology: Read the full excalidraw-diagram skill at ~/.claude/skills/excalidraw-diagram/SKILL.md and its references (references/color-palette.md, references/element-templates.md). Follow every instruction in that skill — it is the single source of truth for design, JSON generation, and validation.
Research (if technical diagram): Before designing, explore the codebase or relevant files to understand the actual system, code, data formats, and terminology. Use real names, not placeholders.
Design: Follow the excalidraw-diagram skill's Design Process (Steps 0-4) to plan the diagram before writing any JSON.
Generate: Build the .excalidraw JSON section-by-section as specified in the skill's "Large / Comprehensive Diagram Strategy."
Render & Validate: Mandatory. Run the render-view-fix loop until the diagram passes all checks. Render command:
cd ~/.claude/skills/excalidraw-diagram/references && uv run python render_excalidraw.py <path-to-file.excalidraw>
Then view the PNG with the Read tool. Fix and re-render until clean.
Report: Show the final rendered PNG and report the file path.
.excalidraw (e.g., auth-flow.excalidraw, data-pipeline.excalidraw).references/color-palette.md — do not invent colors.