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.
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-diagramRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/shiwenwen/hope-agent /tmp/hope-agent && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/hope-agent/skills/mermaid-diagram ~/.gemini/antigravity-cli/skills/mermaid-diagramAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →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.
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.
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.
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.
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.
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.
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.
