← ClaudeAtlas

mermaid-diagramslisted

Render Mermaid diagrams to SVG using beautiful-mermaid and bun. Use when the user asks to "render mermaid", "generate diagram", "create flowchart", "update diagrams", "render SVG from mermaid", "beautiful-mermaid", "regenerate diagrams", or needs to convert Mermaid diagram syntax into styled SVG files. Supports all Mermaid diagram types with 15 themes including tokyo-night.
ahundt/autorun · ★ 14 · AI & Automation · score 67
Install: claude install-skill ahundt/autorun
# Mermaid Diagram Rendering with beautiful-mermaid <purpose> Render Mermaid `.mmd` files into styled SVG using [beautiful-mermaid](https://github.com/lukilabs/beautiful-mermaid) v1.0.2 and [bun](https://bun.sh). ## Skill Contents | File | Purpose | |------|---------| | `render-mermaid.ts` | CLI tool: renders `.mmd` files to SVG | | `gemini-diagram-prompt.md` | Prompt for Gemini image generation | </purpose> <setup> ## Installation Only **bun** is required. The `beautiful-mermaid` dependency is auto-installed by bun on first run. ```bash # macOS brew install oven-sh/bun/bun # Or universal installer curl -fsSL https://bun.sh/install | bash ``` </setup> <reference> ## CLI Reference ``` render-mermaid — Render Mermaid .mmd files to themed SVG Usage: bun run render-mermaid.ts [options] <input.mmd...> echo 'graph TD; A-->B' | bun run render-mermaid.ts -o out.svg Options: -o, --output <file> Output file (single input only) --outdir <dir> Output directory for multiple files -t, --theme <name> Theme (default: tokyo-night) --list-themes List available themes --help Show this help ``` **Output defaults:** Without `-o` or `--outdir`, writes `<name>.svg` next to each input file (`-d` is swallowed by `bun run`; use `--outdir`). **Shorthand:** Set `MERMAID=plugins/autorun/skills/mermaid-diagrams/render-mermaid.ts` for shorter commands. </reference> <examples> ## Examples ```bash MERMAID=plugins/autorun/skills/mermaid-dia