By edwingao28
Automatically generate architecture diagrams from codebases by detecting project type, tech stack, and structure, or create them from text on a live Excalidraw canvas for data flows and call chains. Edit hand-drawn sketches via local server and export to PNG, SVG, or URL.
npx claudepluginhub edwingao28/excalidraw-toolkit --plugin excalidrawAutomatically analyze a codebase and generate an architecture diagram with zero configuration. Use when the user asks to "diagram this repo", "visualize the architecture", "auto diagram", or requests a codebase overview without specifying components. Do NOT use when the user provides a specific description, sample diagram, or component list — use the excalidraw skill instead.
Generate architecture diagrams on a live Excalidraw canvas when the user provides specific components, a sample diagram, or a textual description of what to draw. Use for data flow diagrams, parameter threading traces, call chain visualizations, exporting .excalidraw files to PNG/SVG, or converting existing .excalidraw files to image formats. Do NOT use for zero-config codebase analysis — use the auto-diagram skill instead.
Generate, validate, render Mermaid diagrams from text or code
Mermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations.
Claude Code skill for generating high-quality draw.io diagrams with proper font settings, arrow placement, and Japanese text support
Interactive C4 architecture diagrams (Simon Brown's model). Slash commands: /c4m:auto, /c4m:design, /c4m:code, /c4m:prose, /c4m:review, /c4m:update. Negotiable format (Mermaid / Structurizr / PlantUML) and destination (filesystem or MCP — Notion, Linear, Drive).
Create and edit diagrams with Draw.io through natural language commands. Build flowcharts, wireframes, and architecture diagrams.
Write SQL, explore datasets, and generate insights faster. Build visualizations and dashboards, and turn raw data into clear stories for stakeholders.
Share bugs, ideas, or general feedback.
An AI-powered diagramming toolkit for Claude Code. Say "diagram this repo" and watch your codebase turn into an architecture diagram on a live Excalidraw canvas.
> diagram this repo
I found 6 components and 5 connections:
- Next.js Frontend → API Routes (REST)
- API Routes → Prisma ORM → PostgreSQL (SQL)
- API Routes → NextAuth (auth) + Stripe API (payments)
Does this look right?
> looks good
[Building diagram on live canvas...]
npx excalidraw-toolkit init
npx excalidraw-toolkit start
Two commands. init copies skills to ~/.claude/plugins/ and configures the MCP server. start clones, builds, and launches the canvas server (first run), then opens your browser.
Restart Claude Code and try: "diagram this repo"
Verify setup with:
npx excalidraw-toolkit doctor
/plugin marketplace add edwingao28/excalidraw-skill
/plugin install excalidraw@excalidraw-skill
Just say "diagram this repo". No description needed.
The auto-diagram skill runs a 6-phase pipeline:
Works with any language. Context budget prevents blowout on large codebases.
Every diagram goes through an automatic quality check before you see it:
query_elements — detects overlapping shapes, cramped spacing, broken zonesYou never see a broken diagram. The self-critique loop catches layout issues that would otherwise require manual tweaking.
When you know what you want, describe it:
"Draw a microservices architecture with: React frontend, API Gateway,
Auth Service, User Service, Order Service, RabbitMQ, PostgreSQL, Redis"
Or trace data flows:
"Trace how the auth token flows from login to API request to database query"
Or convert from Mermaid:
"Create an excalidraw diagram from this mermaid:
graph TD; A[Frontend] -->|REST| B[API]; B -->|SQL| C[Database]"
Same prompt, two renderers: Markdown (Mermaid via create_from_mermaid) vs Excalidraw (native canvas via batch_create_elements).
| Markdown | Excalidraw |
|---|---|
![]() | ![]() |
| Markdown | Excalidraw |
|---|---|
![]() | ![]() |
| Markdown | Excalidraw |
|---|---|
![]() | ![]() |
| Markdown | Excalidraw |
|---|---|
![]() | ![]() |
The toolkit has three layers — only the first is bundled:
| Layer | What | Bundled? |
|---|---|---|
| Skills (this package) | Markdown prompts that guide Claude's diagram generation | Yes |
| MCP Server (mcp-excalidraw-server) | Bridge between Claude and the Excalidraw canvas — provides batch_create_elements, get_canvas_screenshot, etc. | No — auto-downloaded via npx -y on first use |
| Canvas Server (mcp_excalidraw-canvas) | Live Excalidraw editor running in your browser at localhost:3000 | No — auto-cloned and built on first npx excalidraw-toolkit start |

Two skills, one toolkit:
| Skill | Triggers On | Does |
|---|---|---|
| auto-diagram | "diagram this repo", "visualize the architecture" | Analyzes codebase, discovers components, generates diagram |
| excalidraw | "draw a diagram of X", user provides description/sample | Renders user-specified diagrams with precise layout control |
Both skills use MCP tools to draw on a live Excalidraw canvas:
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim