By edmondop
Generate professional diagrams from natural language using the best-fit Python library for each diagram type.
A Claude Code plugin that generates professional diagrams from natural language. It routes each request to the best-fit Python library, produces a uv run-compatible script, and saves both the script and SVG output for version control.
Add the plugin to your Claude Code settings (.claude/settings.json):
{
"extraKnownMarketplaces": [
"https://github.com/edmondop/diagram-claude-plugin"
]
}
uv run with inline dependency metadataInstall Graphviz:
# macOS
brew install graphviz
# Ubuntu / Debian
sudo apt-get install graphviz
# Fedora
sudo dnf install graphviz
| Diagram type | Primary library | Alternative | When to pick alternative |
|---|---|---|---|
| Flowchart / pipeline | graphviz | schemdraw | No Graphviz installed; simple linear flow |
| Generic architecture | graphviz | -- | -- |
| Cloud/infra architecture | diagrams (mingrammer) | graphviz | Don't need cloud provider icons |
| ERD | graphviz | -- | -- |
| Pyramid / stacked layers | svgwrite | drawsvg | Prefer cleaner API, less precise control needed |
| Sequence diagram | seqdiag | svgwrite | seqdiag for speed; svgwrite for full control |
| Network / DAG | networkx + matplotlib | graphviz | graphviz for DOT-style output |
| Block diagram | blockdiag | schemdraw | schemdraw for flow-style blocks |
| State machine / FSM | graphviz | -- | -- |
Use the /diagram slash command or just ask Claude to draw something:
/diagram authentication flow for a web app
Draw me an ERD for an e-commerce system with users, orders, and products
Create a cloud architecture diagram showing an AWS setup with ECS, RDS, and ElastiCache
The plugin will classify the diagram type, suggest a library, generate a script, run it, and open the SVG for review. You can iterate on the output until it looks right.
Install just, then run all checks:
just all
This runs ruff (lint + format), pyrefly (type check), markdownlint, and smoke tests for all scripts.
MIT — Copyright (c) 2026 Edmondo Porcu
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub edmondop/diagram-claude-plugin --plugin diagram-claude-plugin7 Italian-themed slash commands: al-dente, arrangiati, bella-figura, coffee-break, dizionario, ma-che-vuoi, nonna-review
Claude Code plugin for Jujutsu — HUD status line, jj workflows, and optional SPR stacked PR support
Generate professional draw.io diagrams from natural language — flowcharts, architecture diagrams, comparisons, and more.
Generate, validate, render Mermaid diagrams from text or code
Excalidraw diagramming toolkit — auto-diagram any codebase, architecture diagrams, data flows, with PNG/SVG/URL export
Diagram generation for Claude Code via UML-MCP (PlantUML, Mermaid, D2, Graphviz, and more) over HTTP MCP.
AI-powered draw.io diagram generator with browser preview. Generate flowcharts, architecture diagrams, mind maps, and technical illustrations from natural language descriptions.
Editorial-quality technical and product diagrams — 13 types rendered as standalone HTML with inline SVG, skinnable to match your brand