Mermaid Architect (design-doc-mermaid)
SpillwaveSolutions/design-doc-mermaidA Mermaid diagram and design-doc skill with a 23 KB router, 11 document templates, guides and scripts to validate and render diagrams with mermaid-cli.
A diagram skill that writes 45 diagram types as one self-contained HTML and SVG file in your brand, with onboarding, import and PNG export.
A deep, well-documented skill with validators, privacy notes and an offline output; the only network use is optional Google Fonts and Playwright for PNG export.
diagram-design makes an agent draw diagrams as a single HTML file with inline SVG that opens by double-clicking, in an editorial style with no shadows. The SKILL.md (about 31 KB) covers 45 diagram types, from architecture, flowchart, sequence and state machine to ER models, timelines, swimlanes, quadrants, radar, treemaps, waterfalls and exploded axonometric views. About 63 reference files describe how each type is laid out, and around 220 template and asset files supply examples and a 87-icon set for IT and cloud diagrams. The agent picks the type, states its plan, and writes the file.
A style guide holds color and font tokens. An onboarding step fetches your website, pulls your palette and fonts, checks WCAG AA contrast and writes tokens so later diagrams match your brand. Audience settings (engineer, mixed, executive) change the wording rather than the diagram count. Scripts import diagrams from draw.io, Mermaid and Excalidraw files, run validators, and export PNG or SVG; PNG uses Playwright and needs a one-time chromium install. The CI workflow runs lint gates for skin, render and geometry checks. By default the generated page loads Instrument Serif and Geist fonts from Google Fonts, its only network request; choosing system fonts removes it. The README links a PRIVACY.md. It is MIT licensed, and the project shows very high adoption.
A 31 KB SKILL.md with about 63 reference files, 6 scripts and around 220 template and asset files, plus CI lint gates, but no behavioral evals.
Counted from the repository file tree. How we score depth.
The workflow is the same in every host that reads Agent Skills. Install the skill, set up your brand once, then describe the diagram in plain words.
npx skills add cathrynlavery/diagram-design. In Claude Code you can use the plugin marketplace instead (/plugin marketplace add cathrynlavery/diagram-design, then /plugin install diagram-design@diagram-design), which also gives you updates and the slash commands.references/style-guide.md and checks whether the tokens are still the shipped defaults (paper #f5f5f5, ink #2d3142, accent #bf4520). If they are, it stops and asks how you want to customize: (a) website URL, (b) installed skill, (c) local folder or design system, (d) paste tokens, (e) keep default, or (f) load a saved profile. The SKILL.md tells the agent not to silently ship default-skinned diagrams into a branded project. Expect this pause, because it is part of the design..html file. Double-click it to open it in a browser tab or window.pip install playwright && playwright install chromium. SVG export does not need that browser step.For the OAuth-style sequence prompt above, the README says the skill uses the ALT combined-fragment grammar described in type-sequence.md. The repo ships example-sequence-oauth.html so you can see the expected result before you run the prompt yourself. The repo's docs/cookbook.md collects operator recipes for first diagrams, brand setup, import, export, validation and reusable prompts.
Every diagram reads its colors and fonts from one file, skills/diagram-design/references/style-guide.md. The README says everything downstream reads from there, so changing a token there changes the look of every later diagram. That makes the style guide the source of truth for your diagram design system. Avoid patching colors into individual HTML files.
When you onboard from a website, the skill maps parts of your site onto named tokens:
| On your site | Token |
|---|---|
<body> background |
paper |
| Primary text color | ink |
| Secondary or caption text | muted |
| Cards or containers | paper-2 |
| Most-used brand color (CTA, link, heading) | accent |
Before it writes the tokens, the skill checks WCAG AA contrast for ink over paper. Diagram labels are small (the README cites 9 to 12px), so a brand color that passes on a marketing page can still fail inside a diagram. When that happens, the skill proposes an adjusted value and explains why. Expect your diagram palette to differ slightly from your site if your site runs close to the contrast limit.
You can skip onboarding and edit the table in style-guide.md by hand. That option fits teams whose palette lives in a design system document rather than on a public website.
For several brands or clients, use profiles. The SKILL.md describes a project .diagram-design marker, resolved according to references/profiles.md. A marker that resolves selects its profile and skips the first-run gate. Option (f) at the gate loads a saved profile. profiles.md also covers failure handling, the protected default and save behavior, so read it before you set up more than one brand.
The audience setting is separate from the brand. It has three values, engineer, mixed and executive, and changes the wording on the diagram, not the number of boxes. The README's example shows one node labeled Auth Service / JWT · RS256 · :8443 for engineers, Auth Service / token check for a mixed audience, and Sign-in for executives. You can keep one data flow or architecture diagram and relabel it for different readers. You do not have to maintain separate versions.
With 45 types available, the main design decision is which type fits your content. The SKILL.md handles this in two stages: "Semantic patterns describe behavior; type references describe layout." Its selection section is titled "semantic pattern, then visual type." The agent first works out what your content does (a process with steps, a system with components, a comparison along two axes, change over time), then picks the layout that shows it.
Prompts work better when they say what the diagram needs to show, not only what to call it:
The description covers more than boxes and arrows. It also lists chart types such as bar and dumbbell, waterfall, slopegraph, ridgeline, streamgraph, bump, Gantt, scatter, bubble, beeswarm, box plot, heatmap, treemap and marimekko. It lists planning formats such as kanban, story map, user journey, service blueprint, Wardley map, fishbone, lifecycle phase maps and block decomposition trees. If you are unsure what to ask for, look at the gallery linked from the README first and request the type by name.
The SKILL.md also has a section of universal anti-patterns and a set of core SVG primitives. If a result looks off, such as crowded labels, a decorative element you did not ask for, or a shadow, ask the agent to check the output against those sections. You do not need to describe the fix yourself.
A few install details are easy to miss.
Symlink versus copy. If you install into several hosts at once (for example Cursor plus another tool), the skills CLI asks which method to use and recommends Symlink. You get one canonical copy linked into each host root, so a later update reaches all of them. Pass --copy if you want independent copies per host. Copies can drift apart, so you would update each one separately. If your selection resolves to a single directory, the CLI copies, because the two methods behave the same there.
Windows. Without Developer Mode, Windows does not allow the symlinks the CLI prefers. The CLI falls back to copies and reports which roots it copied. The cookbook also has a recipe for Windows junctions if you want linked installs anyway.
Auto-update in Claude Code. Claude Code disables auto-update by default for third-party marketplaces. To turn it on, run /plugin, open Marketplaces, select diagram-design and choose Enable auto-update. After that, Claude Code refreshes the marketplace and plugin in the background after startup. Run /reload-plugins when prompted, or let the next session pick up the update.
Editable installs. If you want to change the skill itself, the README shows a manual route: clone the repo and symlink skills/diagram-design into your host's skills folder, for example ln -s ~/code/diagram-design/skills/diagram-design ~/.claude/skills/diagram-design. Create only the skill roots for the hosts you actually use. If you plan to contribute new diagram types or import grammar, CONTRIBUTING.md lists the validation gates your changes must pass: skin lint, render lint, and geometry and data-encoding verification.
Official sources. The README says official builds come only from the cathrynlavery/diagram-design repository. LittleMight, Cathryn Lavery's company, publishes the plugin directory listings. A listing under any other name is an unofficial copy, so check the publisher before you install from a directory.
A design skill that produces self-contained HTML/SVG diagrams. SKILL.md instructs the agent to run bundled Python helper scripts and, for PNG export, Playwright; those scripts are not in our snapshot, so only the Markdown and example HTML assets were reviewed. Generated pages reference Google Fonts; no credential handling or telemetry was found in the files we hold.
pip install playwright && playwright install chromium (unpinned, optional).README.md:515npx skills add cathrynlavery/diagram-design / npx skills update (unpinned npm CLI); PNG export installs Playwright without a version.README.md:54The repository (695 files) on Oct 29, 2026. Not a full review: 426 of 695 files were not downloaded (large repository; we reviewed the skill folders); it relies on code outside the repository: 426 of 695 repo files are not in our snapshot, including the Python helper scripts under skills/diagram-design/scripts/ referenced by SKILL.md, plugin manifests and references/export.md; npm package `skills` CLI (install route) and Playwright/Chromium (PNG export).
NVIDIA SkillSpector static scan: 14 pattern hits (MCP Rug Pull 5, Anti-Refusal 4, Prompt Injection 2, Agent Snooping 2, Rogue Agent 1). SkillSpector hits are false positives: HTML comments such as '<!-- Legacy System -->' and the words 'no warning' in sample diagrams, 'npx skills' in install docs and a mkdir of agent skill folders in the README.
A review, not a certification. Skills change after we check them — read the files before installing.
MIT — commercial use allowed.
Not really. It produces diagrams on request and has validation scripts, but it is a creative, interactive skill with no long-running loop.
A Mermaid diagram and design-doc skill with a 23 KB router, 11 document templates, guides and scripts to validate and render diagrams with mermaid-cli.
Skill that turns natural language, Terraform, SQL, OpenAPI and other sources into editable draw.io diagrams, with incremental sync, drift detection and CI tests.
A skill that turns a description or a codebase into a validated, interactive standalone HTML diagram or one-page explainer.
Agent skills from AntV's infographic engine: one writes a self-contained infographic from your text; four others help contributors extend its templates.
It is an agent skill by Cathryn Lavery that draws 45 types of diagrams as one self-contained HTML and SVG file, styled with your brand tokens. It can also import from draw.io, Mermaid and Excalidraw.
Run npx skills add cathrynlavery/diagram-design, or in Claude Code run /plugin marketplace add cathrynlavery/diagram-design and then /plugin install diagram-design@diagram-design. PNG export needs Playwright and Chromium.
The README says generated diagrams make one network request, loading fonts from Google Fonts, and none if you choose system fonts. Brand onboarding fetches the website URL you give it, and a PRIVACY.md in the repo lists what the skill sends.
diagram-design focuses on the visual quality and branding of standalone HTML and SVG diagrams. SpillwaveSolutions/design-doc-mermaid produces Mermaid code and design-doc templates that render in GitHub wikis. Pick by whether you want polished visuals or text-based diagrams.
Yes. The skill supports saved profiles, described in references/profiles.md. A project .diagram-design marker selects a profile and skips the first-run style guide question, and option (f) at that question loads a saved profile.
Before the first diagram in a new project, it checks whether references/style-guide.md still holds the shipped default tokens. If it does, the skill asks whether to onboard from a website, use an installed skill, read a local design system folder, take pasted tokens, keep the default, or load a saved profile. Once you choose, later runs skip the question.
Yes. The README says npx skills add cathrynlavery/diagram-design installs the full skill (references, assets and scripts) into any Agent Skills host you select, including Cursor, Codex, GitHub Copilot, Gemini CLI, Cline, Windsurf and Amp.