Skill to give Claude Code (and any coding agent) the ability to generate beautiful and practical Excalidraw diagrams.
https://github.com/coleam00/excalidraw-diagram-skill.git
A coding agent skill that generates beautiful and practical Excalidraw diagrams from natural language descriptions. Not just boxes-and-arrows - diagrams that argue visually.
Compatible with any coding agent that supports skills. For agents that read from .claude/skills/ (like Claude Code and OpenCode), just drop it in and go.
references/color-palette.md). Swap it out and every diagram follows your palette.Clone or download this repo, then copy it into your project's .claude/skills/ directory:
git clone https://github.com/coleam00/excalidraw-diagram-skill.git
cp -r excalidraw-diagram-skill .claude/skills/excalidraw-diagram
The skill includes a render pipeline that lets the agent visually validate its diagrams. There are two ways to set it up:
Option A: Ask your coding agent (easiest)
Just tell your agent: "Set up the Excalidraw diagram skill renderer by following the instructions in SKILL.md." It will run the commands for you.
Option B: Manual
cd .claude/skills/excalidraw-diagram/references
uv sync
uv run playwright install chromium
Ask your coding agent to create a diagram:
"Create an Excalidraw diagram showing how the AG-UI protocol streams events from an AI agent to a frontend UI"
The skill handles the rest โ concept mapping, layout, JSON generation, rendering, and visual validation.
Edit references/color-palette.md to match your brand. Everything else in the skill is universal design methodology.
excalidraw-diagram/
SKILL.md # Design methodology + workflow
references/
color-palette.md # Brand colors (edit this to customize)
element-templates.md # JSON templates for each element type
json-schema.md # Excalidraw JSON format reference
render_excalidraw.py # Render .excalidraw to PNG
render_template.html # Browser template for rendering
pyproject.toml # Python dependencies (playwright)