MCPInstall

mermaid-diagrams

Create or fix Mermaid diagrams in Markdown. Use for requested flowcharts, sequence diagrams, ER diagrams, state machines, or system diagrams when Mermaid is the output format; not every visualization or explanation.

Installs
465
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/ccheney/robust-skills --skill mermaid-diagrams
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads mermaid-diagrams automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Mermaid Diagrams

Turn the supplied process, code, schema, or relationships into the requested Mermaid diagram. The user's explicit instructions take precedence over this skill's guidelines, including their choice of output format.

Choose the representation

Establish the facts to show and the destination renderer. If the request leaves the format open and a text-based system/process diagram fits, Mermaid is a reasonable choice. Preserve an explicitly requested drawing tool or artifact format.

QuestionDiagram
What happens next or which path is taken?flowchart
Who calls whom, in what order?sequenceDiagram
What tables and cardinalities exist?erDiagram
What states and transitions exist?stateDiagram-v2
How are types or services related?classDiagram or flowchart with subgraphs
What is scheduled or measured?A matching planning/data type from the references

Use supplied evidence for nodes, edges, cardinalities, dates, and values. Mark conceptual assumptions; ask for missing facts that determine the diagram rather than inventing a system.

Produce a renderable result

  • Return a fenced mermaid block, or the requested .mmd/rendered artifact. Use one diagram declaration per block.
  • Prefer stable syntax supported by the destination. Examples were checked against Mermaid 11.16; a host can bundle an older version.
  • Give nodes stable IDs distinct from display labels and subgraph IDs. Quote labels with punctuation; avoid reserved end IDs and use %% comments on their own lines.
  • Keep ER attributes one per line and alias sequence participants whose names contain spaces.
  • Split diagrams when readability suffers, not at a fixed node count.

Validate nontrivial or repaired syntax with the project's renderer or an available Mermaid CLI. Inspect the rendered result when producing an artifact; if rendering is unavailable, state that limitation. A simple syntax answer does not require installing a new toolchain.

References

Load the diagram type or rendering topic required.

TaskReference
Flowcharts, subgraphs, shapes, edgesFLOWCHARTS.md
Calls, activation, loops, alternativesSEQUENCE.md
Classes, types, database relationshipsCLASS-ER.md
State machines and user journeysSTATE-JOURNEY.md
Gantt, timeline, pie, XY, sankey, mindmap, gitGraphDATA-CHARTS.md
C4, architecture, block, kanban, packet, requirementsARCHITECTURE.md
Configuration, styling, export, troubleshootingADVANCED.md
Compact syntax and platform lookupCHEATSHEET.md

Check Mermaid documentation and the destination's own support notes when a feature is version-sensitive.

FAQ

What does the mermaid-diagrams skill do?

Create or fix Mermaid diagrams in Markdown. Use for requested flowcharts, sequence diagrams, ER diagrams, state machines, or system diagrams when Mermaid is the output format; not every visualization or explanation.

How do I install mermaid-diagrams?

Run npx skills add https://github.com/ccheney/robust-skills --skill mermaid-diagrams in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/mermaid-diagrams/ (personal) or .claude/skills/mermaid-diagrams/ (project).

Which AI agents can use mermaid-diagrams?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is mermaid-diagrams safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains mermaid-diagrams?

It is published by ccheney in ccheney/robust-skills. It has 465 recorded installs.

More from ccheney/robust-skills

View all →

clean-ddd-hexagonal

ccheney/robust-skills

Design or review backend domain and dependency boundaries using DDD, Clean Architecture, and ports/adapters. Use for aggregate modeling, bounded contexts, use-case isolation, or architecture refactoring; not routine CRUD changes.

postgres-drizzle

ccheney/robust-skills

Write or review PostgreSQL schemas, queries, migrations, and Drizzle ORM code. Use for Postgres/Drizzle relations, indexing, pooling, or query performance; not for unrelated databases or generic backend work.

Data & Databases1.5K installs

modern-javascript

ccheney/robust-skills

Implement or debug JavaScript language behavior, including promise completion, async iteration, mutation, and runtime compatibility. Use for ECMAScript semantics or polyfill/transform choices; not unrelated framework or TypeScript type design.

feature-slicing

ccheney/robust-skills

Open the skill to read its SKILL.md instructions.

238 installs

modern-css

ccheney/robust-skills

Implement or debug CSS layouts, responsive styles, themes, and motion. Use when choosing native CSS features or replacing legacy styling with browser-compatible CSS; not for unrelated frontend logic.

Frontend & Design205 installs

slack-block-kit

ccheney/robust-skills

Build or debug Slack Block Kit payloads for messages, modals, App Home, streaming responses, and Work Object unfurls. Use for block layout, elements, or interaction schemas; not plain Slack text formatting alone.

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs