AI News
All projects
Skill

Diagram Design: an agent skill that draws editorial diagrams as single HTML files

An agent skill that draws 52 types of editorial diagram as one self-contained HTML and SVG file, styled to match your brand.

diagram-design by cathrynlavery · 74,855 GitHub stars when we found it · added

Diagram Design is an agent skill that makes diagrams from plain-language descriptions. The agent picks one of 52 diagram types and writes a single HTML file with inline SVG, which opens with a double-click. According to the README, each type comes in minimal light, minimal dark and full-editorial variants, and the output needs no build step, JavaScript or external images. An onboarding step can fetch a website's homepage, extract its palette and fonts, and write them into the skill's style guide. The README also says the skill can redraw existing Mermaid, draw.io, Excalidraw and PlantUML files.

The author built it for diagrams on a personal blog, after generic model output did not match the site. Install with npx skills add cathrynlavery/diagram-design. The README lists Cursor, Claude Code, Codex, GitHub Copilot, Gemini CLI and others as supported hosts. Claude Code, Codex, GitHub Copilot and Factory Droid each have their own plugin commands, and Pi uses a Git install. Claude Desktop rejects uploads with more than 200 files, so the author ships a script that builds a smaller ZIP. The README names no API key or paid service. The skill is licensed under MIT.

The README is candid about limits. Output quality depends on the model the agent runs, and the same prompt can lay out differently on separate runs. The result is not an editable source format, so there is no text to diff in a pull request. For docs that change every sprint, the author still recommends Mermaid.

In the author's words

An agent skill that draws diagrams as one self-contained HTML + SVG file, in your brand.

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

Reach for it when a diagram is going to be published and needs one consistent house style rather than a renderer's default theme. Its written rules, one accent colour, 1px hairlines, no shadows and every coordinate on a 4px grid, are a checklist you can adapt for your own style guide.

Works with

Claude CodeCodexGitHub CopilotCursorFactory Droid

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made