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.
npx skills add https://github.com/zc277584121/marketing-skills --skill mermaid-to-image