Skip to main content
skill CX Codex

mermaid-skill — Claude Code skill: diagrams and installation

This skill writes Mermaid diagrams and exports them as PNG, SVG, or PDF. Use it for API flows, architecture maps, database schemas, and similar diagrams.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Agents365-ai/365-skills --skill mermaid-skill -a claude-code
Open on GitHub

What mermaid-skill does

The skill creates .mmd files for flowcharts, sequence diagrams, class diagrams, ER diagrams, state machines, Gantt charts, and other Mermaid formats. It relies on Mermaid’s automatic layout and can render through mmdc locally or through the Kroki API.

It checks the diagram before rendering, then reviews the exported image for clipped labels, dense layouts, and poor orientation. Local rendering requires @mermaid-js/mermaid-cli plus a headless Chrome browser; without that browser, mmdc export fails, so Kroki with curl is the practical fallback.

For CI or Docker, the skill includes a Puppeteer configuration for the --no-sandbox issue. It can revise the same .mmd and output files through a review loop, then hand the current diagram to Mermaid Live for browser editing.

What it helps with

  • turn an API flow into a .mmd diagram
  • map an authentication sequence
  • model database links as an ER diagram
  • render Mermaid as PNG, SVG, or PDF

Example prompts for the agent

  • Create an architecture diagram in architecture.mmd and export it as SVG.
  • Draw the authentication flow between the client, API, and database, then validate it.
  • Build an ER diagram from these tables and save the result as schema.png.

How to install mermaid-skill

1Skills CLI (Vercel)

npx skills add Agents365-ai/365-skills --skill mermaid-skill -a claude-code

2Manually: put the files in place

~/.claude/skills/mermaid-skill/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/mermaid-skill/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about mermaid-skill

How do I install mermaid-skill in Claude Code?

Run npx skills add Agents365-ai/365-skills --skill mermaid-skill -a claude-code, then check ~/.claude/skills/mermaid-skill/SKILL.md.

What does mermaid-skill do?

It writes Mermaid source files, validates their syntax, and renders diagrams to PNG, SVG, or PDF through mmdc or Kroki.

What is required for local Mermaid rendering?

Local rendering needs @mermaid-js/mermaid-cli and a headless Chrome browser. If Chrome is unavailable, mmdc export fails; Kroki with curl avoids that dependency.

Similar skills

All skills for Backend and APIs →

From the same set21

agent-native-design Design, review or refactor a CLI so humans and AI agents can both drive it. Useful when an API or SDK needs an agent-usable command line. CX Codex +1 1,900installs obsidian-organizer Files notes into the right Obsidian vault folders and audits structure. It helps when an inbox grows messy and manual sorting breaks internal links. CX Codex +1 1,800installs imagencn Generates images through DashScope, Ark, Hunyuan, FLUX, and OpenAI APIs. Useful when you need photorealistic renders, artwork, or Chinese typography in coding agents. CX Codex +1 1,700installs ttscn Turn text into speech with a choice of TTS providers. Use it to make narration for videos, audiobooks, or podcasts, or to compare voices and services. CX Codex +1 1,600installs assetseeker Searches online sources for photos, icons, video, music, sound effects, and fonts. Use it when a project needs licensed creative assets. CX Codex +1 404installs journal-if This skill looks up and compares journal impact factors. Use it when checking a publication venue or assessing an IF value. CX Codex +1 354installs videogencn Generate clips from text, images, frame pairs, or references with Chinese video models. Use the skill to animate a still or shape a transition between two frames. CX Codex +1 353installs yt2bb Turns a YouTube video or playlist into a Bilibili-ready video with burned-in English and Chinese subtitles. Useful when adapting English-language material for a Chinese audience. CX Codex +1 349installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor