# Mermaid

> Mermaid is an open-source agent skill for design and media. Generates Mermaid diagram code for flowcharts, sequence, ER, Gantt and more. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Kripu77/software-factory/tree/main/skills/mermaid
- **Repository:** https://github.com/kripu77/software-factory
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** mermaid
- **Collection:** https://github.com/Kripu77/software-factory
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Kripu77/software-factory/tree/HEAD/skills/mermaid)
- [Asks for: Read, Write, Edit](https://github.com/Kripu77/software-factory/blob/HEAD/skills/mermaid/SKILL.md)
- [License: MIT](https://github.com/Kripu77/software-factory/tree/HEAD/skills/mermaid)

## Features

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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Mermaid diagram generator](https://ai-powered.com/skills/mermaid-diagram-generator): Mermaid diagram generator is an open-source agent skill for developer tools.
- [Draw io diagram generator](https://ai-powered.com/skills/draw-io-diagram-generator): Draw io diagram generator is an open-source agent skill for design and media.
- [Azure resource visualizer](https://ai-powered.com/skills/azure-resource-visualizer): Azure resource visualizer is an open-source agent skill for cloud and infrastructure.
- [Excalidraw diagram](https://ai-powered.com/skills/excalidraw-diagram): Excalidraw diagram is an open-source agent skill for design and media.
- [Drawio](https://ai-powered.com/skills/drawio): Drawio is an open-source agent skill for files and documents.
- [Memoire design tooling](https://ai-powered.com/skills/memoire-design-tooling-memi-design-6): Memoire design tooling is an open-source agent skill for design and media.
- [Figma implement design](https://ai-powered.com/skills/figma-implement-design-mtarcure): Figma implement design is an open-source agent skill for design and media.
- [Starrykit](https://ai-powered.com/skills/starrykit): Starrykit is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/mermaid
