Diagram to image

From cklxx/elephant.ai · View interactive version

Diagram to image is an AI agent skill from the GitHub repository cklxx/elephant.ai. When a Mermaid diagram needs to be shared as an image → render to PNG/SVG.

How to use this skill

Skill file

diagram-to-image

Render Mermaid code into image files.

Requirements

Constraints

Usage

python3 skills/diagram-to-image/run.py render --code 'graph LR
A[Client] --> B[API]
B --> C[(DB)]' --format png --theme default --output /tmp/diagram_arch.png
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.