mermaid-to-image

Community

Render Mermaid diagrams to PNG images

Authorzc277584121
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Many static publishing platforms and documentation sites do not render Mermaid diagrams directly, forcing authors to leave raw code blocks or manually produce images. This Skill automates detection and conversion of Mermaid code blocks into static PNG images, preserving diagrams in a format that renders consistently across sites.

Core Features & Use Cases

  • Detects Mermaid code blocks across single files or entire directories and reports the number and locations of diagrams found.
  • Renders diagrams to PNG using the mermaid.ink API with the required User-Agent header and saves images into a chosen project image directory.
  • Replaces original Mermaid code blocks with relative or absolute Markdown image references and supports naming conventions and handling of multiple blocks per file.
  • Use case: Convert diagrams in documentation or blog posts so they display reliably on GitHub Pages, Jekyll sites, or static blogs that do not support Mermaid.

Quick Start

Convert Mermaid code blocks in the specified Markdown file or folder into PNG images and replace each code block with an appropriate Markdown image reference.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mermaid-to-image
Download link: https://github.com/zc277584121/marketing-skills/archive/main.zip#mermaid-to-image

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.