Turns Mermaid diagram code into clean SVG and PNG outputs with proper theme support. You get twelve themes out of the box, from Tokyo Night to Solarized, and it handles the full pipeline: render the diagram, wrap it in HTML, then use agent-browser to capture a 4K screenshot for the PNG. The documentation is thoughtful about syntax gotchas, like using pipe notation for edge labels instead of space-dash syntax that can break renders. If you're generating diagrams for documentation or need to produce both vector and raster formats without manual screenshots, this handles the whole workflow. Clean intermediary files yourself afterward.

skills.sh installs
1.8K
GitHub stars
301
last updated
Aug 21, 2026

Install

$ npx -y skills add intellectronica/agent-skills --skill beautiful-mermaid --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

A -->|label| B
A ---|label| B

Avoid space-dash syntax which can cause incomplete renders:

A -- label --> B   # May cause issues

Node Labels with Special Characters

Wrap labels containing special characters in quotes:

Sponsors

Details

Repository
github.com/intellectronica/agent-skills
Category
AI & Agent Building

More from intellectronica/agent-skills

All 22
1lingzhi227 avatarexperiment-designlingzhi227/agent-research-skillsDesign experiment plans with progressive stages — initial implementation, baseline tuning, creative research, and ablation studies. Plan baselines, datasets, hy1.8Kskills.sh installs
2k-dense-ai avatarpptxk-dense-ai/scientific-agent-skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentat1.8Kskills.sh installs
36551team avataropennews6551team/opennews-mcpopennews1.8Kskills.sh installs
4arize-ai avatarphoenix-cliarize-ai/phoenixDebug LLM applications using the Phoenix CLI. Fetch traces, analyze errors, structure trace review with open coding and axial coding, inspect datasets, review e1.8Kskills.sh installs
5alchemyplatform avataralchemy-apialchemyplatform/skillsWire Alchemy into application code (server, backend, dApp, script) using a standard API key. Preferred app-integration path for normal server/backend usage. Cov1.7Kskills.sh installs
6pika-labs avatarfounder-product-videopika-labs/pika-pluginsUse when the user asks for founder product video or a task matching the examples below. Generate a 65-second founder-style product video from a product URL + us1.7Kskills.sh installs