원클릭으로
mermaid-to-image
Convert Mermaid code blocks in Markdown files to PNG images using the mermaid.ink API.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Convert Mermaid code blocks in Markdown files to PNG images using the mermaid.ink API.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | mermaid-to-image |
| description | Convert Mermaid code blocks in Markdown files to PNG images using the mermaid.ink API. |
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
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).USER-INVOKED ONLY. Do NOT auto-trigger. Convene 3 fresh Codex subagents to give independent opinions on a question, idea, hypothesis, plan, or ambiguity. Use only when the user explicitly invokes this skill ("$council", "/council") or explicitly names it ("run council", "use the council skill", "convoque le council"). Never trigger on musings, opinions, or phrases like "je me demande si" — thinking out loud is not an invocation. If invoked with no extra prompt, infer the current subject from the active conversation and ask clean-context subagents to review it.
Drive and visually inspect a native GUI app (Iced, egui, GTK, winit…) on Hyprland through a headless output, leaving the user's desktop untouched (focus preserved, cursor restored). Use when asked to "test the GUI", "piloter l'app native", "screenshot the app", "voir le rendu", to verify a native app's rendering after a change, or to interact (keys, text, clicks) with a native window that exposes no AT-SPI tree. Do not use for web or Electron apps (use agent-browser), apps exposing a usable AT-SPI accessibility tree (prefer a semantic tool), or compositors other than Hyprland.
Use when building, operating, or resuming a deterministic Workflow() driver for a large autonomous multi-phase task — a full rewrite, a migration, a long audit. Triggers: design or implement a workflow driver script, translate a .agents/loops/*.md runner spec (looper output) into a Workflow() script, design phase gates or pause/resume mechanics, handle a paused driver run (retryStep bump, human arbitration, mutation suspected), harden a driver against non-deterministic agent behavior, or wrap an external CLI (e.g. codex exec) inside a workflow agent.
USER-INVOKED ONLY. Use only when Augustin explicitly invokes $skill-sync or asks to commit, push, and deploy agent skill changes live from agents-skills. Commits scoped source, pushes the default branch, publishes exact managed skill names through the shared post-push gate, and verifies live parity without touching project-pinned copies.
Portable discipline for designing, running, and interpreting skill evaluations with skill-creator. Use when defining eval success criteria, running or comparing trials, grading outputs or end states, reviewing traces, benchmarking a skill, iterating on evals, or maintaining eval artifacts. Separates experimental validity from artifact integrity and harness-specific formats.
Write, review, and harden non-trivial Bash and POSIX sh scripts for production. Use for shell files and CI, deployment, administration, or automation code involving untrusted input, destructive filesystem operations, privileges, pipelines, traps, signals, concurrency, portability, or failure handling. Skip trivial interactive commands and tasks better served by an existing project tool.