AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Mermaid Skill

skill-yassimba-loom-mermaid-skill · by Yassimba

Generate Mermaid diagrams as code (.mmd) and export to PNG/SVG/PDF with mmdc. Use when the user wants a diagram — flowchart, sequence, class, ER, state, gantt, git graph, architecture, timeline, mindmap — proactively when explaining a system with 3+ components, a runtime flow, a schema, or a lifecycle, and when another skill (e.g. blueprint) needs a diagram authored or exported to an image.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-yassimba-loom-mermaid-skill

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-yassimba-loom-mermaid-skill)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
yesterday

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Mermaid Skill? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Mermaid Diagrams

Author .mmd text files and compile them to images with mmdc. Mermaid lays everything out automatically — no coordinates — and the text source lives in git and embeds in Markdown.

Route elsewhere when the request needs: pixel-precise placement, branded icons, or heavy styling → drawio; a hand-drawn aesthetic → excalidraw/tldraw; a freeform whiteboard → tldraw; strict conventional UML notation → plantuml.

Setup

mmdc renders through Puppeteer and needs a headless Chrome:

npm install -g @mermaid-js/mermaid-cli
npx puppeteer browsers install chrome-headless-shell   # mmdc has no bundled browser

Could not find Chrome is a toolchain failure, never a diagram error. mmdc --version passes without Chrome, and a perfectly valid .mmd still fails to compile. Install the browser above or set PUPPETEER_EXECUTABLE_PATH to a system Chrome; leave the .mmd alone.

Workflow

  1. Author — pick the type from the shape of the content:

| The content is… | Type | | ---------------------------------------------------- | ---------------------------------------- | | steps, branches, dependencies | flowchart | | who calls whom, in what order | sequenceDiagram | | tables and relations / types and inheritance | erDiagram / classDiagram | | statuses one thing moves through | stateDiagram-v2 | | deployed services and their wiring | architecture-beta | | schedule / branch history / proportions / idea tree | gantt / gitGraph / pie / mindmap | | events over time / effort-impact grid / plotted data | timeline / quadrantChart / xychart-beta |

One diagram answers one question — past ~20 nodes, split by concern into separate .mmds instead of cramming. Syntax references, consult when unsure: [FLOWCHART](reference/FLOWCHART.md) · [SEQUENCE](reference/SEQUENCE.md) · [CLASS-ER](reference/CLASS-ER.md) · [ARCHITECTURE](reference/ARCHITECTURE.md) (architecture-beta — newer syntax, read before first use) · [OTHER-TYPES](reference/OTHER-TYPES.md) (state, gantt, gitGraph, pie, mindmap, journey, timeline, quadrant, xychart, C4). Done when every node, participant, and label names a real thing from the content being diagrammed — no placeholders.

  1. Compile — the compile is the syntax check; a parse error is a bug in the .mmd, fix and re-compile until it renders:

``bash mmdc -i diagram.mmd -o diagram.png -w 2048 ``

Themes: -t default|dark|neutral|forest (base works only inside a %%{init: {'theme':'base'}}%% directive). SVG/PDF: same command with .svg/.pdf output.

  1. Self-check (vision) — a clean compile only proves the syntax; read the exported PNG and judge it as its audience will. Mermaid positions everything itself, so look for content defects, not overlaps:

| Check | What to look for | Fix | | ------------------ | ------------------------------------- | --------------------------------------------------------------------------- | | Label truncation | Node / edge text clipped | Shorten the label, or wrap with ` | | Cramped density | Nodes crammed together; tangled lines | Flip direction (TDLR), split into subgraphs, or reduce nodes | | Wrong aspect | Far too wide or too tall to read | Change flowchart TDLR (or set direction in class/state) | | Edge spaghetti | Many crossings, hard to follow | Reorder declarations so connected nodes sit adjacent; group with subgraph | | Wrong diagram type | Type doesn't suit the content | Re-pick from the step-1 table | | Low contrast | Text blends into the node fill | classDef ([FLOWCHART § Styling](reference/FLOWCHART.md)) or -t` theme |

Re-compile after every fix. Max 2 self-check rounds, then show the user regardless. No vision available → skip straight to the review loop.

  1. Review loop — show the image, apply the minimal .mmd edit per request, re-compile. Overwrite the same .mmd/.png each round — no v1, v2, … After 5 rounds, suggest the user fine-tune at mermaid.live.
  1. Report — give the user the .mmd and image paths.

Gotchas

| Symptom | Fix | | ---------------------------------------------------- | ----------------------------------------------------------------------- | | Parse error on a label with special chars | Quote it: A["Label: value"] | | Parse error on a subgraph name with spaces | Quote it: subgraph "My Layer" | | Maximum text size in diagram exceeded | Split the diagram; last resort -c config.json {"maxTextSize": 200000} | | Chrome crashes in CI / as root | -p puppeteer.json with {"args": ["--no-sandbox"]} | | Architecture icons missing / logos: name not found | Register the pack at compile time — [ARCHITECTURE § Icons](reference/ARCHITECTURE.md) | | Blank or tiny PNG | Add -w 2048 |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.