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 Jacobinwwey/notemdpro --skill mermaid-healergit clone --depth 1 https://github.com/Jacobinwwey/notemdproWrote 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/jacobinwwey/notemdpro/mermaid-healer)<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.
<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>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.00018 | $0.00843 |
| Opus 5.5 | $0.00007 | $0.00337 |
| Sonnet 5.5 | $0.00004 | $0.00169 |
| Haiku 4.5 | $0.00002 | $0.00084 |
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.
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.
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.
- Read the authorized source and preserve it until validation succeeds.
- 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. - Run
refineMermaidBlocks(content). Valid blocks stay byte-identical. In invalid, closed flowcharts, automatic repair only changes a complete bare-ID edgeA --|> BtoA --> 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. - 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。单独安装技能只提供操作说明,不包含共享工具依赖。
- 读取已获授权的源文件,在验证通过前保留原文。
- 运行
checkMermaidErrors(content),使用真实 Mermaid 解析器,并把未闭合的 Mermaid 围栏计为错误。依据反引号/波浪号及长度匹配围栏,保护其他围栏中的示例。 - 运行
refineMermaidBlocks(content)。有效代码块逐字节不变。对无效且已闭合的流程图,自动修复仅把完整的纯 ID 边A --|> B改为A --> B,并要求重新解析成功。标签和无关标点保持不变。未知类型、其他语法错误及未闭合代码块保留原文,供明确审阅。 - 写入前再次验证,不把残留错误报告为修复成功。宿主缺少渲染器/解析器时,应报告能力不可用。
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.
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.
- 2mo ago Changed · -255 lines · -11 tokens per session e7b9adb20a51
- 3mo ago First seen · 292 lines · 29 tokens per session scan A cbe2c50b9416
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.
mermaid-healer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mermaid-healerJacobinwwey/notemdpro | Skill | 2 | 2mo ago | MIT | A | 18 | Claude Code, Codex |
| parallel-feature-developmentwshobson/agents | Skill | 43k | 3d ago | MIT | A | 105 | Claude Code |
| nft-standardswshobson/agents | Skill | 43k | 3d ago | MIT | A | 48 | Claude Code |
| cost-optimizationwshobson/agents | Skill | 43k | 3d ago | MIT | A | 48 | Claude Code |
| istio-traffic-managementwshobson/agents | Skill | 43k | 3d ago | MIT | A | 40 | Claude Code |
| linkerd-patternswshobson/agents | Skill | 43k | 3d ago | MIT | A | 41 | Claude Code |
| postgresql-table-designwshobson/agents | Skill | 43k | 3d ago | MIT | A | 37 | Claude Code |