creating-mermaid-diagrams

creating-mermaid-diagrams is a skill for Claude Code, Codex from HK-hub/AgentSkills. It costs 124 tokens per session (2,108 once invoked), scanned B, original, MIT.

A tool for creating Mermaid diagrams, which are text-based drawings of systems, processes, data relationships, and other structures.

In plain words
What is it for?
Use it to create flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, state machines, architecture diagrams, and Git graphs, then export them as images or documents.
Why use it?
It makes complex relationships easier to understand and produces diagrams without manually positioning every element.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; built for openclaw.

Good fit Use it to create flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, state machines, architecture diagrams, and Git graphs, then export them as images or documents.

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

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hk-hub/agentskills/creating-mermaid-diagrams/github.svg)](https://agentmods.dev/skills/hk-hub/agentskills/creating-mermaid-diagrams)
Your own site
<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.

agentmods 80×15 button for creating-mermaid-diagrams

Your own site · 80×15
<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>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,108 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00124 $0.02108
Opus 5 $0.00062 $0.01054
Sonnet 5 $0.00025 $0.00422
Haiku 4.5 $0.00012 $0.00211

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

Security

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

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":"📊"}}
creating-mermaid-diagrams/SKILL.md · 235 lines

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

  1. 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_update exists 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.version from 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_update either way so the prompt doesn't repeat for 24 hours.

    • If upstream is the same or older, refresh .last_update silently 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.

  2. Check deps — try mmdc --version, fallback to Kroki if unavailable

  3. Pick diagram type — choose from table below

  4. Generate — write .mmd file to disk

  5. Validate — run validation (REQUIRED before export)

  6. Export — use mmdc or Kroki API to produce PNG/SVG/PDF

  7. Report — tell user the output file paths

Validation (Required)

NEVER export a diagram without validating first.

Read the full file on GitHub · 235 lines

Files

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.

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 · 235 lines · 124 tokens per session scan B 1d6e70b62a26

Subscribe to this mod's changes

creating-mermaid-diagrams is a skill published in the GitHub repository HK-hub/AgentSkills (6 stars, last pushed 25d ago), licensed MIT. It adds 124 tokens to every session and 2,108 once invoked, about $0.0006 per session on Opus 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.

Related

Other skills, from other repositories

mermaid

Create, validate, and repair Mermaid.js diagrams. Use when generating flowcharts, sequence, class, ER, state, or Gantt diagrams, or any visualization.

rp1-run/rp1 · 36 tokens

loft

Loft the shape before cutting steel — answer a design question that prose cannot settle by building a throwaway artifact: a pure logic module in a clickable shell, or structurally different UI variants behind one route. The captain reacts to the artifact; the answer folds into the decision; the artifact never docks.…

Yeachan-Heo/oh-my-claudecode · 0 tokens

plannotator-annotate

Open Plannotator's annotation UI for a file, folder, or URL, then address the returned annotations.

backnotprop/plannotator · 29 tokens

visual-qa

Runs rigorous visual QA across web, terminal, and paginated surfaces with screenshot evidence and a verdict. Use for any UI build or change, or when asked whether a page, component, or TUI looks right.

code-yeongyu/oh-my-openagent · 47 tokens

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/oh-my-openagent · 49 tokens

layout-skill

Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…

code-yeongyu/oh-my-openagent · 88 tokens