Mermaid Tools Skill
Extract Mermaid diagrams from Markdown and render them to high-resolution PNG. Perfect for blog posts, README files, and slide decks where SVG isn't supported. By @daymade.
By daymade
Source: github.com
Install
npx degit daymade/claude-code-skills/mermaid-tools ~/.claude/skills/mermaid-tools
mermaid-tools solves a small but persistent pain: Mermaid diagrams in
Markdown render fine on GitHub, but break everywhere else (most
publishing platforms, exported PDFs, slides, social previews).
What it does
- Scans Markdown for
```mermaidblocks - Renders each to PNG at configurable resolution
- Preserves diagram titles as filenames
- Outputs at 2x or 3x density for retina displays
Where it shines
- Tech blog posts — most platforms (Medium, Substack, WeChat) don’t render Mermaid
- README → social card — when you want to share a repo’s architecture diagram
- Slide decks — drop the PNG into PowerPoint or Keynote
- Exported PDFs — Mermaid often breaks during export; pre-rendering avoids it
Composes with
excalidraw-diagram/drawio-diagram— when you need editable output insteadwechat-article-writer— embed rendered diagrams into articlespptx— embed into slide decks
Example prompt
Use mermaid-tools to scan this Markdown file, find every mermaid block,
and render each as a 2x retina PNG suitable for blog use. Save to
./diagrams/ with filenames matching the diagram titles.
Related skills
Algorithmic Art Skill
Generative art via p5.js — flow fields, particle systems, layered noise. Outputs an interactive sketch, not a static image.
Capture Screen Skill
macOS window-level screenshot automation. Per-window capture, scriptable, repeatable. By @daymade.
CLI Demo Generator Skill
Programmatic terminal-recording for README files and documentation. Powered by VHS — write a script, get a perfect GIF every time. By @daymade.
More from daymade
Capture Screen Skill
macOS window-level screenshot automation. Per-window capture, scriptable, repeatable. By @daymade.
Doc to Markdown Skill
Convert .doc / .docx / .pdf / .pptx into clean Markdown — extract text, preserve structure, save embedded images. By @daymade.
CLI Demo Generator Skill
Programmatic terminal-recording for README files and documentation. Powered by VHS — write a script, get a perfect GIF every time. By @daymade.