Skip to content
Skill

Mermaid

Generates Mermaid diagram code for flowcharts, sequence, ER, Gantt and more

Mermaid is an open-source agent skill for design and media. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Mermaid

This skill turns a plain-language description of a system, process or plan into Mermaid diagram code. The agent first picks a suitable diagram type from roughly two dozen options, then loads a matching syntax reference before writing the code, which helps it stick to valid Mermaid syntax for that type.

The workflow has four steps: analyze the requirements, read the reference for the chosen diagram type, generate the code, and apply styling or theme settings where useful. Output is wrapped in mermaid code blocks with semantic node names and clean indentation. Separate reference files cover theming, directives, layouts, global configuration and LaTeX math support.

The skill bundles no scripts. It works through reading and editing files with the agent's built-in tools, so it needs no extra installs beyond an agent that can load skills and render Mermaid markdown.

When your agent uses it

Generate Mermaid diagrams from user requirements. Supports flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and 18 more diagram types.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 39 files (543 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the software-factory plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Kripu77/software-factory
/plugin install software-factory@software-factory

Or copy only this skill to ~/.claude/skills/mermaid:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Kripu77/software-factory.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mermaid &&
cp -R "$tmp/skills/mermaid" ~/.claude/skills/mermaid &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/mermaid inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/mermaid to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Kripu77/software-factory.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mermaid &&
cp -R "$tmp/skills/mermaid" ~/.agents/skills/mermaid &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/mermaid inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/mermaid to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Kripu77/software-factory.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mermaid &&
cp -R "$tmp/skills/mermaid" ~/.cursor/skills/mermaid &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/mermaid inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Kripu77/software-factory.git --path skills/mermaid

Or copy the folder to ~/.gemini/skills/mermaid yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mermaid:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Kripu77/software-factory.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mermaid &&
cp -R "$tmp/skills/mermaid" ~/.copilot/skills/mermaid &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/mermaid inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Kripu77/software-factory.git

Then copy software-factory/skills/mermaid into your agent's skills folder as mermaid. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Many diagram types
Covers flowcharts, sequence, class, state, ER, Gantt, git graphs, C4 and about twenty other Mermaid chart kinds.
Per-type syntax references
Each diagram type has its own reference file that the agent reads before generating code.
Styling and theming guides
Reference notes cover custom colors, diagram directives, layout direction and global configuration.
Renderable code output
Diagrams are returned in mermaid code blocks with clear structure intended to render directly.
Math support reference
Includes a reference for adding LaTeX math to Mermaid diagrams.

Good for

  • Draw a flowchart of an order checkout process
  • Create a sequence diagram for an API login flow
  • Model database tables as an ER diagram
  • Plan a project timeline as a Gantt chart
  • Sketch a C4 architecture diagram of a service

Mermaid FAQ

What does the skill need to run?

It has no scripts. It uses the agent's Read, Write and Edit tools and works from the user's requirements.

How does Mermaid pick a diagram type?

The agent analyzes the requirements and chooses the most suitable type from the reference table, such as a flowchart for processes or a sequence diagram for messaging.

What does the output look like?

Generated Mermaid code wrapped in mermaid code blocks, meant to render directly.

How do I install Mermaid in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mermaid to use it in all your projects, or to .claude/skills/mermaid in one project. Or install the software-factory plugin, which includes it: /plugin marketplace add Kripu77/software-factory, then /plugin install software-factory@software-factory.

Does Mermaid run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Mermaid?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Mermaid?

The closest alternatives to Mermaid are Mermaid diagram generator, Draw io diagram generator, Azure resource visualizer, Excalidraw diagram and Drawio.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Kripu77/software-factory

  1. Lets an agent drive a real browser to QA a running web app and capture evidence

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Runs an intentionally harsh maintainability review of code changes on request

    • Open source
    • 6 GitHub stars
    • Developer tools
  3. Guides an agent through implementing a spec or GitHub ticket inside a repo checkout

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Runs an AI agent as a software factory tech lead that triages work and dispatches it

    • Open source
    • 6 GitHub stars
    • Developer tools
  5. Watches a pull request's CI checks and fixes failures until they pass

    • Open source
    • 6 GitHub stars
    • Developer tools
  6. Runs Playwright smoke tests, isolates failures, and reports evidence without patching code

    • Open source
    • 6 GitHub stars
    • Developer tools