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.
npx skills add saajunaid/caddis-plugin --skill mermaid-diagramsgit clone --depth 1 https://github.com/saajunaid/caddis-pluginWrote 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.
[](https://agentmods.dev/skills/saajunaid/caddis-plugin/mermaid-diagrams)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/advanced-features.md 10 KB
- references/architecture-diagrams.md 4.7 KB
- references/c4-diagrams.md 15 KB
- references/class-diagrams.md 6.8 KB
- references/ENHANCEMENTS.md 7.1 KB
- references/erd-diagrams.md 12 KB
- references/flowcharts.md 9.6 KB
- references/MERMAID-SUMMARY.md 3.7 KB
- references/sequence-diagrams.md 9.0 KB
- references/troubleshooting.md 7.5 KB
- references/workflows.md 11 KB
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.
- 2mo ago Changed · -26 tokens per session 8ae1e4cb5ee0
- 2mo ago First seen · 293 lines · 70 tokens per session scan A 7001a8a775e1
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.
mermaid-diagrams compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mermaid-diagramssaajunaid/caddis-plugin | Skill | 0 | 3d ago | MIT | A | 44 | Claude Code |
| goga-define-experienceqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 6 | Claude Code, Codex |
| render-html-pagemochow13/keen-agent | Skill | 2 | 2mo ago | MIT | A | 22 | Claude Code, Codex |
| api-designMarieLynneBlock/arcanum-artifex | Skill | 5 | 2mo ago | none | A | 19 | Claude Code, Codex |
| goga-prototype-contextqarium/goga | Skill | 46 | 8d ago | BSD-3-Clause | A | 13 | Claude Code, Codex |
| basicbergside/awesome-design-skills | Skill | 3.8k | 5mo ago | MIT | A | 20 | Claude Code, Codex |
| rn-testingLykhoyda/rn-dev-agent | Skill | 20 | 1mo ago | MIT | A | 106 | Claude Code |