mermaid-healer

mermaid-healer is a skill for Claude Code, Codex from Jacobinwwey/notemdpro. It costs 18 tokens per session (843 once invoked), scanned A, original, MIT.

A repair tool for Mermaid diagrams, which are text descriptions that render as flowcharts and other diagrams in Markdown files.

In plain words
What is it for?
It helps repair broken arrows, labels, brackets, comments, notes, and subgraphs in one or more files.
Why use it?
It fixes formatting mistakes that would otherwise stop a diagram from rendering.

Skill for Claude CodeCodex

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

Good fit It helps repair broken arrows, labels, brackets, comments, notes, and subgraphs in one or more files.

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

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 mermaid-healer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/mermaid-healer"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/mermaid-healer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 843 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.00018 $0.00843
Opus 5.5 $0.00007 $0.00337
Sonnet 5.5 $0.00004 $0.00169
Haiku 4.5 $0.00002 $0.00084

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

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 1 executable file (mermaidProcessor.ts), 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-healer/SKILL.md · 37 lines

How it starts

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

Mermaid healer

English

Use mermaidProcessor.ts from the complete repository after npm ci. Individual skill installation supplies instructions, not the shared helper dependencies.

  1. Read the authorized source and preserve it until validation succeeds.
  2. Run checkMermaidErrors(content): it uses the real Mermaid parser and counts incomplete Mermaid fences as errors. Matching backtick/tilde fence lengths determine ownership; examples inside other fences are protected.
  3. Run refineMermaidBlocks(content). Valid blocks stay byte-identical. In invalid, closed flowcharts, automatic repair only changes a complete bare-ID edge A --|> B to A --> B, then requires parsing to succeed. Labels and unrelated punctuation remain unchanged. Unknown families, other syntax errors and unclosed blocks stay intact for explicit review.
  4. Validate again before writing. Do not claim an unresolved parse error was fixed. A renderer/parser unavailable in the host is an unavailable capability, not success.

Never delete parentheses, braces, quotes, nodes or relationships to make a diagram pass. Public legacy fixer exports remain for compatibility; applyDeepDebugToMermaidBlocks is an explicit manual flowchart operation and its result requires validation. cleanupLatexDelimiters converts paired LaTeX inline delimiters only in prose, preserving escaped currency and code.

For headless Node parser tests, the repository supplies a JSDOM test document. This is parser support, not visual rendering evidence. Run npm test and npm run typecheck.

For CLI use, run npm run check:mermaid -- note.md or npm run repair:mermaid -- note.md new-output.md. The dedicated CLI supplies the parser's DOM; library callers must provide their own DOM. Repair refuses an existing output and writes nothing while parser errors remain.

中文

在完整仓库中运行 npm ci 后使用 mermaidProcessor.ts。单独安装技能只提供操作说明,不包含共享工具依赖。

  1. 读取已获授权的源文件,在验证通过前保留原文。
  2. 运行 checkMermaidErrors(content),使用真实 Mermaid 解析器,并把未闭合的 Mermaid 围栏计为错误。依据反引号/波浪号及长度匹配围栏,保护其他围栏中的示例。
  3. 运行 refineMermaidBlocks(content)。有效代码块逐字节不变。对无效且已闭合的流程图,自动修复仅把完整的纯 ID 边 A --|> B 改为 A --> B,并要求重新解析成功。标签和无关标点保持不变。未知类型、其他语法错误及未闭合代码块保留原文,供明确审阅。
  4. 写入前再次验证,不把残留错误报告为修复成功。宿主缺少渲染器/解析器时,应报告能力不可用。

Read the full file on GitHub · 37 lines

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. 2mo ago Changed · -255 lines · -11 tokens per session e7b9adb20a51
  2. 3mo ago First seen · 292 lines · 29 tokens per session scan A cbe2c50b9416

Subscribe to this mod's changes

mermaid-healer is a skill published in the GitHub repository Jacobinwwey/notemdpro (2 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 843 once invoked, about $0.0001 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-08-31.

Related

mermaid-healer compared with skills from other repositories

mermaid-healer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mermaid-healerJacobinwwey/notemdproSkill22mo agoMITA18Claude Code, Codex
parallel-feature-developmentwshobson/agentsSkill43k3d agoMITA105Claude Code
nft-standardswshobson/agentsSkill43k3d agoMITA48Claude Code
cost-optimizationwshobson/agentsSkill43k3d agoMITA48Claude Code
istio-traffic-managementwshobson/agentsSkill43k3d agoMITA40Claude Code
linkerd-patternswshobson/agentsSkill43k3d agoMITA41Claude Code
postgresql-table-designwshobson/agentsSkill43k3d agoMITA37Claude Code