beautiful-mermaid
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
Skill by intellectronica
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/intellectronica-beautiful-mermaid
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/beautiful-mermaid
What's inside
- Skill name
beautiful-mermaid- Description
- Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library. Use when the user asks to render a Mermaid diagram.
- License
- CC0-1.0
- Instructions
- 168 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "beautiful-mermaid" does not match folder "skills"
Files (2)
- SKILL.md
- mermaid-syntax.md · references/
SKILL.md (first lines)
# Beautiful Mermaid Diagram Rendering Render Mermaid diagrams as SVG and PNG images using the Beautiful Mermaid library. ## Dependencies This skill requires the `agent-browser` skill for PNG rendering. Load it before proceeding with PNG capture. ## Supported Diagram Types - **Flowchart** - Process flows, decision trees, CI/CD pipelines - **Sequence** - API calls, OAuth flows, database transactions - **State** - State machines, connection lifecycles - **Class** - UML class diagrams, design patterns - **Entity-Relationship** - Database schemas, data models ## Available Themes Default, Dracula, Solarized, Zinc Dark, Tokyo Night, Tokyo Night Storm, Tokyo Night Light, Catppuccin Latte, Nord, Nord Light, GitHub Dark, GitHub Light, One Dark. If no theme is specified, use `default`. ## Common Syntax Patterns ### Flowchart Edge Labels Use pipe syntax for edge labels: ```mermaid A -->|label| B A ---|label| B ``` Avoid space-dash syntax which can cause incomplete renders: ```mermaid A -- label --> B # May cause issues ``` ### Node Labels with Special Characters Wrap labels containing special characters in quotes: ```mermaid A["Label with (parens)"] B["Label with / slash"] ``` ## Workflow ### Step 1: Generate or Validate Mermaid Code If the user provides a description rather than code, generate valid Mermaid syntax. Consult `references/mermaid-syntax.md` for full syntax details. ### Step 2: Render SVG Run the rendering script to produce an SVG file: ```bash bun run scripts/render.ts --code "graph TD; A-->B" --output diagram --theme default ``` Or from a file: ```bash bun run scripts/render.ts --input diagram.mmd --output diagram --theme tokyo-night ``` Alternative runtimes: ```bash npx tsx scripts/render.ts --code "..." --output diagram deno run --allow-read --allow-write --allow-net scripts/render.ts --code "..." --output diagram ``` This produces `<output>.svg` in the current working directory. ### Step 3: Create HTML Wrapper Run the HTML wrapper script to prepare for screenshot: ```bash bun run scripts/create-html.ts --svg diagram.svg --output diagram.html ``` This creates a minimal HTML file that displays the SVG with proper padding and background. ### Step 4: Capture High-Resolution PNG with agent-browser Use the agent-browser CLI to capture a high-quality screenshot. Refer to the `agent-browser` skill for full CLI documentation. ```bash # Set 4K viewport for high-resolution capture agent-browser set viewport 3840 2160 # Open the HTML wrapper agent-browser open "file://$(pwd)/diagram.html" # Wait for render to complete agent-browser wait 1000 # Capture full-page screenshot agent-browser screenshot --full diagram.png # Close browser agent-browser close ``` For even higher resolution on complex diagrams, increase the viewport further or use the `--padding` option when creating the HTML wrapper to give the diagram more space. ### Step 5: Clean Up Intermediary Files After rendering, remove all intermediary files. Only the final `.svg` and `.png` should remain. Files to clean up: - The HTML wrapper file (e.g., `diagram.html`) - Any temporary `.mmd` files created to hold diagram code - Any other files created during the rendering process ```bash
From intellectronica/agent-skills, CC0-1.0.
More from intellectronica/agent-skills
- 0.620score
notion-api
intellectronica
This skill provides comprehensive instructions for interacting with the Notion API via REST calls.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
todoist-api
intellectronica
This skill provides instructions for interacting with Todoist using the td CLI tool.
SkillDFreshness: D★ 297Claude Code +9 - 0.536score
copilot-sdk
intellectronica
This skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-pro
intellectronica
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
mgrep-code-search
intellectronica
Semantic code search using mgrep for efficient codebase exploration.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-2
intellectronica
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
ray-so-code-snippet
intellectronica
Generate beautiful code snippet images using ray.so.
SkillDFreshness: D★ 297Claude Code +9 - 0.530score
raindrop-api
intellectronica
This skill provides comprehensive instructions for interacting with the Raindrop.io bookmarks service via its REST API using curl and jq.
SkillDFreshness: D★ 297Claude Code +9 - 0.528score
ultrathink
intellectronica
Display colorful ANSI art of the word "ultrathink".
SkillDFreshness: D★ 297Claude Code +9 - 0.514score
gog-cli
intellectronica
Use this skill whenever the user wants to operate Google Workspace from the command line with gog/gogcli, including Gmail, Calendar, Drive, Docs, Sheets…
SkillDFreshness: D★ 297Claude Code +9 - 0.505score
monologue-notes-api
intellectronica
Use this skill when the user wants to read or search their Monologue notes through the Monologue Notes REST API.
SkillDFreshness: D★ 297Claude Code +9
Signals
- Stars
- 297
- Forks
- 27
- Open issues
- 1
- Last commit (this folder)
- Jan 30, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- CC0-1.0
- Repository
- github.com/intellectronica/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.326score
beautiful-mermaid
intellectronica
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
SkillDFreshness: D★ 297Claude Code +9 - 0.298score
beautiful-mermaid
paschalidi
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
SkillCFreshness: C★ 1Claude Code +9
More from intellectronica
- 0.620score
notion-api
intellectronica
This skill provides comprehensive instructions for interacting with the Notion API via REST calls.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
todoist-api
intellectronica
This skill provides instructions for interacting with Todoist using the td CLI tool.
SkillDFreshness: D★ 297Claude Code +9 - 0.536score
copilot-sdk
intellectronica
This skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
mgrep-code-search
intellectronica
Semantic code search using mgrep for efficient codebase exploration.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-2
intellectronica
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-pro
intellectronica
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API.
SkillDFreshness: D★ 297Claude Code +9
Cite this page
beautiful-mermaid skill. Agent Mart. https://agentmart.dev/skills/intellectronica-beautiful-mermaid (last updated 2026-10-24)