render-mermaid

Converts CraftTweaker scripts and ZScript into formatted, hyperlinked HTML5 cookbook-style reference documents.

8|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/wfukatsu/refactoring-agent-for-claude-code --skill render-mermaid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: render-mermaid
Source: https://github.com/wfukatsu/refactoring-agent-for-claude-code/tree/main/.claude/skills/render-mermaid
Command: npx skills add https://github.com/wfukatsu/refactoring-agent-for-claude-code --skill render-mermaid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mermaid-cli.

What problem does it solve?

This Skill enables developers and documentation teams to convert Mermaid diagrams into portable image formats (PNG, SVG, PDF) from Mermaid sources, streamlining diagram sharing and offline accessibility.

Core Features & Use Cases

  • Single-file render: Convert a .mmd Mermaid diagram file to PNG, SVG, or PDF.
  • Markdown inline diagrams: Extract Mermaid blocks embedded in Markdown and render them as images alongside the source.
  • Batch rendering: Process multiple diagrams in a directory to generate a library of ready-to-use visuals.
  • Use Case: In a project wiki, convert all Mermaid diagrams into image assets for offline viewing and documentation.

Quick Start

Install Mermaid CLI and run the renderer on a sample file:

  • Install: npm install -g @mermaid-js/mermaid-cli
  • Render a file: mmdc -i diagrams.mmd -o diagrams.png
  • Optional: render Markdown files containing mermaid blocks to produce images and update references.

Frequently Asked Questions about render-mermaid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render Mermaid diagrams to PNG or SVG for documentation?

To render Mermaid diagrams to PNG or SVG, use Mermaid CLI to process standalone .mmd files or extract Mermaid blocks from Markdown sources and output portable image assets to disk.

Can I extract and render Mermaid blocks embedded in Markdown files?

Yes, you can render Mermaid blocks embedded in Markdown files by extracting the inline diagrams and generating corresponding image assets alongside the original source.

Do I need Mermaid CLI to batch render multiple .mmd files?

Yes, Mermaid CLI is the required dependency for batch rendering multiple .mmd diagram files in a directory into a library of ready-to-use visual assets.

Does this Mermaid renderer support PDF output with optional styling?

The Mermaid renderer supports PDF output alongside PNG and SVG formats, applying optional styling options to the generated diagram images saved on disk.

What is the best way to convert Mermaid diagrams for offline viewing in a project wiki?

The best way to convert Mermaid diagrams for offline viewing in a project wiki is batch rendering them into static image formats like PNG or SVG for portable accessibility.