Excalidraw Diagram

Draws Excalidraw diagrams of workflows, systems and ideas that explain through their structure, then renders and fixes them until they look right.

Design & Coversexcalidrawdiagramsvisual explanationflowchartsby coleam005.2kGitHub

What it is

Excalidraw Diagram lets an AI agent create diagrams as Excalidraw files. Excalidraw is a free, sketch-style whiteboard tool, and its files can be opened and edited at excalidraw.com. The skill is for anyone who explains things visually, such as teachers, writers, video creators, consultants and product teams, and wants a diagram of a workflow, a system or a concept without drawing it by hand. Its examples lean toward technical topics, but it also handles simple concept diagrams.

Its core rule is that a diagram should argue, not just display. Instead of a grid of identical boxes, each idea gets a visual pattern that mirrors what it does: a fan-out for one-to-many, a funnel for combining, a timeline for steps, a loop for cycles. Text floats freely unless a shape adds meaning, all colors come from one palette file you can change to match your brand, and technical diagrams include real examples such as actual data formats. Large diagrams are built one section at a time.

After drafting, the agent renders the diagram to a PNG image with a bundled script, looks at the result and fixes overlaps, clipped text, stray arrows and uneven spacing, usually over two to four rounds. You end up with an editable .excalidraw file and a PNG preview. The renderer needs a one-time setup of some Python tools and a headless browser, so it suits agents that can run commands.

What it can do

  • Turns a description of a process, system or idea into an editable .excalidraw file.
  • Picks visual patterns such as fan-out, convergence, timeline, tree, cycle or side-by-side to match each concept.
  • Adds real examples, such as code snippets, data samples or interface mockups, to technical diagrams.
  • Renders the diagram to PNG and keeps fixing overlaps, clipped text and misrouted arrows.
  • Uses a single color palette file you can edit to match your brand.
  • Builds large diagrams section by section so the file stays valid.

When to use it

  • You are making a YouTube explainer and need a clear diagram of how a piece of software works.
  • You want to show your team the path from a customer request to delivery on one page.
  • You are writing a blog post about a mental model and want a sketch-style illustration of it.
  • You need diagrams in your company colors and want every future diagram to follow them.

How it works

  1. 1The agent decides whether you need a simple concept sketch or a detailed technical diagram, and researches real details for technical topics.
  2. 2It maps each concept to a visual pattern and plans how the eye should move through the diagram.
  3. 3It writes the Excalidraw file, one section at a time for large diagrams, using colors from the palette file.
  4. 4It runs the bundled render_excalidraw.py script, which uses Playwright and a headless Chromium browser to produce a PNG.
  5. 5It views the PNG, fixes layout problems and repeats until the diagram passes its quality checklist.

Try asking

“Create an Excalidraw diagram showing how an online order moves from checkout to delivery.”
“Draw a diagram that explains the difference between habits and goals.”
“Make an Excalidraw diagram of how a chatbot looks up answers in a database.”
“Set up the Excalidraw diagram skill renderer.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add coleam00/excalidraw-diagram-skill
pnpm
pnpm dlx skills add coleam00/excalidraw-diagram-skill

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the excalidraw-diagram-skill folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/coleam00/excalidraw-diagram-skill.git ~/.claude/skills/excalidraw-diagram-skill

Then just ask in plain language, for example: “Create an Excalidraw diagram showing how an online order moves from checkout to delivery.”