beautiful-mermaid-ascii
Original:🇺🇸 English
Translated
3 scripts
Render Mermaid diagrams as readable ASCII/Unicode art in the terminal (from .mmd/.mermaid files, stdin, or Markdown ```mermaid fences). Use when installing or using lukilabs/beautiful-mermaid, creating a CLI renderer for Mermaid-to-ASCII output, previewing Mermaid diagrams in terminal, or extracting/rendering Mermaid blocks from Markdown files.
4installs
Sourceratacat/claude-skills
Added on
NPX Install
npx skill4agent add ratacat/claude-skills beautiful-mermaid-asciiTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Beautiful Mermaid ASCII Rendering
Use (a JS library, not a CLI) to turn Mermaid diagrams into terminal-friendly ASCII/Unicode art.
lukilabs/beautiful-mermaidQuick start
Render a Mermaid file:
bash
skills/beautiful-mermaid-ascii/scripts/mermaid-ascii path/to/diagram.mmdInstall a clean command on your PATH (symlink into by default):
mermaid-ascii~/.local/binbash
skills/beautiful-mermaid-ascii/scripts/install-mermaid-asciiRender from stdin:
bash
cat path/to/diagram.mmd | skills/beautiful-mermaid-ascii/scripts/mermaid-asciiRender the first Mermaid fenced block from Markdown:
bash
skills/beautiful-mermaid-ascii/scripts/mermaid-ascii --md README.mdSelect a different fenced block (1-based):
bash
skills/beautiful-mermaid-ascii/scripts/mermaid-ascii --md README.md --block 2Installation approach (how this skill “deals with installing”)
scripts/mermaid-asciibeautiful-mermaid$XDG_CACHE_HOME/beautiful-mermaid-ascii/tmp/beautiful-mermaid-asciiIf you want a “real” command on your PATH, prefer the symlink installer:
bash
skills/beautiful-mermaid-ascii/scripts/install-mermaid-asciiYou can also install this folder as a local/global npm package (use a writable npm cache if your is not writable):
~/.npmbash
# from the repo root
NPM_CONFIG_CACHE=/tmp/npm-cache npm install -g --prefix ~/.local ./skills/beautiful-mermaid-asciiIf you already have installed in the current project, run with:
beautiful-mermaidbash
skills/beautiful-mermaid-ascii/scripts/mermaid-ascii --pkg-dir . path/to/diagram.mmdTroubleshooting
- If installs fail due to permission errors in or
~/.npm, run with a writable cache directory:~/Library/Cachesskills/beautiful-mermaid-ascii/scripts/mermaid-ascii --cache-dir /tmp/bm-cache ...
- If output is empty, verify the Mermaid text is valid and starts with a diagram type (,
flowchart, etc.).sequenceDiagram - For multiple diagrams in Markdown, use to enumerate fenced blocks and choose one with
--list.--block
Bundled resources
- : Shell wrapper that ensures dependencies are available, then renders.
skills/beautiful-mermaid-ascii/scripts/mermaid-ascii - : Node CLI that extracts Mermaid (raw or from Markdown fences) and calls
skills/beautiful-mermaid-ascii/scripts/mermaid-ascii.mjs.renderMermaidAscii - : Small notes about Mermaid inputs and common patterns.
skills/beautiful-mermaid-ascii/references/notes.md