mermaid-diagrams

mermaid-diagrams is a skill for Claude Code from saajunaid/caddis-plugin. It costs 44 tokens per session (2,314 once invoked), scanned A, original, MIT.

A tool for creating software diagrams from Mermaid text. Mermaid is a text-based diagram format that can describe systems, processes, database structures, API interactions, and project schedules.

In plain words
What is it for?
Use it for class, sequence, flowchart, user-journey, database, architecture, state, Git, and schedule diagrams.
Why use it?
It lets you keep many technical diagrams as editable text instead of drawing each one manually.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter.

Good fit Use it for class, sequence, flowchart, user-journey, database, architecture, state, Git, and schedule diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saajunaid/caddis-plugin/mermaid-diagrams
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 saajunaid/caddis-plugin --skill mermaid-diagrams
Clone the repo
git clone --depth 1 https://github.com/saajunaid/caddis-plugin

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/mermaid-diagrams/github.svg)](https://agentmods.dev/skills/saajunaid/caddis-plugin/mermaid-diagrams)
Your own site
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/mermaid-diagrams/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-diagrams

Your own site · 80×15
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/mermaid-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,314 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.00044 $0.02314
Opus 5.5 $0.00018 $0.00926
Sonnet 5.5 $0.00009 $0.00463
Haiku 4.5 $0.00004 $0.00231

Measured 2mo ago against content hash 8ae1e4cb5ee0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mermaid-diagrams 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 2mo 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.

.github/skills/media/mermaid-diagrams/SKILL.md · 293 lines

How it starts

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

Mermaid Diagramming

Works with: Any AI coding agent (Claude, Cursor, GitHub Copilot, Windsurf, etc.)

Create professional software diagrams using Mermaid's text-based syntax. Diagrams are version-controllable, easy to update, and render automatically in GitHub, GitLab, Notion, and more.

Triggers

Use this skill when you need to:

  • "diagram this", "visualize this", "model this"
  • "show the flow", "map out the process"
  • "architecture diagram", "class diagram", "sequence diagram"
  • "database schema", "ERD", "entity relationship"
  • "flowchart", "user journey", "system design"

Quick Reference

Diagram Type Use For Syntax Starts With
Class Diagram Domain models, OOP design classDiagram
Sequence Diagram API flows, interactions sequenceDiagram
Flowchart Processes, algorithms, user journeys flowchart TD or flowchart LR
ERD Database schemas erDiagram
C4 Diagram Architecture (context, container, component) C4Context, C4Container, C4Component
State Diagram State machines, lifecycles stateDiagram-v2
Git Graph Branching strategies gitGraph
Gantt Chart Project timelines gantt

Core Syntax Pattern

All Mermaid diagrams follow this structure:

diagramType
  definition content

Key principles:

  • First line declares diagram type
  • Use %% for comments
  • Indentation improves readability
  • Misspellings break diagrams; validate at mermaid.live

Quick Start Examples

Class Diagram

classDiagram
    User --> Order : places
    Order *-- LineItem
    
    class User {
        +string email
        +string name
        +placeOrder()
    }
    
    class Order {
        +int id
        +decimal total
        +addItem()
    }

Sequence Diagram

sequenceDiagram
    participant User
    participant API
    participant DB
    
    User->>API: POST /login
    API->>DB: Query credentials
    DB-->>API: Return user data
    alt Valid
        API-->>User: 200 OK + token
    else Invalid
        API-->>User: 401 Unauthorized
    end

Read the full file on GitHub · 293 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. 2mo ago Changed · -26 tokens per session 8ae1e4cb5ee0
  2. 2mo ago First seen · 293 lines · 70 tokens per session scan A 7001a8a775e1

Subscribe to this mod's changes

mermaid-diagrams is a skill published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed 3d ago), licensed MIT. It adds 44 tokens to every session and 2,314 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

mermaid-diagrams compared with skills from other repositories

mermaid-diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mermaid-diagramssaajunaid/caddis-pluginSkill03d agoMITA44Claude Code
goga-define-experienceqarium/gogaSkill468d agoBSD-3-ClauseA6Claude Code, Codex
render-html-pagemochow13/keen-agentSkill22mo agoMITA22Claude Code, Codex
api-designMarieLynneBlock/arcanum-artifexSkill52mo agononeA19Claude Code, Codex
goga-prototype-contextqarium/gogaSkill468d agoBSD-3-ClauseA13Claude Code, Codex
basicbergside/awesome-design-skillsSkill3.8k5mo agoMITA20Claude Code, Codex
rn-testingLykhoyda/rn-dev-agentSkill201mo agoMITA106Claude Code