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.).
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmermaid-to-imageExecute the skills CLI command in your project's root directory to begin installation:
Fetches mermaid-to-image from zc277584121/marketing-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate mermaid-to-image. Access via /mermaid-to-image in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
0
upvotes
Run in your terminal
0
installs
0
this week
—
stars
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.).
The user may specify:
convert mermaid blocks in docs/architecture.mdconvert mermaid in all files under docs/convert the second mermaid block in README.mdScan the target file(s) for ```mermaid code blocks. Report how many blocks were found and in which files before proceeding.
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
If a clear image directory exists (e.g., images/, assets/images/), use it. Create a subdirectory by topic if appropriate (e.g., images/<topic>/).
If no image directory is obvious or multiple candidates exist, ask the user:
Where should I save the rendered Mermaid images?
1. images/ (create new)
2. assets/images/
3. docs/figures/
4. Custom — enter a path
Tip: add "remember" to save this choice to CLAUDE.local.md.
If the user says "remember", save the choice to the project's CLAUDE.local.md:
## Mermaid Image Output
- **Image directory**: `<chosen-path>`
On subsequent runs, check CLAUDE.local.md for a ## Mermaid Image Output section and use it directly.
Use the mermaid.ink API to render diagrams. Run this Python snippet for each block:
import base64, urllib.request
def render_mermaid(code: str, output_path: str):
"""Render a Mermaid diagram to PNG via mermaid.ink API."""
encoded = base64.urlsafe_b64encode(code.encode()).decode()
url = f"https://mermaid.ink/img/{encoded}?bgColor=white"
req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})
resp = urllib.request.urlopen(req, timeout=30)
with open(output_path, "wb") as f:
f.write(resp.read())
Important: The User-Agent header is required — mermaid.ink returns 403 without it.
Use descriptive filenames based on the diagram content, not generic names:
architecture-overview.png, data-flow.png, heartbeat-sequence.pngmermaid-1.png, diagram.png, image1.pngReplace each ```mermaid ... ``` block with a Markdown image reference using a relative path from the file to the image:

If the project uses absolute URLs (e.g., GitHub Pages), use those instead:

Choose the link style that matches the project's existing image references. If unsure, use relative paths.
After processing, summarize:
.rst, .txt).Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
intellectronica/agent-skills
aradotso/trending-skills
Leonxlnx/taste-skill
glebis/claude-skills
davila7/claude-code-templates
am-will/codex-skills
Keeps context tight: mermaid-to-image is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added mermaid-to-image from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Registry listing for mermaid-to-image matched our evaluation — installs cleanly and behaves as described in the markdown.
mermaid-to-image is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
mermaid-to-image fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Useful defaults in mermaid-to-image — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
mermaid-to-image reduced setup friction for our internal harness; good balance of opinion and flexibility.
Solid pick for teams standardizing on skills: mermaid-to-image is focused, and the summary matches what you get after install.
mermaid-to-image has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for mermaid-to-image matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 54