Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bahayonghang avatar

Beautiful Mermaid Editor

  • 4 installs
  • 16 repo stars
  • Updated August 3, 2026
  • bahayonghang/my-claude-code-settings

beautiful-mermaid-editor is a skill that modifies the Beautiful Mermaid live editor's own TypeScript source rather than authoring Mermaid diagrams.

About

This skill maintains the Beautiful Mermaid live editor codebase rather than authoring Mermaid diagrams. It treats editor.ts as the source of truth over the generated editor.html and traces UI controls through local state, buildOptions, and the render/export path before editing. It covers changes to the config panel, themes, dark mode, zoom, PNG/SVG export, clipboard, and renderer wiring. A developer uses it when working on the editor repo itself.

  • Modifies the Beautiful Mermaid live editor source itself, not ordinary Mermaid diagrams
  • Treats editor.ts as source of truth over generated editor.html
  • Covers config panel, themes, dark mode, zoom, PNG/SVG export, and clipboard wiring

Beautiful Mermaid Editor by the numbers

  • 4 all-time installs (skills.sh)
  • Ranked #1,817 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

beautiful-mermaid-editor capabilities & compatibility

Free; operates on a local repo.

Capabilities
frontend development · editor maintenance · typescript editing
Use cases
frontend · code review
Pricing
Free
From the docs

What beautiful-mermaid-editor says it does

Work from the Beautiful Mermaid editor source tree, not from generated HTML output.
SKILL.md
Treat `editor.ts` as the source of truth. Do not edit generated `editor.html` directly unless the target repo explicitly requires committed build artifacts.
SKILL.md
npx skills add https://github.com/bahayonghang/my-claude-code-settings --skill beautiful-mermaid-editor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs4
repo stars16
Last updatedAugust 3, 2026
Repositorybahayonghang/my-claude-code-settings

What it does

Modify the Beautiful Mermaid live editor source (editor.ts, config panel, themes, export) rather than write Mermaid diagrams.

Who is it for?

Editing the Beautiful Mermaid editor repo: config panel, themes, dark mode, zoom, and export behavior.

Skip if: Generic Mermaid syntax help or normal Markdown Mermaid authoring.

When should I use this skill?

The task mentions the Beautiful Mermaid repo, editor.ts, generated editor.html, the config panel, themes, zoom, or PNG/SVG export.

What you get

An edited editor.ts source with the regenerated artifact and targeted verification.

  • Edited editor.ts source
  • Regenerated editor artifact

By the numbers

  • 5-step execution flow
  • Task routing table with 4 task types

Files

SKILL.mdMarkdownGitHub ↗

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 typeLoad first
Config panel, color control, slider, sample presetreferences/CHANGE_PATTERNS.md
Render pipeline, theme, dark mode, zoom, export, clipboardreferences/ARCHITECTURE.md
Rebuild commands, smoke checks, generated artifact reviewreferences/VERIFICATION.md
Renderer support or new RenderOptions fieldreferences/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

Prefer extending the existing flow over creating parallel state or duplicate helpers.

4. Implement with the existing patterns

  • Config option / control: wire UI, local state, readConfig(), and events together.
  • SVG override: follow the post-render injected-style pattern and rerun it after every render.
  • Renderer support: add the field to RenderOptions, then thread it through the theme/renderer helpers.
  • Theme / dark mode: preserve the existing auto-theme vs manual-theme behavior.
  • Zoom: preserve viewBox-based width/height updates; do not switch to CSS transform: scale(...).
  • Export / clipboard: keep SVG/PNG/clipboard behavior aligned and inspect scale handling.
  • Samples: update the editor's sample source and category behavior rather than only editing showcase data.

Detailed edit recipes live in references/CHANGE_PATTERNS.md.

5. Verify before handoff

Read references/VERIFICATION.md before finalizing. At minimum:

  • regenerate the editor artifact from source when source changed
  • run the smallest relevant project checks
  • smoke-test the edited workflow in a browser if the task affects UI, render, export, theme, or zoom
  • review whether generated editor.html should be included in the final diff

Rules

  • Do not assume the target repo still matches older architecture notes; re-read the current source first.
  • Do not expose new UI options that the renderer cannot actually support.
  • Do not treat generic Mermaid authoring or syntax questions as editor-maintenance tasks.
  • When the request is really about ordinary Mermaid content, decline this skill and use a normal docs/writing workflow instead.

Progressive disclosure

  • references/ARCHITECTURE.md — current state model, render pipeline, theme/CSS variables, sharing, and export paths.
  • references/CHANGE_PATTERNS.md — step-by-step change recipes for controls, samples, SVG overrides, renderer support, and related edits.
  • references/VERIFICATION.md — rebuild commands, targeted checks, browser smoke scenarios, and generated-artifact review.

Related skills

FAQ

Is this for writing Mermaid diagrams?

No, it maintains the editor tool itself and declines generic Mermaid authoring tasks.

Which file is the source of truth?

editor.ts is the source of truth; the generated editor.html is not edited directly unless the repo requires committed build artifacts.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.