Your architecture diagram is due with the docs, and every option is bad in a different way. Draw it by hand and you spend an afternoon dragging boxes into alignment. Ask an AI and you get the default Mermaid theme: grey boxes, default fonts, the look every AI-generated diagram has. Write Mermaid by hand and it renders on GitHub, but it never matches your brand.
diagram-design takes the third path. You describe the diagram in plain words, and your coding agent draws it as one self-contained HTML file with inline SVG, in your brand's colors and fonts. The repository has 73,159 stars on GitHub (checked November 26, 2026). It covers 52 diagram types — architecture, flowchart, sequence, ER, timeline, quadrant, radar, Sankey, Wardley map, Git graph, and more — each in three variants. Details: diagram-design on AI Skills
What diagram-design is
diagram-design is an agent skill that draws editorial diagrams. Editorial is the operative word: one accent color, reserved for the one or two things the reader should look at first; 1px hairline borders; no shadows; every coordinate, width, and gap on a 4px grid. The highest-quality move is usually deletion — every node earns its place.
Each of the 52 types comes in three static variants: minimal light, minimal dark, and full-editorial. The output is a single .html file with inline SVG — no build step, no JavaScript, no external images — so you open it by double-clicking. By default a diagram's only network request is its Google Fonts load; ask for system fonts and it makes none.
The skill is MIT-licensed, made by Cathryn Lavery, and published under her company LittleMight. Official builds come only from the repository; a plugin listing under any other name is an unofficial copy. There is also a website at diagramdesign.dev with a gallery of every type.
Install and first run
Install commands are quoted from the repo README, not executed here (unverified).
One command installs the skill on any Agent Skills host:
npx skills add cathrynlavery/diagram-design
In Claude Code, the plugin marketplace gets you updates and the slash commands:
/plugin marketplace add cathrynlavery/diagram-design
/plugin install diagram-design@diagram-design
In Claude Code, turn on auto-update in /plugin, Marketplaces, diagram-design — it is off by default for third-party marketplaces.
Codex, GitHub Copilot, and Factory Droid use the same marketplace pattern with their own CLIs:
codex plugin marketplace add cathrynlavery/diagram-design
codex plugin add diagram-design@diagram-design
copilot plugin marketplace add cathrynlavery/diagram-design
copilot plugin install diagram-design@diagram-design
droid plugin marketplace add https://github.com/cathrynlavery/diagram-design
droid plugin install diagram-design@diagram-design --scope user
Pi: pi install https://github.com/cathrynlavery/diagram-design. Qoder clones and validates the native plugin; Kiro imports from the subdirectory URL; OpenCode copies or symlinks skills/diagram-design/ into its skills folder. Claude Desktop rejects archives over 200 files, so build a bounded ZIP with python3 scripts/build-claude-skill-zip.py and upload it under Customize, Skills.
Then ask in plain words — for example, "Make me an architecture diagram of my app: frontend, backend, database, Redis cache." The agent picks the type, states its plan, and writes one .html file. To start from a template instead, copy one from the skill's assets: cp skills/diagram-design/assets/template.html my-diagram.html (template-full.html adds summary cards, template-motion.html adds motion). Browse the full gallery at skills/diagram-design/assets/index.html or the live gallery on the web.
How it actually works
The skill loads progressively. At startup the agent sees only the skill name and description. When a request matches, it loads SKILL.md plus the one type reference the diagram needs. Before drawing, the agent states the chosen type, pattern, size, and planned cuts, then renders.
Brand onboarding is the part that makes the output look like yours rather than like a template. Ask the agent to onboard the skill to your site — onboard diagram-design to https://yoursite.com — and it fetches your homepage, extracts the dominant palette and font stack, maps them to semantic roles (paper, ink, muted, accent, link), shows a proposed diff, and writes your tokens to references/style-guide.md. Contrast checks run automatically against WCAG AA, and you get a fidelity receipt for each sampled URL, color role, and font. On first use in a new project the skill pauses and asks whether to onboard, paste tokens manually, or proceed with the default.
Existing diagrams can be redrawn into the same design system. The import commands cover draw.io, Mermaid, Excalidraw, and PlantUML:
/diagram-design:import-drawio platform.drawio
/diagram-design:import-mermaid README.md --diagram=all
/diagram-design:import-excalidraw whiteboard.excalidraw
/diagram-design:import-plantuml sequence.puml
Four dials control the redraw: format, size, detail (faithful up to 24 nodes, balanced up to 12, simplified up to 7), and audience (engineer, mixed, or executive). The import ends with a fidelity ledger listing what got merged, collapsed, or dropped.
Export is one command — /diagram-design:export-diagram path/to/diagram.html — with --svg-only, --png-only --scale=3, or --registry as needed. PNG rasterizes via Playwright at 2x by default; the one-time setup is pip install playwright && playwright install chromium. Verify a generated file with python3 skills/diagram-design/scripts/self_check.py <file>, which prints OK; add --offline to also fail on the Google Fonts link.
What to use it for
The strongest fit is the diagram you are going to publish. Architecture diagrams for documentation and onboarding docs, sequence diagrams for API docs, flowcharts for runbooks, quadrants for planning, timelines for roadmaps, Sankey and Wardley maps for strategy posts. Anything where the reader learns more from the picture than from a paragraph, and where the picture has to match the rest of the page.
Redrawing is the second fit. Teams accumulate Mermaid diagrams in READMEs and draw.io boards that all look different; point the import at them and they come back in one design system, in your brand, ready for a deck or a docs site.
What to watch out for
First, know when not to use it. Diagrams that live in Git and change every sprint are better as Mermaid: the text diffs in a pull request and GitHub renders it. Quick unicode diagrams, lists, before-and-after comparisons, and one-shape diagrams are all better as text or a table. Before drawing, ask whether a reader would learn more from the diagram than from a paragraph. If not, do not draw.
Second, output quality depends on the model you run it with, and the same prompt can lay out differently twice. The result is not an editable source format: no text to diff, no canvas to drag a box on. To tweak a label, ask the agent again or edit the SVG by hand.
Third, the fonts. By default a diagram loads Instrument Serif, Geist sans, and Geist Mono from Google Fonts — the file's only network request. If the diagram must work fully offline, ask for system fonts or set the font source to system.
Accessibility is built in: every template gives the inline SVG an accessible name and description, decorative icons are hidden from assistive technology, and motion is optional and defaults to none. The skill also ships 87 monochrome IT and cloud icons.
FAQ
How do I make a diagram with diagram-design?
Install it with npx skills add cathrynlavery/diagram-design, then describe the diagram to your agent in plain words — for example, "Make me an architecture diagram of my app: frontend, backend, database, Redis cache." The agent picks the type, states its plan, and writes one .html file.
Can diagram-design redraw my Mermaid diagram?
Yes. Use /diagram-design:import-mermaid README.md --diagram=all, or the matching import command for draw.io, Excalidraw, or PlantUML. Format, size, detail, and audience dials control the result, and the import ends with a fidelity ledger listing what got merged, collapsed, or dropped.
Does diagram-design work with Cursor, Codex, and Copilot?
Yes. The npx skills add command works with any host that reads Agent Skills, including Cursor, Claude Code, Codex, Qoder, GitHub Copilot, Gemini CLI, Cline, Windsurf, and Amp. Claude Code, Codex, Copilot, and Factory Droid also have plugin marketplaces.
How do I export a diagram-design diagram to PNG or SVG?
Run /diagram-design:export-diagram path/to/diagram.html, with --svg-only, --png-only --scale=3, or --registry as needed. PNG rasterizes via Playwright at 2x by default; install it once with pip install playwright && playwright install chromium.
Is diagram-design free?
Yes. It is MIT-licensed and free to use. Official builds come only from the repository at github.com/cathrynlavery/diagram-design; plugin listings under any other name are unofficial copies.
What diagram types does diagram-design support?
52 types, each in minimal-light, minimal-dark, and full-editorial variants — architecture, flowchart, sequence, ER, timeline, quadrant, radar, Sankey, Wardley map, Git graph, Gantt, Kanban, org chart, and more. Browse them all in the gallery at skills/diagram-design/assets/index.html or the live gallery on the web.
The bottom line
Most AI-made diagrams look AI-made because nothing in the process has an opinion: default theme, default fonts, every box the same weight. diagram-design has an opinion — one accent color, hairline borders, a 4px grid, deletion as the highest-quality move — and applies it in your brand. Install it once, onboard your site, and describe the next diagram instead of drawing it. The skill listing and full quickstart are on the diagram-design detail page.