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 shiwenwen

Creates Mermaid diagrams such as flowcharts, sequence diagrams, ER diagrams and gantt charts. The source says Hope Agent's chat renders these diagrams inline. Useful when a user asks for a visual of a process, architecture or data model.

  • Score 77
  • 1.9k 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/shiwenwen/hope-agent /tmp/hope-agent && mkdir -p ~/.claude/skills && cp -r /tmp/hope-agent/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

The mermaid-diagram skill lets an AI assistant produce diagrams written in Mermaid syntax. It covers flowcharts, architecture diagrams, sequence diagrams, ER diagrams, state machines, gantt charts, pie charts, class diagrams and user journeys. According to the skill, Hope Agent's chat renders Mermaid code blocks natively, so the diagram appears inline without setup.

The skill includes templates for each diagram type and a workflow. The assistant picks the simplest type that fits, starts with five to seven nodes, and asks clarifying questions when the request is vague. It uses a shared shape vocabulary, such as diamonds for decisions and cylinders for databases, and keeps labels to four words or fewer. It is triggered by requests for flowcharts, architecture diagrams, sequence diagrams, gantt charts and similar visuals. For organic or hand-drawn styles, the skill points to draw.io or Excalidraw instead.

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

What it can do

  • FlowchartDraws step-by-step processes with decisions and branching using Mermaid flowchart syntax.
  • Sequence diagramShows time-ordered messages between actors, such as API call traces.
  • State diagramMaps state transitions for a single entity, such as a UI state machine.
  • ER diagramShows database schema and entity relationships.
  • Gantt chartLays out project schedules and timelines such as roadmaps and sprints.
  • Architecture diagramBuilds system views with subgraphs for frontend, backend and storage.
  • Multi-diagram outputProduces two or three diagrams with prose between them to show a system at different levels.
  • Style rulesApplies a consistent shape vocabulary and short node labels across diagrams.

What you need

  • Hope Agent chat, which renders Mermaid blocks natively

Try asking

  • Draw a flowchart for our user signup process
  • Make a sequence diagram of an HTTP GET request to the database
  • Create an ER diagram for users, orders and products

Good to know

  • Mermaid auto-lays out nodes, so pixel-perfect positioning is not possible.
  • Styling is limited; colors via classDef are possible but verbose.
  • Some node shapes, such as cylinders inside subgraphs, can be quirky.
  • Organic, hand-drawn or heavily styled diagrams are better done with a draw.io or Excalidraw skill.

Security check

A

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

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

  • SKILL.md7 KB

Alternatives to mermaid-diagram

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-diagram: common questions

Do I need to set up anything to see the diagrams?

The source says Hope Agent's chat renders Mermaid blocks natively, so the diagram appears inline with no setup. The block must use the mermaid fence tag to render.

Which diagram types does the skill support?

The skill lists flowchart, sequenceDiagram, stateDiagram-v2, erDiagram, gantt, pie, classDiagram and journey, and recommends flowchart when unsure.

What should I do if a complex diagram is too large?

The skill recommends splitting diagrams with more than 30 nodes into two or three diagrams by concern.

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

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

mermaid-diagram Install

Add to stack

Loading.