Diagram To Image
Convert Mermaid diagrams and Markdown tables into styled PNG images via an external rendering API.
- CCM score
- 62 of 100
- skills.sh installs
- 516
- GitHub stars
- 139
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers rendering Mermaid diagrams and Markdown tables to PNG files, with smart output-path selection based on project layout and conversation context
- Includes a bundled Node script (
diagram-to-image.mjs) with options for--theme(10 presets),--type,--scale,--bg, and--server, plus stdin input - Generates kebab-case filenames from diagram type and subject, and reports the saved path and file size after conversion
- Designed for exporting visuals for platforms like X/Twitter that lack rich formatting and need no local dependencies beyond Node 18+
Install
$ npx -y skills add sugarforever/01coder-agent-skills --skill diagram-to-image -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Diagram to Image
Convert Mermaid diagrams and Markdown tables to PNG images via the mermaid-red API (diagramless.xyz). Produces high-quality, styled output with custom themes — no heavy local dependencies needed.
When to Use
Use this skill when:
- User has a Mermaid diagram that needs to be converted to an image
- User has a Markdown table that needs to be converted to an image
- User is writing content for X/Twitter and needs visual exports
- User asks to "convert to image", "export as PNG", "make this an image", or similar
Prerequisites
The bundled script uses Node.js built-in fetch (Node 18+). No npm install needed.
# The render script is bundled with this skill:
SKILL_DIR=~/.claude/skills/diagram-to-image/scripts
ls $SKILL_DIR/diagram-to-image.mjs
Smart Output Location
IMPORTANT: Determine the best output location based on context. Follow this decision tree:
1. User Specifies Path
If user explicitly mentions a path or filename, use that.
2. Project Context Detection
Check for common image/asset directories in the current project:
Details
- Repository
- github.com/sugarforever/01coder-agent-skills
- Categories
- Technical Documentation, Design & UI/UX
- First seen
- Jun 3, 2026
Questions
What does the diagram-to-image skill do?
The diagram-to-image skill converts Mermaid diagrams and Markdown tables into PNG images through the mermaid-red API at diagramless.xyz. It is meant for platforms that do not support rich formatting, such as posts for X or Twitter. The output can use custom themes like ocean, dark or blueprint.
How do I install the diagram-to-image skill?
Run this command in a project: npx -y skills add sugarforever/01coder-agent-skills --skill diagram-to-image -y. Once installed, the bundled render script runs with Node.js 18 or later, using the built-in fetch, so no npm install is needed.
Which skills lead the Technical Documentation category, and where does diagram-to-image stand?
Diagram-to-image sits in the Technical Documentation category alongside domain-modeling, archify, writing-guidelines, design-doc-mermaid and documentation-and-adrs. Its distinct focus is exporting finished Mermaid and table content as image files rather than authoring the documents themselves.
Does diagram-to-image need an API key or local dependencies?
The SKILL.md describes no local heavy dependencies and no API key requirement for the default server. It calls the diagramless.xyz server, and the script accepts a --server option to point at another address such as a local test server.
More from sugarforever/01coder-agent-skills
All 10Similar to Diagram To Image
More Technical Documentationbeautiful-mermaidSkillintellectronica/agent-skills1.9K installsRenders Mermaid diagrams to SVG and 4K PNG using the Beautiful Mermaid library with selectable themes.
drawioSkilljgraph/drawio-mcp3.6K installsGenerate, convert, and deliver draw.io diagrams as native .drawio files via Mermaid or hand-written XML, with optional ELK auto-layout.
mermaid-to-imageSkillzc277584121/marketing-skills4K installsConvert Mermaid code blocks in Markdown and other text files into PNG images via the mermaid.ink API.
pretty-mermaidSkillimxv/pretty-mermaid-skills4.8K installsRenders Mermaid diagrams to themed SVG, PNG, or ASCII/Unicode with local, browser-free processing.
MarkmapMCP serverjinzcdev290 starsConverts Markdown outlines into interactive mind maps, with optional server-side PNG, JPG, or SVG export.