diagram-design
Agent skill for Claude Code, Codex and Cursor that creates clean diagrams as self-contained HTML and SVG.
- Stars
- 72,343 stars
- Forks
- 4.8k forks
- Last push
- today
- Activity
- Active
# Install for any Agent Skills host$ npx skills add cathrynlavery/diagram-designCommands from the project's README. Run them after installing (see below).
Overview
Understand diagram-design in 60 seconds
- What it does
- diagram-design is an agent skill that draws diagrams as a single self-contained HTML and SVG file. You ask your AI agent for an architecture diagram, flowchart, sequence, timeline or one of 52 types, and it writes one file you can open in a browser, styled to match your brand.
- The problem it solves
- Diagrams from AI tools often look generic or need a renderer like Mermaid. This skill gives your agent design rules and templates so it produces clean, static diagrams with no build step, and can pull your site's colours and fonts.
- Why choose it
- Choose it for polished, dependency-free diagrams from a plain-language request. Output is static HTML and SVG, so it suits docs and slides rather than live editing.
- Who should use it
- Developers documenting architecture
- Product people making quadrants and timelines
- Writers adding diagrams to docs and posts
- Users of Claude Code, Cursor, Codex, Copilot and Gemini CLI
- Setup difficulty
You'll need:
- An Agent Skills host such as Claude Code, Cursor, Codex, Copilot, Gemini CLI, Cline, Windsurf or Amp
- Node.js for npx
How diagram-design works
Install the skill and ask your agent in plain words, such as 'make me an architecture diagram of my app: frontend, backend, database, Redis cache'. The agent picks the diagram type, states its plan and writes one .html file you can open by double-clicking.
There are 52 diagram types, each in minimal light, minimal dark and full-editorial variants, including architecture, flowchart, sequence, state machine, ER data model and timeline. Output has no build step, JavaScript or external images.
An onboarding step reads your website to match its palette and fonts for every later diagram. The repository includes a gallery of every diagram, templates, an importer and a cookbook of recipes. Official builds come only from this repository.
Features
Key features
52 diagram types
Architecture, flowchart, sequence, ER, timeline and more.
Single HTML file
Self-contained SVG with no build step or JavaScript.
Brand matching
Onboard to your website's palette and fonts.
Three variants
Minimal light, minimal dark and full-editorial.
Many agents
Works in any Agent Skills host.
Gallery and templates
Browse every diagram and start from a template.
Strengths
- Clean, consistent visual style
- No runtime dependencies in output
- Works across many agents
- MIT licensed
Limitations
- Output is static, not an editable diagram tool
- Claude Desktop needs a specially built ZIP (200-file limit)
- Standalone skills installs don't auto-update
Practical use cases
Architecture docs
Diagram your app's services and data stores.
Planning
A quadrant of projects by impact and effort.
API explainers
A sequence diagram of an auth flow with token refresh.
Installation
Install diagram-design
Commands come from diagram-design's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- A skill-capable AI agent
Supported systems
- Windows
- macOS
- Linux
- 1
Install
Shellnpx skills add cathrynlavery/diagram-design - 2
Update later
Shellnpx skills update diagram-design
- 1
Install with slash commands and updates
Turn on auto-update under /plugin, Marketplaces.
Text/plugin marketplace add cathrynlavery/diagram-design/plugin install diagram-design@diagram-design
- 1
Install
Shellcodex plugin marketplace add cathrynlavery/diagram-designcodex plugin add diagram-design@diagram-design
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Ask your agent for a diagram
TextMake me an architecture diagram of my app: frontend, backend, database, Redis cache.
diagram-design's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Draw your first on-brand diagram
Match your site's style, then generate a diagram.
Before you start
- diagram-design installed in your agent
- 1
Onboard to your brand
TextOnboard diagram-design to https://yoursite.com - 2
Ask for a diagram
TextI need a quadrant showing Q2 projects by impact vs effort. - 3
Open the .html file it writes
Double-click it to view in your browser.
What to expect
A single HTML file with an SVG diagram in your site's colours and fonts.
Next steps
- Browse the gallery for other diagram types
- Try a sequence diagram
- Read docs/cookbook.md for export and import
Costs and requirements
What it costs to run
- License
- MIT.Free
- Skill
- Free.Free
- Agent
- Runs on your agent's plan.Depends
Troubleshooting
Common setup issues
Claude Desktop rejects the skill upload
Its upload limit is 200 files; build a bounded ZIP with python3 scripts/build-claude-skill-zip.py.
Updates don't arrive
Standalone installs don't follow marketplaces; run npx skills update diagram-design, or enable auto-update for the Claude Code marketplace.
Found it under a different publisher
Official builds come only from this repository.
Alternatives
Similar AI repositories
ECC
affaan-m
Add-on system for Claude Code, Codex, Cursor and similar coding agents that adds skills, memory and security checks.
hermes-agent
NousResearch
Personal AI agent from Nous Research that learns and improves the more you use it.
ponytail
DietrichGebert
Agent skill for Claude Code and Cursor that pushes your AI coding agent to write less, simpler code.
cc-switch
farion1231
Desktop app for Windows, macOS and Linux that manages settings for Claude Code, Codex, OpenCode and similar AI coding tools.