Skip to content
Back to skills

Beautiful Mermaid Renderer

ASecurity

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).

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
toolsgo

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill beautiful-mermaid-renderer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Beautiful Mermaid Renderer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Beautiful Mermaid Renderer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-beautiful-mermaid-renderer/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-beautiful-mermaid-renderer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: beautiful-mermaid-renderer
description: 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).
---

# 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)

1) Install dependencies (one-time per machine):

`cd ~/.codex/skills/beautiful-mermaid-renderer && bun install`

2) Render Unicode (default) to stdout:

`cat diagram.mmd | ./scripts/render.sh --format unicode`

3) Render ASCII (maximum compatibility):

`cat diagram.mmd | ./scripts/render.sh --format ascii`

4) Render SVG to a file:

`cat diagram.mmd | ./scripts/render.sh --format svg --out diagram.svg`

## Workflow

1) Draft or collect Mermaid source
- Prefer small diagrams that fit in a chat/terminal viewport.
- When replying, include the Mermaid source in a fenced `mermaid` block when it helps the user edit or reuse it.

2) Render for user viewing (default)
- Prefer `--format unicode` and paste the output in a fenced code block.
- If box-drawing characters display poorly, rerender with `--format ascii`.

3) Render SVG when needed
- Use `--format svg` and write to a file (`--out`).
- Optionally apply a built-in theme (`--theme`) or custom colors (`--bg` / `--fg`).

## CLI reference (`scripts/render.sh`)

- `--format <unicode|ascii|svg>` (default: `unicode`)
- `--in <file>` (optional; otherwise read from stdin)
- `--out <file>` (optional; otherwise write to stdout)
- `--theme <name>` (SVG only) and `--list-themes`
- `--bg <color>` / `--fg <color>` (SVG only; overrides theme)
- `--transparent` (SVG only)
- `--paddingX <n>` / `--paddingY <n>` / `--boxBorderPadding <n>` (text only)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.