mermaid-sketch

mermaid-sketch is a skill for Claude Code from kolodkin/devpowers. It costs 49 tokens per session (499 once invoked), scanned A, original, MIT.

A skill for creating sequence, flow, or state diagrams in Mermaid, a text format for diagrams. It renders the diagram in a browser to check that the syntax works before showing it.

In plain words
What is it for?
Making and validating a Mermaid diagram for a document, design note, or chat response.
Why use it?
It helps catch diagram syntax errors and visual problems before an untested diagram is placed in a document or answer.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the devpowers plugin — 16 skills, 1 MCP server shipped together

Good fit Making and validating a Mermaid diagram for a document, design note, or chat response.

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

Made for: Claude Code.

Or install devpowers, the plugin that ships this one along with the rest of its 16 skills, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kolodkin/devpowers/mermaid-sketch"><img src="https://agentmods.dev/badge/skills/kolodkin/devpowers/mermaid-sketch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 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.00049 $0.00499
Opus 5.5 $0.00020 $0.00200
Sonnet 5.5 $0.00010 $0.00100
Haiku 4.5 $0.00005 $0.00050

Measured 20d ago against content hash f494541dbe75, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mermaid-sketch 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 20d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/mermaid-sketch/SKILL.md · 53 lines

What it actually says

Mermaid sketch

Write the diagram, render it, look at it, then show it. Never commit or present a Mermaid block that has not been rendered once.

1. Write

  • One diagram per idea, at most about 12 messages or nodes. A second diagram is for a different scenario, not more detail.
  • Short participant aliases (participant D as Dispatcher); labels in plain words, as the surrounding text names things.
  • No ; in labels. Avoid #, <, > and quotes; reword instead.
  • In a doc: one sentence above the block says what it shows. No prose inside the diagram beyond short Note over lines.

2. Render and validate

Put the Mermaid source in a file in the scratchpad (or extract it from the doc), then render it:

node scripts/render.js diagram.mmd out.png
  • OK means the syntax parsed. ERR ... is the parser message: fix the block and render again.
  • Needs Node with Playwright and Chromium. Use the pre-installed ones; do not install another.
  • The script pins Mermaid 10.9.1, older than GitHub's: diagram types newer than that fail here even if GitHub renders them.
  • If the CDN is unreachable or the script cannot run, say the diagram is unrendered instead of claiming it works.

3. Look, then show

  • Read the PNG yourself first: check for overlapping labels, clipped text and arrows pointing the wrong way. Fix and re-render before showing it.
  • Send the PNG to the user as a rendered file, with a one-line caption.
  • In chat, also include the Mermaid source in a fenced block so it can be copied.

4. Where it goes

  • Docs rendered by GitHub or a Mermaid-enabled site: a ```mermaid fenced block.
  • If the target does not render Mermaid (plain terminals, some wikis), use the ascii-sketch skill instead.
Files

What ships with it

1 file 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. 20d ago First seen · 53 lines · 49 tokens per session scan A f494541dbe75

Subscribe to this mod's changes

mermaid-sketch is a skill published in the GitHub repository kolodkin/devpowers (2 stars, last pushed 4d ago), licensed MIT. It adds 49 tokens to every session and 499 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-11-13.

Related

mermaid-sketch compared with skills from other repositories

mermaid-sketch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mermaid-sketchkolodkin/devpowersSkill24d agoMITA49Claude Code
kami-landingnexu-io/open-designSkill111kyesterdayApache-2.0A81Claude Code, Codex
html-ppt-obsidian-claude-gradientnexu-io/open-designSkill111kyesterdayApache-2.0A53Claude Code, Codex
applying-brand-guidelinesanthropics/claude-cookbooksSkill56k12d agoMITA27Claude Code, Codex
kamitw93/KamiSkill13k2d agoMITA78Claude Code
surfsense-htmlMODSetter/SurfSenseSkill17k6d agoApache-2.0A0Claude Code, Codex
readtw93/WazaSkill7.7k15d agoMITA61Claude Code