explaingit

vudinh155/excali-diagram

13PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A Claude Code skill that teaches the AI assistant to generate Excalidraw diagrams (flowcharts, architecture, sequences, mindmaps) as JSON files and render them to PNG using a headless browser.

Mindmap

mindmap
  root((excali-diagram))
    What it does
      Generate Excalidraw JSON
      Render to PNG
      Iterative fix loop
    Diagram Types
      Flowcharts
      Architecture diagrams
      Event sequences
      Mindmaps and ER charts
    Tech Stack
      Python
      Playwright
      Excalidraw
      Claude Code
    Use Cases
      AI-generated diagrams
      Architecture visualization
      Process documentation
    Setup
      Copy diagram folder
      Project or global install
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Ask Claude Code to draw a software architecture diagram and get a rendered PNG file in your project.

USE CASE 2

Generate an approval flow diagram for a business process without manually drawing anything in Excalidraw.

USE CASE 3

Create event sequence or timeline diagrams by describing them in plain English to Claude Code.

USE CASE 4

Install the skill globally to let Claude Code produce hand-drawn-style diagrams across any project.

Tech stack

PythonPlaywrightChromiumExcalidrawClaude Codeuv

Getting it running

Difficulty · easy Time to first run · 5min

Requires `uv` to run the Python renderer and Playwright with Chromium for PNG rendering.

Apache 2.0, use freely for any purpose including commercial, with attribution and license notice required.

In plain English

excali-diagram is a skill for Claude Code, the AI coding assistant, that teaches it how to create diagrams in a format called Excalidraw. Excalidraw is a popular browser-based tool for drawing hand-drawn-style diagrams, and it stores diagrams as JSON files with a .excalidraw extension. This skill gives Claude Code a set of rules and templates so it can generate those files directly without the user needing to draw anything manually. The core idea behind the skill is that a diagram should make an argument rather than just label things with boxes and arrows. The README includes a test for this: if you erased all the text from a diagram, would the structure of the shapes alone still communicate the concept? If not, the diagram should be redesigned. This philosophy is baked into the playbooks the skill uses for different diagram types. The skill covers four categories of diagrams: flowcharts and approval flows, software architecture and data pipeline diagrams, event sequence and timeline diagrams, and hierarchy diagrams including mindmaps and entity-relationship charts. It responds to requests in both English and Vietnamese. When invoked, the skill follows a loop: design the layout, write the Excalidraw JSON region by region, render it to a PNG image using a headless browser (Playwright with Chromium), look at the result, fix any problems, and repeat until the diagram looks right. The Python renderer script is included in the repository and requires a tool called uv to run. Installation means copying the diagram/ folder into a Claude Code skills directory, either at the project level or for your user account globally. The repository includes worked examples for each diagram type as both .excalidraw source files and rendered PNG images. The project is Apache 2.0 licensed.

Copy-paste prompts

Prompt 1
Using the excali-diagram Claude Code skill, draw a software architecture diagram for a three-tier web app with a React frontend, FastAPI backend, and PostgreSQL database.
Prompt 2
Generate an Excalidraw flowchart for a user signup and email verification approval flow, then render it to a PNG.
Prompt 3
Create an event sequence diagram showing how a Stripe webhook payment notification flows through my system to my database.
Prompt 4
Draw a mindmap for planning the features of a new SaaS product and export it as a PNG I can share.
Prompt 5
Install excali-diagram as a global Claude Code skill and generate an entity-relationship diagram for my database schema.
Open on GitHub → Explain another repo

← vudinh155 on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.