mermaid-cli

Installation
SKILL.md

Mermaid CLI

Overview

mmdc (Mermaid CLI) converts Mermaid diagram definitions into SVG, PNG, or PDF output. It is the official command-line interface for the Mermaid diagramming library, enabling text-based diagram generation without a browser.

Write diagram definitions in .mmd files using Mermaid's declarative syntax, then run mmdc to produce publication-ready output. This is the primary tool for generating diagrams from text in automated and scripting workflows.

mmdc also serves as a syntax validator: any render attempt validates the diagram. If the Mermaid syntax is invalid, mmdc exits with a non-zero code and reports parse errors to stderr. This enables iterative validate-and-fix workflows.

Prerequisites

CRITICAL: Before proceeding, you MUST verify that mermaid-cli is installed:

mmdc --version

If mmdc is not installed:

Related skills

More from dashed/claude-marketplace

Installs
2
GitHub Stars
14
First Seen
Apr 22, 2026