AGENT SKILL

render-mermaid

Render Mermaid diagrams to PNG/SVG/PDF and fix syntax errors.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 13
Forks
1

01 前言 Front Matter

model
haiku
description
Render Mermaid diagrams to PNG/SVG/PDF and fix syntax errors.
argument-hint
[target_path]

03 SKILL.md 正文

Mermaid Rendering and Repair

Usage: /architect:render-mermaid [target_path]

Shared files: a path written @rules/…, @skills/…, @templates/… or @docs/… is relative to the plugin root, ${CLAUDE_PLUGIN_ROOT} — not to the project being worked on. Read it from there.

Desired Outcome

Convert Mermaid diagrams in the specified Markdown file or directory to images. Automatically fix any syntax errors found.

Features

  • Mermaid to PNG/SVG/PDF conversion (using the mmdc command)
  • Automatic syntax error detection and repair
  • Quote correction for non-ASCII text
  • Mismatched bracket repair

Tools

  • Uses mmdc (mermaid-cli) if installed
  • Falls back to syntax validation only if not installed

Output

Output language and frontmatter: @rules/output-conventions.md.

Rendered output is placed in the same directory as the source file.

04 同仓库更多 Skills