Converts Mermaid diagram code blocks in your Markdown files to PNG images using the mermaid.ink API, then replaces the blocks with image references. You'd use this when publishing to platforms that don't render Mermaid natively, like GitHub Pages with Jekyll or Dev.to. It's smart about finding your project's image directory, generates descriptive filenames instead of generic ones, and handles the relative path logic for you. The workflow is solid: it scans for blocks, asks where to save images if unclear, renders via API, and swaps in the references. One caveat is that mermaid.ink can time out on very complex diagrams, so you might need to simplify or use a different renderer for those cases.

skills.sh installs
4K
last updated
Aug 21, 2026

Install

$ npx -y skills add zc277584121/marketing-skills --skill mermaid-to-image --agent claude-code

Installs into .claude/skills of the current project.

Files

Skill: Mermaid to Image

Convert ```mermaid code blocks in Markdown (or other text) files into PNG images, and replace the code blocks with image references. Useful for platforms that don't render Mermaid natively (GitHub Pages/Jekyll, Dev.to, etc.).


When to Use

  • The user asks to convert Mermaid diagrams in a file to images
  • The user wants to render specific Mermaid code blocks as PNG
  • A publishing workflow requires static images instead of Mermaid code blocks

Workflow

Step 1: Identify target files

The user may specify:

  • A single file: convert mermaid blocks in docs/architecture.md
  • Multiple files: convert mermaid in all files under docs/
  • A specific code block: convert the second mermaid block in README.md

Scan the target file(s) for ```mermaid code blocks. Report how many blocks were found and in which files before proceeding.

Step 2: Determine the image output directory

Check the project structure to find where images are typically stored:

# Look for common image directories
ls -d images/ img/ assets/ assets/images/ static/images/ docs/images/ 2>/dev/null

Sponsors

Details

Repository
github.com/zc277584121/marketing-skills
Categories
Backend & APIs, Marketing & SEO
First seen
May 16, 2026

More from zc277584121/marketing-skills

All 14
1zc277584121 avatarimage-generationzc277584121/marketing-skillsGenerate illustration images for articles and documentation with a Codex-first workflow, OpenAI API fallback, and Gemini fallback.4Kskills.sh installs
2tradermonty avatarvalue-dividend-screenertradermonty/claude-trading-skillsScreen US stocks for high-quality dividend opportunities combining value characteristics (P/E ratio under 20, P/B ratio under 2), attractive yields (3% or highe4Kskills.sh installs
3dotnet avatarandroid-tombstone-symbolicationdotnet/skillsSymbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the M4Kskills.sh installs
4pexoai avatarvideoagent-audio-studiopexoai/pexo-skillsTired of juggling multiple audio APIs? This skill gives you one-command access to TTS, music generation, sound effects, and voice cloning. Use when you want to 4Kskills.sh installs
5majidmanzarpour avatarthreejs-3d-generatormajidmanzarpour/threejs-game-skillsGenerate, texture, rig, animate, stylize, convert, and download 3D assets for Three.js games using the Tripo API. Use for text-to-3D, image-to-3D, 2D concept to3.9Kskills.sh installs
6dotnet avatarmigrate-vstest-to-mtpdotnet/skillsMigrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Tes3.9Kskills.sh installs