mermaid by markdown-viewer/skills
npx skills add https://github.com/markdown-viewer/skills --skill mermaid快速开始: 识别图表类型(流程图/时序图/状态图/类图/实体关系图/甘特图/思维导图)→ 用形状定义节点 → 用箭头连接 → 用 ````mermaid 代码块包裹。默认方向:从上到下(TD),使用 flowchart而非graph`,支持 Unicode。
❌ [1. Item] → "不支持的 Markdown:列表"
✅ [1.Item] → 移除点号后的空格
✅ [① Item] → 使用带圈数字 ①②③④⑤⑥⑦⑧⑨⑩
✅ [(1) Item] → 使用括号
❌ subgraph AI Agent Core → 名称含空格但未加引号
✅ subgraph agent["AI Agent Core"] → 使用 ID 并指定显示名称
✅ subgraph agent → 仅使用简单 ID
❌ Title --> AI Agent Core → 引用了显示名称
✅ Title --> agent → 引用子图 ID
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
✅ ["Text with spaces"] → 对含空格的文本使用引号
✅ 使用 『』 代替 "" → 避免使用引号
✅ 使用 「」 代替 () → 避免使用括号
❌ graph TD → 已过时
✅ flowchart TD → 支持子图方向等更多功能
| 问题 | 解决方案 |
|---|---|
| 图表无法渲染 | 检查未匹配的括号、引号 |
| 列表语法错误 | 使用 [1.Item] 而非 [1. Item] |
| 子图引用失败 | 使用 ID 而非显示名称 |
| 图表过于拥挤 | 拆分为多个图表 |
| 连线交叉 | 使用不同的布局方向或不可见边 ~~~ |
```mermaid
[图表代码]
```
关于特定图表的语法和高级功能,请参考以下参考资料:
每周安装量
127
代码仓库
GitHub 星标数
5
首次出现
2026年1月31日
安全审计
已安装于
gemini-cli119
github-copilot119
opencode119
codex118
kimi-cli115
amp115
Quick Start: Identify diagram type (flowchart/sequence/state/class/ER/gantt/mindmap) → Define nodes with shapes → Connect with arrows → Wrap in ````mermaid fence. Default: top-to-bottom (TD), use flowchartovergraph`, Unicode supported.
❌ [1. Item] → "Unsupported markdown: list"
✅ [1.Item] → Remove space after period
✅ [① Item] → Use circled numbers ①②③④⑤⑥⑦⑧⑨⑩
✅ [(1) Item] → Use parentheses
❌ subgraph AI Agent Core → Space without quotes
✅ subgraph agent["AI Agent Core"] → ID with display name
✅ subgraph agent → Simple ID only
❌ Title --> AI Agent Core → Reference display name
✅ Title --> agent → Reference subgraph ID
✅ ["Text with spaces"] → Quotes for spaces
✅ Use 『』 instead of "" → Avoid quotation marks
✅ Use 「」 instead of () → Avoid parentheses
❌ graph TD → Outdated
✅ flowchart TD → Supports subgraph directions, more features
| Issue | Solution |
|---|---|
| Diagram won't render | Check unmatched brackets, quotes |
| List syntax error | [1.Item] not [1. Item] |
| Subgraph reference fails | Use ID not display name |
| Too crowded | Split into multiple diagrams |
| Crossing connections | Use different layout direction or invisible edges ~~~ |
```mermaid
[diagram code]
```
For diagram-specific syntax and advanced features, refer to references below:
Weekly Installs
127
Repository
GitHub Stars
5
First Seen
Jan 31, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli119
github-copilot119
opencode119
codex118
kimi-cli115
amp115
Claude技能创建器指南:构建模块化AI技能包,优化工作流与工具集成
5,700 周安装