Free guide
Diagram Design: Give Claude Code, Codex and Cursor Real Diagram Taste
The free agent skill that makes your coding agent draw diagrams like a designer. What it is, how it works, how to install it, and the catches.

The short version
- A skill (a folder of instructions, templates and small scripts) that your agent reads before it draws. It covers 52 diagram types, from architecture and sequence diagrams to quadrants, timelines and swimlanes.
- Its rules are the taste: one accent color for the one or two things that matter, 1px hairlines, no shadows, and every coordinate, width and gap divisible by 4.
- It has over 72,000 GitHub stars and has been on GitHub's daily Trending page all week. Results still depend on the model you run it with, and the output is not an editable source format like Mermaid.
How it actually works
The model knows the content, the skill brings the taste
Its creator, Cathryn Lavery, kept asking Claude for diagrams for her blog and got back what she calls a generic rounded-box thing that looked nothing like the rest of her site. In her words, the model already understood the content. What it was missing was taste, so she wrote the taste down.
One tube of orange and a ruler
Think of handing a painter one tube of orange and a ruler. The accent color goes on one or two focal elements only, everything else stays ink and grey, lines are 1px hairlines, shadows are out, and node positions, widths and gaps all sit on a 4px grid. The README calls that grid rule non-negotiable: it is what keeps the diagrams from feeling AI-generated. The skill also lists the marks of AI slop to avoid, like identical boxes for every node, a shadow on any element and dark mode with a cyan or purple glow.
Plan first, then one file
You ask in plain words, for example: make me an architecture diagram of my app with a frontend, backend, database and Redis cache. The agent picks one of 52 diagram types, states its plan in one short message, then writes a single .html file with the SVG inline. It opens offline with a double-click; the only network request is Google Fonts, and none at all if you ask for system fonts.
Your brand, not the default
Out of the box it uses a jet-black and tangerine palette. Say onboard diagram-design to your website address and it reads your site's colors and fonts, shows you the proposed change, and saves them so every diagram after that matches. On first use in a new project it pauses and asks whether you want to onboard, paste your own tokens or keep the default.
How to set it up
1.Install the skill
This works for any agent that reads Agent Skills, including Claude Code, Codex, Cursor, GitHub Copilot and Gemini CLI. The skills installer has its own telemetry; the first line turns it off for this shell. Install only from cathrynlavery/diagram-design: the README says listings under any other name are unofficial copies.
export DISABLE_TELEMETRY=1 npx skills add cathrynlavery/diagram-design2.Or use the plugin marketplace (Claude Code or Codex)
The marketplace gets you updates and the slash commands (export, import, profile, doctor). In Claude Code run these inside a session; in Codex run them in your terminal.
# Claude Code /plugin marketplace add cathrynlavery/diagram-design /plugin install diagram-design@diagram-design # Codex codex plugin marketplace add cathrynlavery/diagram-design codex plugin add diagram-design@diagram-design3.Match your brand once
Give it your website so every diagram uses your colors and fonts. It shows you the change before saving it.
Onboard diagram-design to https://yoursite.com4.Ask for your first diagram
Ask in plain words. The agent states the type and its plan first, so you can redirect it before it draws. Then double-click the .html file it writes.
Make me an architecture diagram of my app: frontend, backend, database, Redis cache.5.Already have Mermaid or draw.io diagrams?
Point it at the file and ask it to redraw it. It reads Mermaid, draw.io, Excalidraw and PlantUML sources as data and redraws the same content in its style.
Redraw docs/architecture.mmd with diagram-design
The fine print
- License: MIT, so it is free to use, including at work. Each diagram is drawn by your agent, so it uses your plan's usage or API tokens like any other request.
- Quality depends on the model you run it with, and the same prompt can lay out differently twice (the README says so itself).
- The output is one HTML file with an SVG, not an editable source format. For diagrams that live in Git and change every sprint, the README says Mermaid is still the better fit. Diagram Design is for the diagram you are going to publish.
- Fonts load from Google Fonts by default when a diagram is opened. Ask for system fonts if you want no network requests at all.
- Claude Desktop rejects a skill ZIP with more than 200 files, so the full skill can't be uploaded as is. The README has a script that builds a smaller ZIP from a checkout.
- A skill runs with your agent's permissions. Install it from the official repository and read what you install.
FAQ
What is Diagram Design?
An open-source agent skill by Cathryn Lavery that teaches coding agents to draw editorial diagrams: one self-contained HTML and SVG file per diagram, in your brand, from 52 diagram types.
Does it work with Claude Code, Codex and Cursor?
Yes. The README lists Cursor, Claude Code, Codex, Qoder, GitHub Copilot, Gemini CLI, Cline, Windsurf and Amp among the hosts that read Agent Skills. Install it with npx skills add cathrynlavery/diagram-design, or through the Claude Code or Codex plugin marketplace.
Is Diagram Design free?
Yes. It is MIT-licensed, so you can use it for work too. The diagrams are drawn by your own agent, so they cost whatever your agent or model already costs you.
Is it better than Mermaid?
For a diagram you are going to publish in a post, deck or doc, it looks far more designed. For diagrams that live in Git and change often, the README itself says Mermaid is the better fit, because Mermaid is text you can diff and GitHub renders it.
Can it make my diagrams match my brand?
Yes. Ask it to onboard to your website and it pulls your palette and fonts into its style guide, after showing you the change. You can also save named profiles for different clients.
Sources
- Diagram Design on GitHub
- Diagram Design website
- Gallery of diagram types
- SKILL.md (the rules the agent reads)
Facts checked 2026-11-25 against the Diagram Design README, SKILL.md and LICENSE, the GitHub API (72,389 stars, MIT, created 2026-04-16, last push 2026-11-25) and GitHub's daily Trending page (row 9 on Nov 24 and Nov 25), plus our own sandboxed install on 2026-11-23.
Want help building with tools like this?
Join the Shipping Skool community free. Paid members get live bootcamp calls every week and weekly-updated courses.
Join Shipping SkoolMore free guides
Claude Install as App: Turn an Artifact Into a Mac or Windows App
Claude can now turn an artifact into a real app on your computer. What it does, how the three permission levels work, how to set it up, and the fine print.
CLI-Anything: Let Your AI Agent Drive Blender, GIMP and LibreOffice by Typing
The GitHub repo that turns desktop apps into commands your AI agent can type. What it is, how it works, how to install it, and the catches.
GLM-5.4: The Model That Runs Its Layers Twice (and How to Use It in Claude Code)
Z.ai made its new flagship smarter without making it bigger: it sends every token back through the same 28 layers a second time. What that means, how to switch Claude Code to it today, and the catch.