# Excalidraw diagram

> Excalidraw diagram is an open-source agent skill for design and media. Generates Excalidraw diagram JSON files that visually explain workflows and architectures. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ccomkhj/skills/tree/main/excalidraw-diagram
- **Repository:** https://github.com/ccomkhj/skills
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** excalidraw-diagram
- **Collection:** https://github.com/ccomkhj/skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-02

## About

This skill guides the agent to produce .excalidraw files where the layout itself carries the argument, so relationships, flow and causality read from the shapes rather than from dense labels. It separates simple conceptual diagrams from comprehensive technical ones and asks for concrete evidence such as real names, payloads or code snippets when the subject is a real system.

The workflow is methodical: assess the depth needed, map each concept to a visual pattern like fan-out, timeline or convergence, then build the JSON section by section with descriptive IDs and bound arrows. The skill also instructs the agent to render the result to PNG with a bundled Python script, inspect it for clipped text, overlaps and misrouted arrows, and iterate until the layout holds up.

Colors and brand styling are centralized in a single reference palette file that the agent is told to follow, and element templates are provided for text, lines, rectangles and arrows. Rendering requires uv and a Playwright Chromium install, which the README describes as a one-time setup.

## When your agent uses it

> Create Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/ccomkhj/skills/tree/HEAD/excalidraw-diagram)
- [No network calls found in its scripts](https://github.com/ccomkhj/skills/tree/HEAD/excalidraw-diagram)
- [License: MIT](https://github.com/ccomkhj/skills/tree/HEAD/excalidraw-diagram)

## Features

- **Visual argument design:** Guides layouts where shape and structure mirror the concept being explained.
- **Section-by-section JSON build:** Builds large diagrams in passes with descriptive IDs and cross-section arrow bindings.
- **Evidence artifacts:** Adds realistic snippets, data examples and event names to technical diagrams.
- **Render and fix loop:** Renders the diagram to PNG with a Python script and corrects visual defects.
- **Brand color palette:** Keeps all colors in one editable reference file for consistent styling.
- **Element templates:** Supplies copy-ready JSON templates for text, lines, dots, rectangles and arrows.

## Good for

- Diagram how an API request flows through services
- Visualize a software architecture with real component names
- Explain a workflow as a timeline of steps
- Create a concept map showing how ideas relate
- Draw a data transformation pipeline with sample payloads

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/excalidraw-diagram` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/excalidraw-diagram &&
cp -R "$tmp/excalidraw-diagram" ~/.claude/skills/excalidraw-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/excalidraw-diagram` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/excalidraw-diagram` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/excalidraw-diagram &&
cp -R "$tmp/excalidraw-diagram" ~/.agents/skills/excalidraw-diagram &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/excalidraw-diagram` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/excalidraw-diagram` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/excalidraw-diagram &&
cp -R "$tmp/excalidraw-diagram" ~/.cursor/skills/excalidraw-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/excalidraw-diagram` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ccomkhj/skills.git --path excalidraw-diagram
```

Or copy the folder to `~/.gemini/skills/excalidraw-diagram` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/excalidraw-diagram`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/excalidraw-diagram &&
cp -R "$tmp/excalidraw-diagram" ~/.copilot/skills/excalidraw-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/excalidraw-diagram` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ccomkhj/skills.git
```

Then copy `skills/excalidraw-diagram` into your agent's skills folder as `excalidraw-diagram`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to render diagrams?

The render script uses uv and Playwright. Setup is running uv sync in the references folder and then uv run playwright install chromium.

### Where do I change the colors?

All colors and brand-specific styles live in references/color-palette.md, which the skill reads before generating any diagram.

### What output does Excalidraw diagram produce?

It produces .excalidraw JSON files and renders a PNG next to each file for visual checking.

### When does the skill trigger?

It is meant for requests to visualize workflows, architectures or concepts as Excalidraw diagrams.

### How do I install Excalidraw diagram in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/excalidraw-diagram to use it in all your projects, or to .claude/skills/excalidraw-diagram in one project.

### Does Excalidraw diagram run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Excalidraw diagram?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Excalidraw diagram?

The closest alternatives to Excalidraw diagram are Excalidraw diagram generator, Draw io diagram generator, Drawio, Mqc litigation visual redraw and Lead knowledge animation.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Excalidraw diagram generator](https://ai-powered.com/skills/excalidraw-diagram-generator): Excalidraw diagram generator is an open-source agent skill for developer tools.
- [Draw io diagram generator](https://ai-powered.com/skills/draw-io-diagram-generator): Draw io diagram generator is an open-source agent skill for design and media.
- [Drawio](https://ai-powered.com/skills/drawio): Drawio is an open-source agent skill for files and documents.
- [Mqc litigation visual redraw](https://ai-powered.com/skills/mqc-litigation-visual-redraw): Mqc litigation visual redraw is an open-source agent skill for design and media.
- [Lead knowledge animation](https://ai-powered.com/skills/lead-knowledge-animation): Lead knowledge animation is an open-source agent skill for design and media.
- [Starrykit](https://ai-powered.com/skills/starrykit): Starrykit is an open-source agent skill for design and media.
- [Ideagram](https://ai-powered.com/skills/ideagram): Ideagram is an open-source agent skill for design and media.
- [Canvas design](https://ai-powered.com/skills/canvas-design-agiflow): Canvas design is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/excalidraw-diagram
