A designer and developer workspace with a large monitor showing a clean editorial architecture diagram with thin lines and one red accent shape, a laptop and notebook nearby

Diagram Design Explained: Make Your AI Coding Agent Draw Editorial Diagrams That Look Designed

Diagram Design is an open-source agent skill that teaches your AI coding agent to draw editorial diagrams that look designed instead of generic. You describe the diagram in plain words, the agent picks one of 51 diagram types, and it writes a single self-contained HTML file with inline SVG that you can open by double-clicking.

A designer and developer workspace with a large monitor showing a clean editorial architecture diagram with thin lines and one red accent shape, a laptop and notebook nearby
Diagram Design turns a plain-language request into an editorial diagram that looks designed, not generated.

Key facts

  • Project: Diagram Design — editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi
  • GitHub stars: 69,486, with 4,667 forks (checked 21 November 2026)
  • GitHub Trending: trending on 21 November 2026
  • Licence: MIT
  • Created: 16 April 2026
  • Commits: 473, with 162 watchers
  • Releases: 0, with 0 tags; default branch is main
  • Diagram types: 51, according to the README (the repository’s short description says 45)
  • Install: npx skills add cathrynlavery/diagram-design
  • Output: one self-contained .html file with inline SVG, no shadows, no Mermaid
  • Built by: Cathryn Lavery (LittleMight), because Claude kept returning generic rounded-box diagrams for her blog posts

What Is Diagram Design and Why Does It Matter?

Ask an AI coding agent to draw a diagram and you usually get rounded boxes, grey fills, and arrows pointing roughly the right way — readable, but nothing for a blog post or a pitch deck. Diagram Design fixes exactly that gap.

It is not a diagram tool or a drawing app. It is an agent skill: a set of instructions and design rules your coding agent reads and follows, covering 51 diagram types — architecture diagrams, flowcharts, quadrants, sequences, timelines. Ask for a diagram and the agent chooses the right type, states its plan, and writes one self-contained HTML file with inline SVG.

Cathryn Lavery, who runs the design studio LittleMight, kept asking Claude for diagrams for her blog posts and kept getting the same generic rounded boxes back. So she wrote down the design system she wanted — one accent colour, hairline rules, a strict grid — and turned it into a skill any agent could follow. It took off fast: 69,486 stars by 21 November 2026, seven months after its 16 April 2026 creation. More agent tools like it are covered on the KongoTech homepage.

How Do You Install Diagram Design?

Installation is one command, and the skill works with any host that reads Agent Skills:

npx skills add cathrynlavery/diagram-design

Claude Code users can add it through the marketplace instead:

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

Codex, GitHub Copilot, Factory Droid, Qoder and Pi have their own marketplace commands; the skill also works with Cursor, Gemini CLI, Cline, Windsurf and Amp. There is nothing to run and no server to start.

Onboarding pulls your site’s palette and fonts so the diagrams match your brand:

Onboard diagram-design to yoursite.com

Replace yoursite.com with your own domain and the agent adapts the design system to your colours and type — the detail that separates a diagram you can publish from one you must restyle by hand.

A coding agent chat window on a monitor beside a finished clean editorial diagram, with a developer typing a plain-language request
Describe the diagram in plain words and your coding agent picks the type, states its plan, and draws it.

How Does Diagram Design Turn Words Into a Diagram?

The workflow has three steps, and the human only does the first one: describe the diagram in plain words. Three example prompts from the project:

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 token flow with token refresh on 401

Step two belongs to the agent: it picks the diagram type, states its plan, and only then starts drawing — so you can correct the structure before it spends effort on layout.

Step three is the output: one self-contained .html file with inline SVG — no external stylesheets, no web fonts, no JavaScript framework. Open it by double-clicking or drop it into a blog post. The skill can also import from draw.io, Mermaid, Excalidraw and PlantUML, and export to PNG or SVG.

What Makes an Editorial Diagram Different?

The difference is a design system with a few strict rules. First, colour: one accent colour for the one or two things that matter, and restraint everywhere else. Five bright colours competing for attention is noise, not design; one accent tells the reader where to look first.

Second, line weight: 1px hairlines that look printed rather than drawn. Third, geometry: every coordinate sits on a 4px grid. Fourth, absence: no shadows, ever — the fastest way to make a diagram look dated.

Quality is enforced, not just advised: CI checks catch overlaps and clipping, so labels do not collide and elements do not run off the canvas. Accessibility is built in — diagrams are accessible by default, contrast checks run automatically, fonts work offline. The result reads like an editorial illustration: clean, deliberate, easy to scan.

How Does Diagram Design Compare With Mermaid, draw.io and Excalidraw?

These tools solve different problems. Mermaid and PlantUML work by text: you write a short description, the tool lays it out automatically, and it renders on GitHub — ideal for docs that live in a repository and change every sprint, because the diagram is plain text you can diff in a pull request.

Draw.io and Excalidraw work by hand: you drag shapes onto a canvas yourself. Total control, at the cost of total effort.

Diagram Design sits between the two. You describe the diagram to your agent, the agent places the layout on a 4px grid, and the output is one HTML file with inline SVG. The trade is that the result is a finished artefact, not an editable source: no text to diff in a pull request, no canvas to drag shapes on.

The rule of thumb: if the diagram lives in Git and changes every sprint, use Mermaid. If it is going to be published — in a blog post, a talk, a report, a landing page — use Diagram Design. The README says as much: it is for the diagram you are going to publish.

A close-up of a printed editorial diagram with fine hairline connectors and a single red accent shape lying on a desk
One accent colour, 1px hairlines and a 4px grid: the design system that makes Diagram Design diagrams look editorial.

What Are the Honest Downsides?

The README is honest about its limits. First, output quality depends on the model. A strong model follows the design system closely; a weaker one drifts, and the same prompt can lay out differently twice. If you need pixel-identical output every time, an agent-drawn diagram is the wrong tool.

Second, the result is a finished HTML file, not an editable source format. There is no text to diff in a pull request, no canvas to drag, and no way to tweak one label without regenerating the file. For a diagram that changes every sprint, that is a real cost, and Mermaid is still the better fit.

Third, and subtler: beautiful diagrams can hide sloppy thinking. A clean quadrant does not make the underlying analysis correct. Use the skill to present clear thinking, not to disguise unclear thinking.

Who Should Use Diagram Design?

Diagram Design fits anyone who publishes diagrams and is tired of the generic look. Blog posts become figures you would be happy to show a reader; talks and documentation get slides that match your brand palette. And if you are explaining an architecture to your team, the README’s three example prompts are probably already close to diagrams you need this week.

It fits teams that already live inside an AI coding agent. The skill works with Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, Pi, Gemini CLI, Cline, Windsurf and Amp. What Is Univer shows the same shift inside office documents, and AG-UI covers the protocol that lets agents show their work to users.

It does not fit everyone. If your diagrams live in Git and change every sprint, Mermaid’s diffable text is the better choice. If you need pixel-perfect, repeatable output, a hand-drawn tool gives you control an agent cannot promise. And if you never publish a diagram anywhere, the skill solves a problem you do not have. Stitch Skills for Google Stitch makes the same point: install a skill when it matches work you actually do, every day.

A developer comparing a plain generic rounded-box diagram with a refined editorial diagram on two screens
The difference is visible at a glance: generic rounded boxes on one screen, a designed editorial diagram on the other.

Frequently Asked Questions

What is Diagram Design?

Diagram Design is an open-source agent skill that teaches your AI coding agent to draw editorial diagrams. Describe a diagram in plain words, the agent picks one of 51 types, and it writes one self-contained HTML file with inline SVG.

How do I install Diagram Design?

Install it with one command: npx skills add cathrynlavery/diagram-design. Claude Code users can add it through the marketplace with /plugin marketplace add cathrynlavery/diagram-design followed by /plugin install diagram-design@diagram-design.

What diagrams can Diagram Design make?

Diagram Design covers 51 diagram types, according to its README: architecture diagrams, flowcharts, quadrants, sequences and timelines. Describe what you need in plain words and the agent picks the type.

How is Diagram Design different from Mermaid?

Mermaid turns text into an automatically laid-out diagram that renders on GitHub and can be diffed in a pull request — ideal for docs that change every sprint. Diagram Design turns a plain-language description into a designed editorial diagram as one HTML file. Mermaid is for docs that live in Git; Diagram Design is for the diagram you are going to publish.

Can Diagram Design match my brand colours?

Yes. Onboarding pulls your site’s palette and fonts so the diagrams match your brand: run Onboard diagram-design to yoursite.com, replacing yoursite.com with your own domain.

Conclusion

Diagram Design is a small idea with an outsized payoff: stop accepting generic rounded-box diagrams from your AI coding agent and teach it a real design system instead. With 69,486 stars and a trending spot on 21 November 2026, the community has clearly decided this is a problem worth solving. One command installs the skill, a plain-language sentence starts the diagram, and a single self-contained HTML file comes back — clean, accessible, on-brand, and ready to publish. The limits are real, but for the diagram you are going to publish, they are fair trades.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *