Diagram Design: an agent skill that draws on-brand diagrams from a plain-English prompt

Diagram Design agent skill cover image

If you have ever lost half an hour dragging boxes around to make one architecture sketch, this skill is aimed at you. Diagram Design (cathrynlavery/diagram-design) is an agent skill: you describe a diagram to your coding agent, and it writes one self-contained HTML file with the SVG drawing inside. As of Nov 30, 2026 the repository has 75,430 GitHub stars and an MIT license. This guide is based on the README, the privacy policy and SKILL.md. I did not install or run it, so there are no "in our tests" claims below.

Quick facts

ItemDetails
NameDiagram Design (cathrynlavery/diagram-design)
AuthorCathryn Lavery, LittleMight
LicenseMIT
GitHub stars75,430 (as of Nov 30, 2026)
Created / last pushApr 16, 2026 / Nov 26, 2026
What it doesTurns a prompt into one HTML file with inline SVG
Diagram types52, each in minimal light, minimal dark and full-editorial variants
What you needAn agent that reads Agent Skills (Claude Code, Codex, Cursor and others)

The diagram-design repository front page

The screenshot above is the repository front page. The About panel lists the 52 diagram types, the MIT license and 75.4k stars.

What problem it solves

The author wanted diagrams for blog posts that matched the rest of the site. Asking Claude for one produced a generic rounded-box picture that looked nothing like the site. In the author's words, the model already understood the content and was missing taste, so the taste was written down as rules.

The rules are specific: one accent color reserved for the one or two things the reader should look at first, 1px hairline borders, no shadows, and every coordinate, width and gap divisible by 4. That is the difference between this and a default flowchart.

How it compares with Mermaid and draw.io

The README includes a comparison table, summarized here:

Mermaid / PlantUMLdraw.io / ExcalidrawDiagram Design
You make it byWriting textDragging shapes by handDescribing it to your agent
Change it laterEdit the textEdit the canvasAsk the agent again, or edit the SVG
OutputText that renders on GitHubAn editable .drawio or .excalidraw fileOne HTML file with inline SVG

The author is upfront about the downsides. 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, so for docs that live in Git and change every sprint, Mermaid is still the better fit. Diagram Design is for the diagram you are going to publish.

Install

The skill works with any host that reads Agent Skills. The README names Cursor, Claude Code, Codex, Qoder, GitHub Copilot, Gemini CLI, Cline, Windsurf and Amp. One command installs it:

npx skills add cathrynlavery/diagram-design

In Claude Code, the plugin marketplace route also gets you updates and the slash commands:

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

after installing, your agent can load the diagram-design skill.

The README says official builds come only from this repository, and a listing under any other name is an unofficial copy. Check the name before you install.

Prompts to try

These are the example requests from the README. The agent picks the diagram type, states its plan, then writes one .html file you can open by double-clicking.

Copy-paste prompt
Make me an architecture diagram of my app: frontend, backend, database, Redis cache.
Copy-paste prompt
I need a quadrant showing Q2 projects by impact vs effort.

Architecture diagram from the live gallery

This is the first gallery example, "Content site in production". It runs from a Reader (Browser) through Cloudflare Pages to an Astro Origin, which reads an MDX Bundle and queries a Content CMS. The accent color is used on one box only, the Astro Origin.

Quadrant diagram from the live gallery

The quadrant example plots content ideas by impact and effort. Flowcharts, timelines and radar charts are also among the 52 types.

A safe first prompt

Before you let any new skill loose on your project, start with a read-only request. Paste this into your agent after installing, or even before, by pointing it at the repository:

Copy-paste prompt
Read the README and SKILL.md of cathrynlavery/diagram-design and tell me in three lines what it does and what it does not do. Do not install or run anything.

It costs nothing, and it gives you a second opinion on the skill that is not mine.

When not to use it

The README has an honest "when not to use this skill" list. Skip it for diagrams that live in Git and change every sprint, where Mermaid diffs cleanly and GitHub renders it. Skip it for quick unicode diagrams in tweets or terminal output. Lists of anything belong in a table or bullets, and a before-and-after comparison belongs in a table too. A single box with a label is just a sentence.

The README suggests one test before you draw anything: would a reader learn more from this than from a well-written paragraph? If the answer is no, do not draw it.

How you know it worked

The README gives a short checklist. A request should produce one .html file that opens by double-clicking, works offline and makes no network requests beyond Google Fonts. There is also a check script, run as python3 skills/diagram-design/scripts/self_check.py on the generated file, which should print OK. If any of these fail, the README says that is a bug worth filing.

Matching your brand

Out of the box, diagrams use a jet-black and tangerine palette. To use your own colors, give the agent your website address and it pulls the palette and fonts so every later diagram matches.

Copy-paste prompt
Onboard diagram-design to https://yoursite.com

The skill can also redraw existing files from draw.io, Mermaid, Excalidraw or PlantUML in this design. On first use, SKILL.md has the agent ask whether you want to customize the style guide when it is still on the defaults.

AI agent stack exploded diagram from the live gallery

This one is the exploded axonometric example: interface, agent harness, skills and tools, pulled apart into layers.

Exporting to PNG and SVG

You can export just the diagram for Figma, slides or social cards. PNG export uses Playwright and needs a one-time setup:

pip install playwright && playwright install chromium

Caveats and the safety check

Before writing this up I read SKILL.md without running anything. I did not see a remote script piped into a shell, file deletion commands, hidden instructions or a request for keys. The only unusual step is the first-run question about the style guide. My verdict is APPROVE, with the limit that I have not executed the code.

I have not installed or run this skill. I only read the README, the privacy policy and SKILL.md. A high star count does not prove safety, so read SKILL.md yourself before installing.

The privacy policy says there is no server, no accounts, no analytics and no telemetry. Diagrams do load fonts from Google Fonts, so Google can receive the viewer's IP address and browser details when a diagram is opened. The skill itself is free under the MIT license, but you still need an agent to run it. For a related skill that cuts token use, see our guide to reducing Claude Code token usage.

FAQ

Do I need Claude Code?

No. The README lists Cursor, Codex, GitHub Copilot, Gemini CLI and other hosts that read Agent Skills.

Can I edit the diagram by hand?

It is not an editable source format, so you cannot drag boxes on a canvas. The README's table says to ask the agent again or edit the SVG.

Sources

댓글

이 블로그의 인기 게시물

NotebookLM Is Now Gemini Notebook: How to Use It, Free Limits and Audio Overviews

NotebookLM Is Now Gemini Notebook: How to Use It, Free Limits and Audio Overviews

One UI 9.5 Beta: Who Can Join, How to Apply, and What's New on Galaxy S26

One UI 9.5 Beta: Who Can Join, How to Apply, and What's New on Galaxy S26

Reduce Claude Code Token Usage: Install and Use the Graphify Skill

Reduce Claude Code Token Usage: Install and Use the Graphify Skill

Samsung AI Glasses: Gentle Monster Pre-Orders Sold Out, Dec 10 Launch, Prices, Phone Support and How They Compare to Ray-Ban Meta

Samsung AI Glasses: Gentle Monster Pre-Orders Sold Out, Dec 10 Launch, Prices, Phone Support and How They Compare to Ray-Ban Meta

Claude Plans Explained: Free vs Pro vs Max vs Ultra, and How the Limits Really Work

Claude Plans Explained: Free vs Pro vs Max vs Ultra, and How the Limits Really Work

Linking a Foreign Card to Alipay: Setup Steps, the 200-Yuan Fee Line, and Limits

Linking a Foreign Card to Alipay: Setup Steps, the 200-Yuan Fee Line, and Limits