用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ahkohd/dotfiles --skill mermaid命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mermaid |
| description | Render Mermaid diagrams to SVG/PNG using mmdr and validate with mmdr before finalizing. |
Render Mermaid diagrams to SVG/PNG using mmdr -- a fast pure-Rust renderer.
# From file
mmdr -i diagram.mmd -o diagram.svg
mmdr -i diagram.mmd -o diagram.png -e png
# From stdin
echo 'flowchart LR\n A --> B' | mmdr -i - -o diagram.svg
# Pipe to stdout (SVG)
mmdr -i diagram.mmd
| Flag | Default | Description |
|---|---|---|
-i, --input | Input file (.mmd) or - for stdin | |
-o, --output | stdout | Output file (svg/png) |
-e, --outputFormat | svg | svg or png |
-c, --configFile | Config JSON (Mermaid-like themeVariables) | |
-w, --width | 1200 | Width |
-H, --height | 800 | Height |
--nodeSpacing | Node spacing | |
--rankSpacing | Rank spacing | |
--dumpLayout | Dump computed layout JSON | |
--timing | Output timing info as JSON to stderr | |
--fastText | Use fast approximate text metrics |
Standard Mermaid syntax:
flowchart (TB, LR, RL, BT)sequenceDiagramclassDiagramstateDiagram-v2erDiagramganttpiegitgraph.mmd file with standard Mermaid syntaxmmdr -i file.mmd -o file.svg before finalizing.mmd and .svg artifacts when explicitly requested; otherwise just validate with mmdrPass a JSON config file with -c for custom theming:
{
"themeVariables": {
"primaryColor": "#1e3a5f",
"primaryTextColor": "#e5e5e5",
"lineColor": "#4a9eed",
"background": "#1e1e2e"
}
}
mmdr to catch parser differences early<br/> in node labels for line breaks (avoid literal \n showing in rendered output)--fastText speeds up rendering at the cost of slightly less accurate text layout--dumpLayout is useful for debugging element positions