/mermaid:mermaid-renderfrom mermaid
Mermaid.js構文からPNG/SVG画像を生成する。@mermaid-js/mermaid-cliを使って画像出力する。
Ships in mermaid. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
委任メッセージまたはユーザーの指示からMermaid構文を把握し、PNG/SVG画像を生成する。
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/mermaid.py <subcommand> [options]| コマンド | 引数 | 説明 |
|---|---|---|
render <content> -o <path> | content: Mermaid.js構文(必須), -o: 出力パス(必須、.png/.svg) | Mermaid構文 → PNG/SVG画像 |
render-file <file_path> -o <path> | file_path: Mermaidファイル(必須), -o: 出力パス(必須、.png/.svg) | Mermaidファイル → PNG/SVG画像 |
# Mermaid構文からPNG画像を生成
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/mermaid.py render "graph TD; A-->B; B-->C;" -o output.png
# Mermaid構文からSVG画像を生成
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/mermaid.py render "graph TD; A-->B; B-->C;" -o output.svg
# Mermaidファイルから画像を生成
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/mermaid.py render-file diagram.mmd -o output.png
取得した情報を以下の形式で返す:
What SKILL.md sets; muted values are Claude Code's defaults
lowgeneral-purpose), in the backgroundnpx claudepluginhub hidetsugu-miya/claude-plugins --plugin mermaidOther plugins' skills for the same job