{"slug": "what-is-diagram-design-the-diagram-skill-for-claude-code-and-codex", "title": "What is diagram-design? The Diagram Skill for Claude Code and Codex", "summary": "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.", "body_md": "# What is diagram-design? The Diagram Skill for Claude Code and Codex\n\ndiagram-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.\n\nDiagram 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](https://github.com/cathrynlavery/diagram-design). The code is at cathrynlavery/diagram-design under the MIT licence, and the README counts 52 diagram types. Checked 26 Nov 2026.\n\nIf you run AI agents, [Munder Difflin](https://harnessmd.com/download) 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](https://munderdiffl.in/blog/how-to-install-and-use-munder-difflin/) covers setup.\n\n## What is diagram-design? [#](#what-is-diagram-design)\n\ndiagram-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](https://munderdiffl.in/blog/claude-code-skills/).\n\nThe 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.”\n\nOther skills we cover include [UI UX Pro Max](https://munderdiffl.in/blog/what-is-ui-ux-pro-max-skill/), a design skill for interfaces, and [Superpowers](https://munderdiffl.in/blog/what-is-superpowers/), a skills library for coding agents.\n\n## What diagrams does diagram-design make? [#](#what-diagrams-does-diagram-design-make)\n\ndiagram-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](https://cathrynlavery.github.io/diagram-design/) 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.\n\nEach 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`.\n\n## How do you install diagram-design? [#](#how-do-you-install-diagram-design)\n\nThe 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:\n\n```\nnpx skills add cathrynlavery/diagram-design\n```\n\nIn Claude Code, the README says the plugin marketplace “gets you updates and the slash commands”:\n\n```\n/plugin marketplace add cathrynlavery/diagram-design\n/plugin install diagram-design@diagram-design\n```\n\nIn Codex:\n\n```\ncodex plugin marketplace add cathrynlavery/diagram-design\ncodex plugin add diagram-design@diagram-design\n```\n\nIn GitHub Copilot:\n\n```\ncopilot plugin marketplace add cathrynlavery/diagram-design\ncopilot plugin install diagram-design@diagram-design\n```\n\nIn Factory Droid:\n\n```\ndroid plugin marketplace add https://github.com/cathrynlavery/diagram-design\ndroid plugin install diagram-design@diagram-design --scope user\n```\n\nIn Pi, install, then run `/reload` in an open Pi session:\n\n```\npi install https://github.com/cathrynlavery/diagram-design\n```\n\nThe 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.\n\n## How do you ask for a diagram? [#](#how-do-you-ask-for-a-diagram)\n\nYou ask your agent in plain words. These are the README’s examples:\n\n- “Make me an architecture diagram of my app: frontend, backend, database, Redis cache.”\n- “I need a quadrant showing Q2 projects by impact vs effort.”\n- “Give me a sequence of a bearer call with token refresh on 401.”\n\nPer the README, “The agent picks the type, states its plan, and writes one `.html` file you can open by double-clicking.”\n\nThe 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:\n\n```\n/diagram-design:import-mermaid README.md --diagram=all\n/diagram-design:export-diagram path/to/diagram.html\n```\n\n## When does diagram-design help, and what should you check? [#](#when-does-diagram-design-help-and-what-should-you-check)\n\nPer 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](http://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.\n\nThe 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.\n\nWhat the README says to check:\n\n- **Results vary.** “Output quality depends on the model you run it with, and the same prompt can lay out differently twice.”\n- **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.”\n- **A self check.**`python3 skills/diagram-design/scripts/self_check.py <file>` should print`OK` on a generated file.\n- **Updates.** An`npx skills add` install “does not follow marketplace updates automatically”; run`npx skills update diagram-design` .\n- **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.”\n\nOur view: that last question is the most useful line in the README, and it works before any diagram, with or without the skill.\n\n## diagram-design at a glance [#](#diagram-design-at-a-glance)\n\nChecked 26 Nov 2026.\n\n| Item | Detail | \n|---|---|\n| What it is | An agent skill that draws diagrams as one HTML + SVG file | \n| Code | cathrynlavery/diagram-design on GitHub, created 16 Apr 2026 | \n| Made by | Cathryn Lavery | \n| Licence | MIT | \n| Latest release | None on GitHub; [plugin manifest](https://github.com/cathrynlavery/diagram-design/blob/main/.claude-plugin/plugin.json) at version 2.6.179, bumped 25 Nov 2026 | \n| Last push | 25 Nov 2026 | \n| Stars | 73,163 at 03:37 UTC on 26 Nov 2026 | \n| Agents in the repo description | Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder and Pi | \n| Diagram types | 52 per the README, each in three static variants | \n| Output | HTML with inline SVG; export to SVG or PNG | \n| Website | [diagramdesign.dev](https://diagramdesign.dev) | \n\n## FAQ\n\nIs diagram-design open source?\n\nYes. 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.\n\nHow do I install diagram-design in Claude Code?\n\nPer 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`.\n\nWhich agents does diagram-design work with?\n\nThe 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.\n\nWhat diagrams does diagram-design make?\n\nThe 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.\n\nShould I use diagram-design or Mermaid?\n\nThe 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.\"", "url": "https://wpnews.pro/news/what-is-diagram-design-the-diagram-skill-for-claude-code-and-codex", "canonical_source": "https://munderdiffl.in/blog/what-is-diagram-design/", "published_at": "2026-11-26 00:00:00+00:00", "updated_at": "2026-11-26 04:12:55.963623+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "generative-ai"], "entities": ["diagram-design", "Cathryn Lavery", "Claude Code", "Codex", "GitHub Copilot", "Gemini CLI", "Cursor", "Playwright"], "also_reported_by": [], "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`", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/what-is-diagram-design-the-diagram-skill-for-claude-code-and-codex", "markdown": "https://wpnews.pro/news/what-is-diagram-design-the-diagram-skill-for-claude-code-and-codex.md", "text": "https://wpnews.pro/news/what-is-diagram-design-the-diagram-skill-for-claude-code-and-codex.txt", "jsonld": "https://wpnews.pro/news/what-is-diagram-design-the-diagram-skill-for-claude-code-and-codex.jsonld"}}