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. What is diagram-design? The Diagram Skill for Claude Code and Codex 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 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. If 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. What is diagram-design? 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 https://munderdiffl.in/blog/claude-code-skills/ . 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 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. What diagrams does diagram-design make? 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 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. 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? 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? 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? 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 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. 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