Tag: Mermaid alternative

  • diagram-design: The Free Skill That Teaches Your AI Agent to Draw Diagrams Worth Publishing

    diagram-design: The Free Skill That Teaches Your AI Agent to Draw Diagrams Worth Publishing

    Ask Claude Code for a diagram and you usually get Mermaid — a grey rounded box, an arrow, another grey rounded box, rendered in whatever theme the renderer feels like. Cathryn Lavery got tired of that. She wanted diagrams for her blog posts that looked like the rest of her site, and every time she asked, she got "a generic rounded-box thing that looked nothing like the rest of the site." So she wrote her taste down: one accent colour for the one or two things that matter, 1px hairlines, every coordinate on a 4px grid, and a target density of 4 out of 10 — because, in her words, "the highest-quality move is usually deletion."

    That written-down taste is now a free, MIT-licensed agent skill called diagram-design, and it is #9 on GitHub Trending today with 71,505 stars and 4,773 forks. It is the most visually opinionated thing to hit the trending list in a while, and that is exactly why it is worth covering.

    What it actually is

    diagram-design is not an app and not a standalone program. It is a skill — a set of Markdown reference files, Python scripts and HTML templates — that you install into a coding agent. Once installed, you ask in plain language: "Make me an architecture diagram of my app: frontend, backend, database, Redis cache," or "I need a quadrant showing Q2 projects by impact vs effort," or "Give me a sequence of a bearer token flow with token refresh on 401." The agent picks the diagram type, states its plan, and writes one self-contained HTML file with inline SVG. You open it by double-clicking. No build step, no JavaScript by default, no external images.

    The skill covers 52 diagram types, each in three static variants: minimal light, minimal dark, and full-editorial. The range is genuinely wide. System and architecture types include architecture, deployment, dependency graphs, data flow, ER and database schema, and a medallion diagram for multi-tier data storage. Flow and process types run from flowcharts and sequence diagrams to state machines, swimlanes, event modeling and schedule networks with critical paths. There are charts — bar, line, scatter, radar, treemap, heatmap, Sankey, waterfall, Gantt, timeline, quadrant, Venn, pyramid and funnel — plus specialist types like Wardley maps, fishbone diagrams, and exploded axonometrics: a phone teardown or a mechanical keyboard drawn in 2:1 dimetric projection with the parts lifted apart at equal gaps.

    An architecture diagram drawn with diagram-design: Reader, Cloudflare edge, Astro Origin and a content CMS.
    An architecture diagram drawn with diagram-design: Reader, Cloudflare edge, Astro Origin and a content CMS. Screenshot: github.com/cathrynlavery/diagram-design (docs/screenshots).

    Two things in the design system do most of the work. First, the restraint: one accent colour, hairline rules, a 4px grid, and an explicit instruction that deletion is usually the best move. Second, the accessibility: every diagram carries role="img", aria-labelledby, a title and a description, and contrast is checked automatically against WCAG AA. The default skin is jet-black ink on white-smoke paper with a darkened tangerine accent; fonts are Instrument Serif, Geist and Geist Mono, loaded from Google Fonts by default or swapped for system fonts if you want a fully offline file.

    A quadrant diagram from diagram-design's examples: one accent colour marks the single action item, everything else stays quiet.
    A quadrant diagram from diagram-design’s examples: one accent colour marks the single action item, everything else stays quiet. Screenshot: github.com/cathrynlavery/diagram-design (docs/screenshots).

    Install it in about a minute

    The universal route works on any host that reads Agent Skills:

    npx skills add cathrynlavery/diagram-design

    Update later with npx skills update diagram-design. Claude Code users can install it as a plugin instead, which adds slash commands and updates:

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

    Codex, GitHub Copilot, Factory Droid, Qoder and Pi all have their own plugin commands in the README, and Kiro, OpenCode, Zed, Warp, Roo, Kilo, Gemini CLI, Cline, Windsurf and Amp are supported through the cross-agent skills CLI or a manual copy of the skill folder. Claude Desktop needs a bounded ZIP build because the full skill tree exceeds Desktop's 200-file limit — a Python script in the repo builds it.

    The slash commands are where the skill shows its range: /export-diagram for SVG or PNG output (PNG goes through Playwright at 2x by default), and /import-mermaid, /import-plantuml, /import-drawio and /import-excalidraw to redraw an existing diagram in this design system. Each import ends with a "fidelity ledger" of what was merged, collapsed or dropped, and four dials control the result: format, size, detail (faithful up to 24 nodes, balanced up to 12, simplified up to 7) and audience (engineer, mixed or executive — which rewords, rather than just removing things).

    There is also a brand-onboarding trick that is easy to miss and genuinely useful: ask the agent to "onboard diagram-design to https://yoursite.com" and it fetches your homepage, extracts the palette and font stack, maps them to semantic tokens, shows a proposed diff, and writes the result to a style guide. Your diagrams then match your site instead of the default black-and-tangerine.

    What it costs, and the catch

    The skill itself is free — MIT-licensed, no paid tier, no account, no subscription anywhere in the README. The real cost is whatever your coding agent costs: every diagram is generated by your Claude Code, Codex, Copilot or Cursor plan, or by API tokens. One third-party measurement put a single architecture-diagram run at roughly 13,000 tokens with the skill's skeleton compression, versus about 34,000 sending whole files — treat that as their measurement, not the project's claim. No API keys are required by the skill itself, and the README warns that a plugin listing under any other name is an unofficial copy.

    The honest caveat is in the README itself: "Output quality depends on the model you run it with, and the same prompt can lay out differently twice." The result is also not an editable source format — there is no text to diff in a pull request and no canvas to drag a box on. To change a diagram you ask the agent again or hand-edit the SVG. And the README's own "when not to use" list is refreshingly blunt: diagrams that live in Git and change every sprint should stay in Mermaid, because Mermaid diffs and GitHub renders it; quick unicode diagrams, plain lists and one-shape "diagrams" should be a table or a sentence instead. Diagram-design, by its own admission, is "for the diagram you are going to publish."

    How it differs from the other skill repos

    This is the ninth agent-skill or agent-framework repo this series has covered, so the distinction matters. Google Skills was a catalog of 186 skills. Superpowers was a development methodology. CLI-Anything made command-line tools agent-native. Cursor plugins was a marketplace. Last30days was a research skill. Those were breadth tools — ways to make an agent better at everything.

    diagram-design is the opposite: a single, deep, opinionated craft skill for one output. It does not make your agent smarter in general; it gives it taste in one specific, visible artefact, with a written design system, 52 typed layouts, brand onboarding from your own site, and import and redraw of existing files. That narrow depth — plus the fact that it ships as files, not a service — is what sets it apart from the rest of the cluster.

    It is also, frankly, the most immediately demonstrable repo in the series. You can install it, ask for one diagram, and see the difference in about a minute. If you publish anything with diagrams in it — documentation, blog posts, architecture reviews, investor decks — that minute is worth spending.

    Screenshot: cathrynlavery/diagram-design. The featured image is one of the project's own example diagrams — an exploded axonometric from its docs/screenshots folder.

    Also today: Jensen Huang is back as NVIDIA CEO — five days after the board said he wouldn't be — and Nothing Ear (note) is a pair of AI earbuds that record your meetings and calls.

    Earlier coverage: Google Skills: 186 free agent skills for Google Cloud · Superpowers: the 322K-star framework for coding agents · CLI-Anything makes any software agent-native · Cursor Plugins: 145 free plugins for your AI editor · last30days: the free AI skill that researches any topic in 30 days