cd /news/ai-agents/what-is-diagram-design-the-diagram-s… · home › topics › ai-agents › article
[ARTICLE · art-176504] src=munderdiffl.in ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

What is diagram-design? The Diagram Skill for Claude Code and Codex

Cathryn Lavery released diagram-design, an open source MIT-licensed agent skill hosted at cathrynlavery/diagram-design that draws diagrams as a single self-contained HTML + SVG file in the user's brand, with the README counting 52 diagram types as of 26 Nov 2026. Each type ships in three static variants (minimal light, minimal dark, full-editorial), requires no build step, JavaScript or external image dependency, and installs via `npx skills add cathrynlavery/diagram-design` across hosts including Cursor, Claude Code, Codex, GitHub Copilot, Gemini CLI, Cline, Windsurf and Amp. Lavery wrote in the README that the model "already understood the content. What it was missing was taste, so I wrote the taste down: one accent color for the one or two things that matter, 1px hairlines, no shadows, every coordinate on a 4px grid.

key takeaway

diagram-design packages diagram taste as a loadable skill — one accent color, 1px hairlines, no shadows and a 4px coordinate grid across 52 diagram types — emitting a single HTML file with inline SVG and no build step, with PNG export requiring `pip install playwright && playwright install chromium`

by read7 min views3 publishedNov 26, 2026
What is diagram-design? The Diagram Skill for Claude Code and Codex
Image: Munderdiffl (auto-discovered)

diagram-design is an open source agent skill that draws diagrams as one HTML + SVG file. What it makes, how to install it, which agents it names.

Diagram Design, or diagram-design on GitHub, is an open source agent skill that “draws diagrams as one self-contained HTML + SVG file, in your brand”, per its README. The code is at cathrynlavery/diagram-design under the MIT licence, and the README counts 52 diagram types. Checked 26 Nov 2026.

If you run AI agents, Munder Difflin is free and open source: a desktop app that runs a team of AI agents for all kinds of knowledge work, coding included, on your own computer. Its agents run on engines such as Claude Code, Codex and Gemini CLI. The install guide covers setup.

What is diagram-design? # #

diagram-design is a skill: a folder of instructions and references that your agent loads when you ask for a diagram. Per the README, “At startup, the agent sees only the skill name and description. When a request matches, it loads SKILL.md”, and a type’s own reference file loads only when that type is chosen. For how skills work in general, see Claude Code Skills: What They Are, Where They Live and How to Write One.

The README says Cathryn Lavery made it for blog post diagrams. Its “Why I built it” section reads: “The model already understood the content. What it was missing was taste, so I wrote the taste down: one accent color for the one or two things that matter, 1px hairlines, no shadows, every coordinate on a 4px grid.”

Other skills we cover include UI UX Pro Max, a design skill for interfaces, and Superpowers, a skills library for coding agents.

What diagrams does diagram-design make? # #

diagram-design makes 52 diagram types, by the project’s own count in the README, read 26 Nov 2026. Each type comes “in three static variants: minimal light, minimal dark, and full-editorial.” The gallery numbered them 01 to 52 on 26 Nov 2026. They run from Architecture, Flowchart, Sequence, State machine and ER to Quadrant, Gantt, Sankey, Wardley map, Kanban, Exploded axonometric and Git graph.

Each diagram is one HTML file with inline SVG that you open in a browser. The README says “There is no build step, JavaScript, or external image dependency.” You can export the diagram itself to SVG or PNG. PNG export uses Playwright, and the README gives this setup for it: pip install playwright && playwright install chromium.

How do you install diagram-design? # #

The README gives one command for any host that reads Agent Skills, which it says includes Cursor, Claude Code, Codex, Qoder, GitHub Copilot, Gemini CLI, Cline, Windsurf and Amp:

npx skills add cathrynlavery/diagram-design

In Claude Code, the README says the plugin marketplace “gets you updates and the slash commands”:

/plugin marketplace add cathrynlavery/diagram-design
/plugin install diagram-design@diagram-design

In Codex:

codex plugin marketplace add cathrynlavery/diagram-design
codex plugin add diagram-design@diagram-design

In GitHub Copilot:

copilot plugin marketplace add cathrynlavery/diagram-design
copilot plugin install diagram-design@diagram-design

In Factory Droid:

droid plugin marketplace add https://github.com/cathrynlavery/diagram-design
droid plugin install diagram-design@diagram-design --scope user

In Pi, install, then run /reload in an open Pi session:

pi install https://github.com/cathrynlavery/diagram-design

The README also covers Qoder (clone the repo, validate it, then run qoder plugins install ./diagram-design), Kiro, OpenCode, Claude Cowork and Claude Desktop. Claude Desktop’s skill upload “rejects a ZIP with more than 200 files”, so you build a smaller ZIP with python3 scripts/build-claude-skill-zip.py. The README warns: “Official builds come only from this repository.” It says LittleMight, Cathryn Lavery’s company, publishes the plugin directory listings, and a listing under any other name is an unofficial copy.

How do you ask for a diagram? # #

You ask your agent in plain words. These are the README’s examples:

  • “Make me an architecture diagram of my app: frontend, backend, database, Redis cache.”
  • “I need a quadrant showing Q2 projects by impact vs effort.”
  • “Give me a sequence of a bearer call with token refresh on 401.”

Per the README, “The agent picks the type, states its plan, and writes one .html file you can open by double-clicking.”

The fourth README example is Onboard diagram-design to https://yoursite.com, which “pulls your palette and fonts so every diagram after this one matches your site”. On first use in a new project, the skill checks whether its style guide is still the default and asks before it draws. In Pi, /skill:diagram-design calls the skill directly. The README also lists slash commands to import and export, such as:

/diagram-design:import-mermaid README.md --diagram=all
/diagram-design:export-diagram path/to/diagram.html

When does diagram-design help, and what should you check? # #

Per the README, it is “for the diagram you are going to publish”. It can also redraw diagrams you already have: point it at a draw.io, Mermaid, Excalidraw or PlantUML file and it redraws the same content in its own style, ending with a “fidelity ledger” of what got merged, collapsed or dropped.

The README’s style rules start with “One accent color, 1 or 2 focal elements per diagram.” It uses three font families (Instrument Serif, Geist and Geist Mono), “1px hairline borders, no shadows, max border-radius 10px”, and “Every coordinate, width, and gap is divisible by 4.” The default palette is “jet-black + tangerine”; onboarding swaps in your site’s colours and fonts.

What the README says to check:

  • Results vary. “Output quality depends on the model you run it with, and the same prompt can lay out differently twice.”
  • No editable source. “The result is not an editable source format: there is no text to diff in a pull request and no canvas to drag a box on.” For docs that live in Git and change every sprint, “Mermaid is still the better fit.”
  • A self check.python3 skills/diagram-design/scripts/self_check.py <file> should printOK on a generated file.
  • Updates. Annpx skills add install “does not follow marketplace updates automatically”; runnpx skills update diagram-design .
  • When not to draw. Lists go in a table or bullets, and before and after comparisons in a table. The README asks: “would a reader learn more from this than from a well-written paragraph? If no, don’t draw.”

Our view: that last question is the most useful line in the README, and it works before any diagram, with or without the skill.

diagram-design at a glance # #

Checked 26 Nov 2026.

Item Detail
What it is An agent skill that draws diagrams as one HTML + SVG file
Code cathrynlavery/diagram-design on GitHub, created 16 Apr 2026
Made by Cathryn Lavery
Licence MIT
Latest release None on GitHub; plugin manifest at version 2.6.179, bumped 25 Nov 2026
Last push 25 Nov 2026
Stars 73,163 at 03:37 UTC on 26 Nov 2026
Agents in the repo description Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder and Pi
Diagram types 52 per the README, each in three static variants
Output HTML with inline SVG; export to SVG or PNG
Website diagramdesign.dev

FAQ #

Is diagram-design open source?

Yes. The code is on GitHub at cathrynlavery/diagram-design under the MIT licence, per the GitHub API and the README, checked 26 Nov 2026. It has no GitHub releases; its plugin manifest was at version 2.6.179 on 25 Nov 2026.

How do I install diagram-design in Claude Code?

Per the README, run /plugin marketplace add cathrynlavery/diagram-design, then /plugin install diagram-design@diagram-design. Any host that reads Agent Skills can also use npx skills add cathrynlavery/diagram-design.

Which agents does diagram-design work with?

The repo description names Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder and Pi. The README says it works with any host that reads Agent Skills, including Gemini CLI, Cline, Windsurf and Amp.

What diagrams does diagram-design make?

The README counts 52 diagram types, each in three static variants, from Architecture, Flowchart and Sequence to Gantt, Sankey and Git graph. Each diagram is one HTML file with inline SVG, which you can export to SVG or PNG.

Should I use diagram-design or Mermaid?

The README itself says that for docs that live in Git and change every sprint, "Mermaid is still the better fit", and that "Diagram Design is for the diagram you are going to publish."

── more in #ai-agents 4 stories · sorted by recency
── more on @diagram-design 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/what-is-diagram-desi…] indexed:0 read:7min 2026-11-26 · —