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-diagram

Skill by wanshuiyin

Generates Mermaid diagram code from plain-language requirements and saves it as .mmd and .md files. It is aimed at developers and researchers who need flowcharts, sequence diagrams, ER diagrams and other diagrams in docs or papers.

  • Score 90
  • 20k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mermaid-diagram

Built from the published package, never by AI.

git clone --depth 1 https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep /tmp/Auto-claude-code-research-in-sleep && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-claude-code-research-in-sleep/skills/mermaid-diagram ~/.claude/skills/mermaid-diagram

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

Step-by-step: install mermaid-diagram in Claude Code

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

About

Mermaid Diagram Generator is an agent skill that turns a plain-language description into Mermaid diagram code. It covers flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts and about 18 other Mermaid types. The skill picks a suitable diagram type, writes the code, and saves a raw .mmd file and a Markdown file with an embedded Mermaid block into a figures/ folder.

It then checks the syntax by rendering the diagram with Mermaid CLI (mmdc), falling back to npx, and writes a PNG. It also reviews the rendered image against the request for labels, arrow direction and readability. The skill includes guidance for architecture diagrams, academic style and math formulas written with KaTeX, and it suits developers and researchers who need diagrams for documentation or papers.

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

What it can do

  • Diagram type selectionChooses a suitable Mermaid diagram type from the user's description.
  • Mermaid file outputSaves raw .mmd source and a Markdown file with an embedded Mermaid block.
  • Syntax verificationRenders the diagram with mmdc or npx to check syntax and create a PNG.
  • Visual reviewInspects the rendered PNG for missing labels, arrow direction and readability.
  • Math formulasWrites node and edge labels with KaTeX $$ notation in flowcharts and sequence diagrams.
  • Architecture layoutUses junction nodes to control component placement in architecture-beta diagrams.
  • Academic style guideApplies style rules for diagrams meant for CVPR, ICLR or NeurIPS style papers.

What you need

  • Mermaid CLI (mmdc) or npx for rendering and verification
  • Bash, Read, Write and Edit tool access

Try asking

  • Make a flowchart of our user login process with error branches
  • Draw a sequence diagram for this API call flow
  • Create an ER diagram for these database tables

Good to know

  • Math rendering is documented only for flowcharts and sequence diagrams.
  • If mmdc and npx are unavailable, rendering is skipped and the skill reports that verification did not run.
  • Fix loops respect any user-set round or budget limit.

Security check

D
  • Contains invisible or direction-changing characters that can hide textIn skills/mermaid-diagram/SKILL.md: ​
  • Allowed to use Write, Edit without limitsIn SKILL.md

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

Inside the skill

Allowed tools: Bash(*)ReadWriteEditGlobGrep

  • SKILL.md13 KB

Alternatives to mermaid-diagram

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

mermaid-diagram: common questions

What files does mermaid-diagram create?

It saves figures/<name>.mmd with raw Mermaid code and figures/<name>.md with the same code in a Mermaid block. It also saves a PNG when rendering succeeds.

Which diagram types does it support?

Its reference table lists 23 types, including flowchart, sequence, class, state, ER, Gantt, pie, mindmap, timeline, git graph, C4, Sankey and Kanban.

Can it include math formulas in diagrams?

Yes. Formulas in flowchart and sequence diagram labels can be written with KaTeX $$ delimiters inside quoted strings.

How do I install mermaid-diagram?

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

Is mermaid-diagram free?

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

Is mermaid-diagram safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (contains invisible or direction-changing characters that can hide text). Review the code before you install. How grades work.

What are alternatives to mermaid-diagram?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

mermaid-diagram Install

Add to stack

Loading.