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 HK-hub/AgentSkills --skill creating-mermaid-diagramsgit clone --depth 1 https://github.com/HK-hub/AgentSkillsWrote 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/hk-hub/agentskills/creating-mermaid-diagrams)<a href="https://agentmods.dev/skills/hk-hub/agentskills/creating-mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/creating-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/hk-hub/agentskills/creating-mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/creating-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.00124 | $0.02108 |
| Opus 5.5 | $0.00050 | $0.00843 |
| Sonnet 5.5 | $0.00025 | $0.00422 |
| Haiku 4.5 | $0.00012 | $0.00211 |
Grade B, and why
creating-mermaid-diagrams scanned grade B with 2 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 3mo 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.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
curl -s -X POST -H "Content-Type: text/plain" --data-binary @diagram.mmd https://kroki.io/mermaid/svg -o /tmp/test.svg && echo "Valid" || echo "Invalid" Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
metadata: {"openclaw":{"requires":{"bins":["curl"]},"emoji":"📊"}} How it starts
The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mermaid Diagrams
Generate .mmd text files and export to PNG/SVG/PDF using mmdc (local) or Kroki API (no install).
Key advantage: Text-based syntax with fully automatic layout — no x/y coordinates needed.
Prerequisites
Option A: Local (mmdc)
npm install -g @mermaid-js/mermaid-cli
mmdc --version
Option B: Kroki API (no install)
curl --version # Just need curl
Workflow
-
Update check (notify, don't pull) — first use per conversation. Throttle to once per 24 h via
<this-skill-dir>/.last_update; never mutate the skill directory without explicit user consent.-
If
.last_updateexists and is <24 h old, skip this step entirely. -
Otherwise, fetch the latest tag from upstream:
git -C <this-skill-dir> ls-remote --tags origin 'v*' 2>/dev/null \ | awk '{print $2}' | sed 's|refs/tags/||' | sort -V | tail -1 -
Compare with this skill's
metadata.versionfrom the frontmatter. If the upstream tag is strictly newer (semver), tell the user one line and ask:"A newer version of this skill is available: vX.Y.Z → vA.B.C. Want me to
git pull?"If they say yes, run
git -C <this-skill-dir> pull --ff-only. Refresh.last_updateeither way so the prompt doesn't repeat for 24 hours. -
If upstream is the same or older, refresh
.last_updatesilently and continue. -
On any failure (offline, not a git checkout — e.g. ClawHub-installed copy, read-only path, no permission), swallow the error silently and continue with the user's task. Do not mention the failure.
-
-
Check deps — try
mmdc --version, fallback to Kroki if unavailable -
Pick diagram type — choose from table below
-
Generate — write
.mmdfile to disk -
Validate — run validation (REQUIRED before export)
-
Export — use
mmdcor Kroki API to produce PNG/SVG/PDF -
Report — tell user the output file paths
Validation (Required)
NEVER export a diagram without validating first.
What ships with it
4 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.
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.
- 3mo ago First seen · 235 lines · 124 tokens per session scan B 1d6e70b62a26
creating-mermaid-diagrams is a skill published in the GitHub repository HK-hub/AgentSkills (7 stars, last pushed 3mo ago), licensed MIT. It adds 124 tokens to every session and 2,108 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
creating-mermaid-diagrams compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| creating-mermaid-diagramsHK-hub/AgentSkills | Skill | 7 | 3mo ago | MIT | B | 124 | Claude Code, Codex |
| mermaidrp1-run/rp1 | Skill | 38 | 1mo ago | Apache-2.0 | A | 36 | Claude Code |
| archifytt-a1i/archify | Skill | 103k | yesterday | Apache-2.0 | A | 205 | Claude Code, Codex |
| archify-tuningtt-a1i/archify | Skill | 103k | yesterday | Apache-2.0 | A | 49 | Claude Code, Codex |
| diagrambacknotprop/plannotator | Skill | 16k | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| loftYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 96 | Claude Code |
| plannotator-annotatebacknotprop/plannotator | Skill | 16k | today | Apache-2.0 | A | 29 | Claude Code |