Cathryn Lavery published diagram-design, an agent skill that generates editorial-quality diagrams as self-contained HTML and SVG files. The tool supports 52 diagram types and integrates with a broad ecosystem of AI coding agents, including Claude Code, Cursor, GitHub Copilot, and Codex. Released on GitHub on 2026-04-16, the skill shifts diagram generation from text-based rendering and manual canvas editing to model-driven layout with strict design constraints.
The skill produces a single HTML file containing inline SVG, with no JavaScript, no build step, and no external image dependencies. Users can open the file by double-clicking or export it to SVG or PNG. The output style follows a fixed editorial design system: no shadows, 1px hairlines, and every coordinate snapped to a 4px grid. The tool also checks for overlaps and clipping during generation.
Design choices are driven by a "taste" down approach. The skill reserves an accent color for one or two elements the reader should notice first, targeting a density of 4/10. "The highest-quality move is usually deletion," Lavery writes. "Every node earns its place." The tool offers three static variants for each diagram type: minimal light, minimal dark, and full-editorial. It can also match a brand's palette and fonts by importing them from a website URL.
Output format and design constraints
The skill enforces a consistent visual language across all generated diagrams. Instead of relying on a renderer's default theme, the agent places nodes and edges according to the 4px grid and applies the editorial style guide. The output is a self-contained HTML file that renders identically in any modern browser.
Users can customize the style guide by cloning the repository and installing the skill locally. Changes to references/style-guide.md persist in the clone, and saved profiles in ~/.diagram-design/profiles/ survive package updates. The skill includes a /doctor command for diagnostics and a /profile command to manage style settings.
The tool also supports brand matching. Users can onboard the skill to a website URL, and it will pull the site's palette and fonts. Subsequent diagrams generated in that session will match the brand automatically.
Ecosystem integration and installation
diagram-design supports a wide range of agent hosts through the standard Agent Skills protocol. Users can install the skill with a single command:
npx skills add cathrynlavery/diagram-design
The skill works with Claude Code, Cursor, GitHub Copilot, Codex, Qoder, Factory Droid, Pi, Kiro, OpenCode, Gemini CLI, Cline, Windsurf, Amp, Zed, Warp, Roo, and Kilo. For hosts that support marketplaces, such as Claude Code, GitHub Copilot, and Codex, the skill is available through official plugin marketplaces. Users can add the marketplace and install the plugin using the host's native commands.
When installing across multiple hosts, the CLI recommends symlinking the skill to avoid maintaining separate copies. A single canonical copy links into each host's skills directory, so updates propagate automatically. Where symlinks are unavailable, the CLI falls back to copying the skill.
Illustrative image: Mollyroselee / Pixabay
Claude Desktop has a file limit of 200 files for skill uploads, so the full repository cannot be imported directly. Users must build a bounded ZIP file using a provided script. The ZIP includes the skill, references, and templates but excludes gallery pages and animated variants.
Diagram coverage and migration
The skill supports 52 diagram types, covering architecture, data flow, charts, timelines, and more. Types include architecture components, sequence diagrams, state machines, ER models, Wardley maps, service blueprints, and exploded axonometric views. Several types have named variants that share the same reference, such as line charts covering slopegraphs and ridgelines, and scatter plots covering bubble and beeswarm charts.
The skill can also import and redraw existing diagrams. It supports Mermaid, PlantUML, draw.io, and Excalidraw files. Users can ask the agent to redraw an existing diagram in the editorial style, effectively migrating legacy diagrams to the new format. This capability allows teams to modernize their diagram library without manual recreation.
Trade-offs and workflow fit
The tool's design choices involve clear trade-offs. The output is not an editable source format. There is no text to diff in a pull request and no canvas to drag a box on. If a diagram needs to change frequently, users must ask the agent to regenerate it or edit the SVG directly.
Output quality depends on the model running the skill. The same prompt can lay out a diagram differently across two runs. While the 4px grid and design constraints reduce variance, the agent's understanding of the content and layout decisions remain model-dependent.
For teams maintaining diagrams in Git that change every sprint, Mermaid remains the better fit. Text-based diagrams allow version control, code review, and automated rendering. diagram-design targets the diagram you are going to publish, where design quality and brand consistency matter more than editability.
The following comparison summarizes the differences between common diagram approaches:
| Approach | Creation method | Layout | Output format | Editability |
|---|---|---|---|---|
| Mermaid / PlantUML | Writing text | Automatic | Text that renders on GitHub | Edit text source |
| draw.io / Excalidraw | Dragging shapes | Manual | Editable .drawio or .excalidraw file | Edit canvas |
| diagram-design | Describing to agent | Agent on 4px grid | Self-contained HTML + SVG | No text diff; edit SVG |
The skill includes a PRIVACY.md file that lists what data it sends over the network. Users should review this file before installation, especially in enterprise environments. The official builds come only from the GitHub repository, and users should verify the source before installing from third-party listings.
Sources
PNEUMETRON EDITORIAL
Pneumetron's pipeline pairs AI-assisted drafting with human editorial review before publishing — our goal is to make staying informed easier, not to replace real reporting.



