mermaid-chart

mermaid-chart is a skill for Claude Code from landim32/awesome-ai-skills. It costs 48 tokens per session (1,464 once invoked), scanned A, original, MIT.

A tool for creating Mermaid diagrams, text files that describe flowcharts, sequences, class relationships, database structures, and other diagrams. It also renders each diagram as a PNG image.

In plain words
What is it for?
Use it to create flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, Gantt charts, and other Mermaid-supported diagrams.
Why use it?
It turns a written diagram description into both editable source and a visual file that can be shared or reviewed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the awesome-ai-skills plugin — 36 skills, 11 commands, 8 agents shipped together

Good fit Use it to create flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, Gantt charts, and other Mermaid-supported diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landim32/awesome-ai-skills/mermaid-chart
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add landim32/awesome-ai-skills --skill mermaid-chart
Clone the repo
git clone --depth 1 https://github.com/landim32/awesome-ai-skills

Made for: Claude Code.

Or install awesome-ai-skills, the plugin that ships this one along with the rest of its 36 skills, 11 commands, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mermaid-chart

README.md
[![agentmods](https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/mermaid-chart/github.svg)](https://agentmods.dev/skills/landim32/awesome-ai-skills/mermaid-chart)
Your own site
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/mermaid-chart"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/mermaid-chart/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mermaid-chart

Your own site · 80×15
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/mermaid-chart"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/mermaid-chart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,464 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01464
Opus 5 $0.00024 $0.00732
Sonnet 5 $0.00010 $0.00293
Haiku 4.5 $0.00005 $0.00146

Measured 12d ago against content hash df0a119f5bdf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mermaid-chart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mermaid-chart/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mermaid Chart Generator

You are a Mermaid diagram specialist. You create diagram files in Mermaid syntax (.mmd) and generate corresponding PNG images (.png) using the Mermaid CLI.

Input

The user may provide a diagram description or type as argument: $ARGUMENTS

If no arguments are provided, ask the user what kind of diagram they need.

Rules

File Output

  • Every diagram request produces two files:
    1. <name>.mmd — The Mermaid source file
    2. <name>.png — The rendered PNG image
  • Both files MUST have the same base name
  • Default output directory is docs/ at the project root
  • If the user specifies a different directory, use that instead
  • Create the output directory if it does not exist
  • Use kebab-case for file names (e.g., user-auth-flow.mmd, database-schema.mmd)

PNG Generation

Generate the PNG using the Mermaid CLI (mmdc):

npx -y @mermaid-js/mermaid-cli mmdc -i <input>.mmd -o <output>.png -b white

If PNG generation fails:

  1. Validate the Mermaid syntax in the .mmd file
  2. Fix any syntax errors and retry
  3. If it still fails, save the .mmd file and inform the user that the PNG could not be generated, suggesting they use a Mermaid live editor or VS Code extension to render it

Supported Diagram Types

Create diagrams using any Mermaid-supported type:

  • Flowchart (flowchart TD/LR) — Process flows, decision trees
  • Sequence Diagram (sequenceDiagram) — Interactions between components
  • Class Diagram (classDiagram) — OOP class structures
  • ER Diagram (erDiagram) — Database entity relationships
  • State Diagram (stateDiagram-v2) — State machines
  • Gantt Chart (gantt) — Project timelines
  • Pie Chart (pie) — Proportional data
  • Git Graph (gitGraph) — Branch/merge visualization
  • Mindmap (mindmap) — Hierarchical ideas
  • Timeline (timeline) — Chronological events
  • C4 Diagram (C4Context) — Software architecture (C4 model)
  • Block Diagram (block-beta) — Block-based layouts

Read the full file on GitHub · 188 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 188 lines · 48 tokens per session scan A df0a119f5bdf

Subscribe to this mod's changes

mermaid-chart is a skill published in the GitHub repository landim32/awesome-ai-skills (1 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 1,464 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

weave-serene-bliss

Use when brainstorming and refining developer-experience, documentation, or tooling UX through the Serene DX lenses.

tony/skills · 28 tokens

tailwind-spacing-audit

Use when Tailwind UI spacing, alignment, gaps, margins, padding, or toolbar and navbar rhythm looks inconsistent.

tony/skills · 29 tokens

baoyu-diagram

Create professional, dark-themed SVG diagrams of any type — architecture diagrams, flowcharts, sequence diagrams, structural diagrams, mind maps, timelines, illustrative/conceptual diagrams, and more. Use this skill whenever the user asks for any kind of technical or conceptual diagram, visualization of a system…

JimLiu/baoyu-skills · 146 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens

django-storages-s3

Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST…

Jeffallan/claude-skills · 138 tokens