agentic-mermaid-live-editor-development

agentic-mermaid-live-editor-development is a skill for Claude Code, Codex from adewale/agentic-mermaid. It costs 45 tokens per session (1,437 once invoked), scanned A, original, from a forked repository, MIT.

A development guide for editing and debugging the Agentic Mermaid browser editor, including its interface, rendering and verification flow, sharing links, website integration, and browser tests.

In plain words
What is it for?
Use it when changing editor behavior, styling, examples, rendering, state URLs, website builds, or browser regression tests.
Why use it?
It identifies the source files and build commands that keep the standalone editor and deployed website working together.

Skill for Claude CodeCodex

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

Good fit Use it when changing editor behavior, styling, examples, rendering, state URLs, website builds, or browser regression tests.

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

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 agentic-mermaid-live-editor-development

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/adewale/agentic-mermaid/agentic-mermaid-live-editor"><img src="https://agentmods.dev/badge/skills/adewale/agentic-mermaid/agentic-mermaid-live-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,437 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 fork From a forked repository.
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.00045 $0.01437
Opus 5.5 $0.00018 $0.00575
Sonnet 5.5 $0.00009 $0.00287
Haiku 4.5 $0.00005 $0.00144

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

Security

Grade A, and why

agentic-mermaid-live-editor-development 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.

skills/agentic-mermaid-live-editor/SKILL.md · 159 lines

How it starts

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

Agentic Mermaid live editor development

Edit the modular editor sources and preserve the contracts shared by the standalone editor and the deployed website.

Source map

Path Role
editor/js/ Editor behavior. Treat sharing.js, rendering.js, and state.js as contract sources.
editor/css/ Editor styling.
editor/html/ Top bar and workspace partials.
editor/examples.ts Canonical editor examples.
scripts/site/editor.ts Assemble the standalone editor.html.
website/build.ts Assemble the deployed /editor/ and all public pages that link to it.
scripts/site/editor-state-url.ts Canonical build-time encoder and validator for editor-state URLs.
src/browser.ts Browser renderer API exposed as window.__mermaid.

Do not edit generated editor.html or website/public/ files directly.

Build and test cycle

Run the target that owns the changed surface:

bun run editor          # standalone editor.html
bun run website         # production website/public, including /editor/
bun run website:check   # clean in-memory website + Worker artifact contracts
bun run typecheck

For behavior changes, also run the focused editor unit tests and the browser lane. The browser lane requires Playwright Chromium and AM_BROWSER_TESTS=1.

State contract

Keep editor state in the canonical shape from editor/js/state.js:

state = {
  palette: 'paper',
  style: 'crisp',
  seed: 0,
  zoom: 1,
  config: {},
}
  • palette stores the registered palette input name.
  • style stores the registered Look input name or crisp.
  • seed affects styled ink without changing layout.
  • config contains admitted serializable render options.
  • Browser chrome dark/light mode is separate from diagram appearance and must not rewrite state.palette.

When adding state, update serialization, sanitization, restoration, control hydration, and tests together.

Render and verification boundary

Follow the pipeline in editor/js/rendering.js:

Read the full file on GitHub · 159 lines

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 First seen · 159 lines · 45 tokens per session scan A c2a0f2854399

Subscribe to this mod's changes

agentic-mermaid-live-editor-development is a skill published in the GitHub repository adewale/agentic-mermaid (69 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 1,437 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other skills, from other repositories

mermaid-lint

Findet und behebt Mermaid-Diagramme, die GitHub nicht rendert ("Unable to render rich display"). Prueft jeden mermaid-Block mit dem echten Mermaid-Parser ohne Browser und belegt das Ergebnis danach an der lebenden GitHub-Seite.

ellmos-ai/skills · 61 tokens

incident-postmortem

Use when an outage, production incident, or significant service degradation has occurred and the team needs to write a structured blameless post-mortem. Triggers on phrases like "write a post-mortem", "incident review", "what went wrong", "outage report", "root cause analysis", or "RCA". Covers timeline…

OKHP3/skillz · 91 tokens

code-analysis

Builds an understanding of a whole codebase or subsystem — what it does, how it is structured, where the risk and complexity concentrate, and reports it as a map someone can act on. Use this whenever the user is new to a repo, inherits unfamiliar code, asks how something works end to end, wants an architecture…

OKHP3/skillz · 96 tokens

log-analysis

Extracts an answer from logs, traces, or metrics — finding the relevant lines in volume, correlating across services, and telling signal from noise. Use this whenever the user points at a log file, asks what happened at a particular time, mentions grepping logs, wants to know how often something occurs, or is trying…

OKHP3/skillz · 99 tokens

refactor-plan

Create a concrete plan before starting a multi-file refactor. Use when the user asks to plan, sequence, scope, or safely execute a refactor across multiple files; always investigate first, output the plan, and wait for confirmation before making code changes.

OKHP3/skillz · 55 tokens

refactoring-best-practices

Safe refactoring guidance for legacy and existing codebases. Use when improving design without changing behavior, creating seams around hard dependencies, migrating null/string/generic exceptions to typed failure contracts, extracting a repository from direct SQL/ORM access, introducing Domain Events into legacy…

OKHP3/skillz · 86 tokens