beautiful-mermaid-editor

beautiful-mermaid-editor is a skill for Claude Code from bahayonghang/my-ai-cli-toolkit. It costs 65 tokens per session (1,011 once invoked), scanned A, original, MIT.

A specialised workflow for changing the Beautiful Mermaid live editor, the application that creates and previews Mermaid diagrams.

In plain words
What is it for?
Use it for editor features such as configuration panels, themes and dark mode, zoom, PNG or SVG export, sample presets, and renderer wiring.
Why use it?
It keeps changes in the editor's source files and build process, rather than editing generated output that may be overwritten.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

Good fit Use it for editor features such as configuration panels, themes and dark mode, zoom, PNG or SVG export, sample presets, and renderer wiring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bahayonghang/my-ai-cli-toolkit/beautiful-mermaid-editor
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 bahayonghang/my-ai-cli-toolkit --skill beautiful-mermaid-editor
Clone the repo
git clone --depth 1 https://github.com/bahayonghang/my-ai-cli-toolkit

Made for: Claude Code.

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 beautiful-mermaid-editor

README.md
[![agentmods](https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/beautiful-mermaid-editor/github.svg)](https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/beautiful-mermaid-editor)
Your own site
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/beautiful-mermaid-editor"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/beautiful-mermaid-editor/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 beautiful-mermaid-editor

Your own site · 80×15
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/beautiful-mermaid-editor"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/beautiful-mermaid-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,011 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.00065 $0.01011
Opus 5 $0.00032 $0.00505
Sonnet 5 $0.00013 $0.00202
Haiku 4.5 $0.00006 $0.00101

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

Security

Grade A, and why

beautiful-mermaid-editor 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/docs-writing-publishing/beautiful-mermaid-editor/SKILL.md · 100 lines

How it starts

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

Beautiful Mermaid Editor

Work from the Beautiful Mermaid editor source tree, not from generated HTML output.

Preconditions

  1. If $ARGUMENTS includes a repo path, treat it as the starting point.
  2. Before proposing edits, read the target repo's AGENTS.md, package scripts, and current editor source.
  3. Treat editor.ts as the source of truth. Do not edit generated editor.html directly unless the target repo explicitly requires committed build artifacts.

Execution flow

1. Locate the real edit surface

  • Find the Beautiful Mermaid repo root and the editor.ts file that generates editor.html.
  • Read the current build/dev entrypoints (package.json, dev.ts, Bun scripts, or equivalents) before assuming command names.
  • Identify adjacent source files only after locating the concrete change path:
    • src/browser.ts
    • src/types.ts
    • src/theme.ts
    • src/styles.ts
    • samples-data.ts

2. Route by task type

Load only the references needed for the requested change:

Task type Load first
Config panel, color control, slider, sample preset references/CHANGE_PATTERNS.md
Render pipeline, theme, dark mode, zoom, export, clipboard references/ARCHITECTURE.md
Rebuild commands, smoke checks, generated artifact review references/VERIFICATION.md
Renderer support or new RenderOptions field references/ARCHITECTURE.md + references/CHANGE_PATTERNS.md

3. Inspect before editing

Trace the current behavior through the real code path before changing anything:

  1. UI control or action handler in editor.ts
  2. local editor state
  3. buildOptions() / render call
  4. SVG post-processing, theme sync, zoom, or export path

Read the full file on GitHub · 100 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 · 100 lines · 65 tokens per session scan A b8353e7f6d29

Subscribe to this mod's changes

beautiful-mermaid-editor is a skill published in the GitHub repository bahayonghang/my-ai-cli-toolkit (16 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 1,011 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories

widen-return-type

When delegating a task affected by this skill, include.

ZaxbyHub/opencode-swarm · 9 tokens

add-a-lib

Scaffold a new shared library under libs/ in the builders-stack monorepo. Use when code is needed in two or more places (apps or services) and should become a single source of truth consumed by package name. Covers the package.json, tsconfig, the one-public-door src/index.ts barrel, and wiring it into a consumer…

lonormaly/builders-stack · 81 tokens

bun

Use this skill when building with Bun runtime — Bun APIs, testing, package management, shell scripting, hot reload, SQLite, file I/O. This skill enforces: built-in APIs over npm equivalents, Bun test runner, bun install speed optimization, Bun.shell for scripts. Do NOT use for: Node.js-specific APIs…

j4flmao/agent-skills · 80 tokens

hono-core

Hono ultrafast web framework fundamentals - routing, context, handlers, and response patterns for multi-runtime deployment.

bobmatnyc/claude-mpm-skills · 26 tokens

typescript-ultimate

End-to-end TypeScript engineering skill for designing, implementing, reviewing, and refactoring production-grade TS codebases. Use when tasks involve TypeScript architecture, advanced typing, strict safety, API/schema typing, React/Node/Nest/Express/Fastify patterns, testing, linting, migration, or code review in…

konamgil/mandu · 74 tokens

nifra

Use when writing, reviewing, or debugging code in a Nifra project (@nifrajs/ packages, nifra CLI, server()/defineContract, loaders and actions, file routes under routes/). Explains how to reach Nifra's live MCP tools so signatures come from the installed version instead of memory, and which sibling skill to load for…

nifrajs/nifra · 83 tokens