Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mermaid

Skill by alibaba

Writes Mermaid diagrams that render correctly in GitHub Markdown. It sets rules for diagram types, label quoting, mindmap syntax and layout. It is for developers who add diagrams to Markdown files.

  • Score 76
  • 2.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mermaid

Built from the published package, never by AI.

git clone --depth 1 https://github.com/alibaba/loongcollector /tmp/loongcollector && mkdir -p ~/.claude/skills && cp -r /tmp/loongcollector/skills/mermaid ~/.claude/skills/mermaid

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mermaid in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The mermaid skill gives an AI assistant a set of rules for writing Mermaid diagrams that render well in GitHub Markdown. It says to wrap diagrams in a fenced mermaid code block and to use well-supported types such as graph, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, pie, gantt, and mindmap. It asks for simple alphanumeric node IDs and quoted labels, since unquoted labels are named as the most common source of rendering errors.

For mindmaps, the skill limits output to basic indentation, because GitHub does not support icon syntax. It recommends graph TD for readability and tells the assistant not to set themes or custom colors, since GitHub applies its own styling. The skill is aimed at anyone who writes Mermaid diagrams in GitHub Markdown and asks an assistant to create or edit them. It also advises keeping diagrams focused, previewing on GitHub, and reviewing edits made by automated tools.

Written from the project's SKILL.md and checked against it.

What it can do

  • Fenced code block formatWraps diagrams in a mermaid fenced code block so GitHub renders them.
  • Diagram type guidanceLists well-supported types such as graph, sequenceDiagram, erDiagram and gantt.
  • Label quotingAsks for quoted labels, especially those with spaces or punctuation.
  • Node ID rulesRecommends simple alphanumeric node IDs without spaces or special characters.
  • Mindmap rulesLimits mindmaps to plain indented nodes and excludes icon syntax.
  • Vertical layoutPrefers graph TD over LR for flowcharts to improve readability.
  • No custom stylingTells the assistant not to use themes, classDef or style directives.
  • Focused diagramsAdvises splitting very complex diagrams into several simpler ones.
  • Preview and reviewRecommends checking diagrams in the GitHub preview and reviewing automated edits.

Try asking

  • Draw a flowchart of our login process in Mermaid for a GitHub README.
  • Create a sequence diagram of the checkout API calls using Mermaid syntax.
  • Make a simple mindmap of this project plan that renders on GitHub.

Good to know

  • GitHub's Mermaid version may lag behind the latest release, so new diagram types are discouraged.
  • Mindmap icon syntax (::icon()) causes rendering errors on GitHub.
  • GitHub ignores theme directives and custom styling in Mermaid code.
  • Very complex diagrams may become hard to read or hit rendering limits.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/mermaid/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to mermaid

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

mermaid: common questions

Does this skill support Mermaid mindmap icons on GitHub?

No. The source says GitHub does not support the ::icon() syntax and that using icons will cause rendering errors.

Can I set a dark theme or custom colors in Mermaid for GitHub?

The source advises against it. GitHub ignores theme directives and classDef or style settings and applies its own styling for light, dark or dimmed mode.

Which Mermaid diagram types does this skill recommend for GitHub?

It recommends graph, sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, pie, gantt and mindmap, and says to avoid newer or less common types.

How do I install mermaid?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mermaid free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is mermaid safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mermaid?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

mermaid Install

Add to stack

Loading.