Awesome-omni-skill beautiful-mermaid-renderer
Render Mermaid diagrams using beautiful-mermaid as Unicode/ASCII (terminal/chat) or SVG (rich UI). Use when you need a quick, good-looking diagram preview in plain text or want to generate an SVG from Mermaid source (Bun preferred).
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data-ai/beautiful-mermaid-renderer" ~/.claude/skills/diegosouzapw-awesome-omni-skill-beautiful-mermaid-renderer && rm -rf "$T"
manifest:
skills/data-ai/beautiful-mermaid-renderer/SKILL.mdsource content
Beautiful Mermaid Renderer
Overview
Render Mermaid source into Unicode/ASCII box-drawing diagrams for terminal/chat output, or into SVG for embedding in docs/UIs.
Quick start (Bun)
- Install dependencies (one-time per machine):
cd ~/.codex/skills/beautiful-mermaid-renderer && bun install
- Render Unicode (default) to stdout:
cat diagram.mmd | ./scripts/render.sh --format unicode
- Render ASCII (maximum compatibility):
cat diagram.mmd | ./scripts/render.sh --format ascii
- Render SVG to a file:
cat diagram.mmd | ./scripts/render.sh --format svg --out diagram.svg
Workflow
- Draft or collect Mermaid source
- Prefer small diagrams that fit in a chat/terminal viewport.
- When replying, include the Mermaid source in a fenced
block when it helps the user edit or reuse it.mermaid
- Render for user viewing (default)
- Prefer
and paste the output in a fenced code block.--format unicode - If box-drawing characters display poorly, rerender with
.--format ascii
- Render SVG when needed
- Use
and write to a file (--format svg
).--out - Optionally apply a built-in theme (
) or custom colors (--theme
/--bg
).--fg
CLI reference (scripts/render.sh
)
scripts/render.sh
(default:--format <unicode|ascii|svg>
)unicode
(optional; otherwise read from stdin)--in <file>
(optional; otherwise write to stdout)--out <file>
(SVG only) and--theme <name>--list-themes
/--bg <color>
(SVG only; overrides theme)--fg <color>
(SVG only)--transparent
/--paddingX <n>
/--paddingY <n>
(text only)--boxBorderPadding <n>