Agent skill

Mermaid Better

by juliepy in juliepy/AI-Engineer-from-scrach

Draws compact, readable mermaid flowcharts with dark theme, straight edges, a top-down decision spine, and a fixed color palette.

No licenceAuto-check passedDevelopment

Install Mermaid Better

skills CLI
$ npx skills add juliepy/AI-Engineer-from-scrach --skill mermaid-better -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install juliepy/AI-Engineer-from-scrach mermaid-better --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/juliepy/AI-Engineer-from-scrach.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/draw_skill .claude/skills/mermaid-better && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mermaid-better
GitHub stars
441
Token cost
~279 tokens
SKILL.md length
82 words
Files
2
Skills in repo
15
Repo updated
First seen
Licence
None found

At a glance

Draws compact, readable mermaid flowcharts with dark theme, straight edges, a top-down decision spine, and a fixed color palette.

  • Works in 8 steps: 直线:flowchart.curve 必须是… → 判断链用 TB:否/继续往下,是/结束往右。LR 只给无回边的短流水线。 → 并排分层用 RL:左 UI / 中产品 / 右 Core 时,flowchart… → …
  • Redrawing mermaid diagrams in markdown notes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Especially 流程图 / flowchart / mermaid

What it does

Mermaid Better is an agent skill from juliepy/AI-Engineer-from-scrach. Draws compact, readable mermaid flowcharts with dark theme, straight edges, a top-down decision spine, and a fixed color palette. Use when creating, editing, or redrawing mermaid diagrams in markdown notes, especially 流程图 / flowchart / mermaid.

Its SKILL.md is about 280 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `mermaid_better.md`).

It sits in Development, covering Diagrams. It works with Mermaid.

When your agent uses it

  • Redrawing mermaid diagrams in markdown notes
  • Especially 流程图 / flowchart / mermaid

Example prompts

  • “Use the mermaid-better skill to draw compact, readable mermaid flowcharts with dark theme, straight edges, a top-down decision spine, and a fixed…”
  • “/mermaid-better”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. 直线:flowchart.curve 必须是 linear。禁止默认贝塞尔弧,禁止 stepAfter / step。
  2. 判断链用 TB:否/继续往下,是/结束往右。LR 只给无回边的短流水线。
  3. 并排分层用 RL:左 UI / 中产品 / 右 Core 时,flowchart RL + 列内 direction TB。事件从右往左。LR 会把 Core 排到左边。
  4. 不要绕圈:禁止连回起点的回边。循环写在节点上,或落到「续跑」终点。
  5. 不要多线汇合:每个「是」接到自己的结果框,哪怕文案相同。订/setup 不要再连进同一处理节点。
  6. 标签要短:菱形 ≤ 约 12 字,以 ? 结尾;边上只写 是 / 否 / 有 / 无。分区标题一两个词(UI,不要 UI · InteractiveMode + tui)。
  7. 字号写进 classDef:每个 classDef 带 font-size:22px,init 里加 themeCSS + useMaxWidth: false。禁止只改 themeVariables.fontSize(预览把 SVG 缩到栏宽,15→16 看不出)。
  8. 皮肤:dark、黑底、固定 classDef 配色。subgraph id 不要和 class 同名(不要 subgraph core + classDef core)。

What it can do on your machine

Read from SKILL.md and the folder at commit d9e02cb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mermaid Better loads about 279 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 82 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~279

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 82 words (~279 tokens).

name
mermaid-better

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .cursor/skills/draw_skill of juliepy/AI-Engineer-from-scrach.

  • SKILL.md
  • mermaid_better.md

Open the folder on GitHubat commit d9e02cb

Compare with similar skills

Mermaid Better next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mermaid Better compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mermaid Better this skilljuliepy/AI-Engineer-from-scrach441—~279Automated safety check: PassNone
Archify Diagramstt-a1i/archify82k—~2.9kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design49k1 repos~7.6kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Pretty Mermaid Rendererimxv/Pretty-mermaid-skills1.5k—~2kAutomated safety check: PassMIT
Archify Diagram BuilderUnclecheng-li/AI_Animation1.5k2 repos~4.1kAutomated safety check: PassMIT

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    82k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    49k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Pretty Mermaid Renderer

    imxv/Pretty-mermaid-skills

    Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.

    1.5k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed
  • Mermaid

    WH-2099/mermaid-skill

    Generate Mermaid diagrams from user requirements. An agent skill from WH-2099/mermaid-skill.

    288 GitHub starsUsed in 4 repos~958 tokens
    DevelopmentAuto-check passed

More from juliepy/AI-Engineer-from-scrach

All 15 skills in this repo
  • Harness Creator

    juliepy/AI-Engineer-from-scrach

    Build, audit, and improve lightweight harnesses for AI coding agents: AGENTS.md/CLAUDE.md, feature state, verification workflows, scope boundaries, lifecycle handoff, memory persistence, context…

    441 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • PR Worktree

    juliepy/AI-Engineer-from-scrach

    Create and tear down the throwaway git worktrees used to test community PRs for waku-agent, without leaking API keys or leaving branches behind.

    441 GitHub stars~953 tokensUpdated 1 mo ago
    Auto-check: notes
  • Review PR

    juliepy/AI-Engineer-from-scrach

    Review an incoming community PR for waku-agent and present it Sean's way — bilingual (English + 中文), three fixed sections: what they did & why it matters, verdict (merge / change / close), and how…

    441 GitHub stars~946 tokensUpdated 1 mo ago
    Auto-check: notes
  • Implement

    juliepy/AI-Engineer-from-scrach

    Read a plan file, execute every task in dependency order with per-task validation, then write an implementation report to reports/<feature-slug-implementation-report.md.

    441 GitHub stars~638 tokensUpdated 1 mo ago
    Auto-check passed
  • Plan

    juliepy/AI-Engineer-from-scrach

    Analyze a ticket or feature description, read the codebase, identify risks, and write a context-rich implementation plan to plans/<feature-slug-plan.md.

    441 GitHub stars~746 tokensUpdated 1 mo ago
    Auto-check passed
  • Validate

    juliepy/AI-Engineer-from-scrach

    Run the full quality gate (ruff + mypy + pytest + tsc + vitest) and report PASS/FAIL for each command.

    441 GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Mermaid Better

What does Mermaid Better do?

Draws compact, readable mermaid flowcharts with dark theme, straight edges, a top-down decision spine, and a fixed color palette. Mermaid Better is an agent skill from juliepy/AI-Engineer-from-scrach. Draws compact, readable mermaid flowcharts with dark theme, straight edges, a top-down decision spine, and a fixed color palette.

When should I use Mermaid Better?

Mermaid Better fits situations like: redrawing mermaid diagrams in markdown notes; especially 流程图 / flowchart / mermaid.

How do I install Mermaid Better in Claude Code?

Run `npx skills add juliepy/AI-Engineer-from-scrach --skill mermaid-better -a claude-code`. Or copy the skill folder (.cursor/skills/draw_skill in juliepy/AI-Engineer-from-scrach) into .claude/skills/mermaid-better in your project. Claude Code loads it when a task matches its description.

How do I install Mermaid Better in Codex?

Run `npx skills add juliepy/AI-Engineer-from-scrach --skill mermaid-better -a codex`. Or copy the skill folder (.cursor/skills/draw_skill in juliepy/AI-Engineer-from-scrach) into .agents/skills/mermaid-better in your project. Codex loads it when a task matches its description.

Can I use Mermaid Better in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add juliepy/AI-Engineer-from-scrach --skill mermaid-better -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mermaid-better, .gemini/skills/mermaid-better, .github/skills/mermaid-better and .opencode/skills/mermaid-better in your project.

What does Mermaid Better need to run?

SKILL.md names no scripts, command-line tools or credentials: Mermaid Better is instructions for the agent only.

Does Mermaid Better access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mermaid Better safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mermaid Better use?

No licence was found for Mermaid Better or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Mermaid Better use?

About 279 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mermaid Better?

Skills that share tags, products or a category with Mermaid Better: Archify Diagrams (tt-a1i/archify, 82k stars), Diagram Design (cathrynlavery/diagram-design, 49k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Pretty Mermaid Renderer (imxv/Pretty-mermaid-skills, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mermaid Better?

juliepy (a GitHub user) maintains it in juliepy/AI-Engineer-from-scrach, which has 441 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 6, 2026.

Source: juliepy/AI-Engineer-from-scrach on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.