agentic-mermaid-diagram-workflow

agentic-mermaid-diagram-workflow is a skill for Claude Code, Codex from adewale/agentic-mermaid. It costs 61 tokens per session (2,510 once invoked), scanned A, original, from a forked repository, MIT.

A workflow for creating and editing Mermaid diagrams with structured checks, typed changes, round-trip serialization, and deterministic outputs such as SVG, PNG, ASCII, Unicode, and JSON layout.

In plain words
What is it for?
Use it to author, render, verify, describe, mutate, and serialize Mermaid diagrams through the MCP server, SDK, command line, or hosted service.
Why use it?
It helps agents make diagram changes that can be checked and converted back to canonical Mermaid source while preserving unsupported syntax.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to author, render, verify, describe, mutate, and serialize Mermaid diagrams through the MCP server, SDK, command line, or hosted service.

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

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 agentic-mermaid-diagram-workflow

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/adewale/agentic-mermaid/agentic-mermaid-diagram-workflow"><img src="https://agentmods.dev/badge/skills/adewale/agentic-mermaid/agentic-mermaid-diagram-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,510 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 fork From a forked repository.
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.00061 $0.02510
Opus 5 $0.00030 $0.01255
Sonnet 5 $0.00012 $0.00502
Haiku 4.5 $0.00006 $0.00251

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

Security

Grade A, and why

agentic-mermaid-diagram-workflow 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/agentic-mermaid-diagram-workflow/SKILL.md · 159 lines

How it starts

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

Agentic Mermaid — diagram workflow

An agent-agnostic typed editing surface for Mermaid. New diagrams can be authored as Mermaid source and verified/rendered directly. Existing modeled diagrams can be parsed to a ValidDiagram, mutated with typed ops, verified structurally (not as subjective visual scoring), and serialized back to canonical source. Agentic Mermaid outputs SVG, PNG, ASCII, Unicode, and JSON layout; layout is deterministic — verified cross-process, no layout seed. Styled looks (style render option: name | spec | stack, e.g. ['hand-drawn', 'dracula']) accept an ink seed that re-rolls wobble without ever moving layout; see docs/style-authoring.md.

Pick a channel

  • agentic-mermaid-mcp connected → Code Mode (references/code-mode.md). Multi-step edits in one round-trip.
  • Can run JS/TS with imports → library (agentic-mermaid/agent). Same SDK.
  • Shell only → CLI (references/cli.md).
  • No local install, network only → hosted MCP at https://agentic-mermaid.dev/mcp (stateless Streamable HTTP JSON-RPC; execute, describe_sdk, render_svg, render_ascii, render_png, verify, describe, mutate, and build tools — 64 KB input cap). Read references/hosted-mcp.md before composing a hosted request. Use the named direct tool and its exact argument object; do not substitute library APIs or local Code Mode for a hosted direct-tool task.

For hosted MCP, choose the least-powerful tool that completes the task:

Need Tool Required arguments
Structural validity, family, warnings, layout counts verify { source }
Prose, AX tree, or semantic fact inventory describe { source, format?: 'text' | 'json' | 'facts' }
Edit an existing diagram with known ops mutate { source, ops: [{ kind, ...fields }] }
Author a new modeled diagram with known ops build { family, ops: [{ kind, ...fields }] }
Discover one family's exact op fields describe_sdk { family, detail: 'fields' }
Custom synchronous control flow execute { code, timeoutMs? }

Read the full file on GitHub · 159 lines

Files

What ships with it

38 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 · 159 lines · 61 tokens per session scan A 3553a129ab53

Subscribe to this mod's changes

agentic-mermaid-diagram-workflow is a skill published in the GitHub repository adewale/agentic-mermaid (51 stars, last pushed 12d ago), licensed MIT. It adds 61 tokens to every session and 2,510 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.