← 返回 Skills 市场
Mermaid Diagram
作者
pupujanet-eng
· GitHub ↗
· v1.0.0
· MIT-0
1407
总下载
0
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install mermaid-diagram
功能描述
Generate valid Mermaid diagrams like flowcharts, sequence diagrams, mind maps, ER diagrams, or user journeys from text or product descriptions.
使用说明 (SKILL.md)
Mermaid Diagram Generator
Generate valid Mermaid diagram code from text descriptions.
Diagram Type Selection
| 需求 | 推荐类型 | Mermaid 关键字 |
|---|---|---|
| 业务流程 / 逻辑流程 | Flowchart | flowchart TD |
| 系统交互 / API 时序 | Sequence | sequenceDiagram |
| 产品架构 / 系统结构 | Flowchart / C4 | flowchart LR |
| 状态机 / 用户状态 | State | stateDiagram-v2 |
| 脑图 / 功能树 | Mindmap | mindmap |
| 数据库结构 | ER | erDiagram |
| 项目时间线 | Timeline | timeline |
| 用户旅程 | Journey | journey |
Output Rules
- Always wrap output in
```mermaidcode blocks - Use Chinese labels when the user writes in Chinese
- Add comments (
%%) for complex diagrams to explain sections - Keep node names short (≤10 chars) to avoid layout issues
- Validate syntax mentally before outputting — common mistakes:
- Missing quotes around labels with spaces/Chinese
- Wrong arrow syntax (
-->vs---vs->>) - Unclosed brackets
Quick Syntax Reference
flowchart TD
A[开始] --> B{判断条件}
B -- 是 --> C[执行操作]
B -- 否 --> D[结束]
C --> D
sequenceDiagram
用户->>服务端: 发起请求
服务端->>数据库: 查询数据
数据库-->>服务端: 返回结果
服务端-->>用户: 响应
mindmap
root((产品名))
功能A
子功能1
子功能2
功能B
Reference Files
- references/diagram-patterns.md — 产品经理常用图模式(带完整示例代码)
Read when: user asks for a specific diagram type or needs a complex multi-node diagram.
安全使用建议
This skill is low-risk: it only contains instructions and template examples for emitting Mermaid diagrams and asks for no credentials or installs. Before using, avoid pasting sensitive secrets or non-public architecture details into prompts (the skill will include any input text into the generated diagrams). Also note that the agent may invoke this skill autonomously if enabled by your agent settings (normal behavior), so control when and how the agent is allowed to produce or share diagrams that include private information.
功能分析
Type: OpenClaw Skill
Name: mermaid-diagram
Version: 1.0.0
The skill bundle is designed to generate Mermaid diagrams from text descriptions. It contains instructions for the AI agent in SKILL.md and a reference file (references/diagram-patterns.md) with standard diagram templates. No malicious code, data exfiltration, or suspicious execution patterns were found.
能力评估
Purpose & Capability
Name and description match the SKILL.md and the included reference patterns; there are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
Runtime instructions are limited to producing Mermaid code blocks, choosing diagram types, formatting rules, and using the provided pattern file. They do not instruct reading system files, environment variables, or contacting external endpoints.
Install Mechanism
No install spec and no code files to write/execute. As an instruction-only skill, it has minimal footprint and does not download or run external code.
Credentials
The skill declares no required environment variables, credentials, or config paths. Nothing in SKILL.md accesses secrets or unrelated services.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent or elevated privileges nor modify other skills or system settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mermaid-diagram - 安装完成后,直接呼叫该 Skill 的名称或使用
/mermaid-diagram触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Mermaid diagram generation for flowcharts, architecture, sequence diagrams
元数据
常见问题
Mermaid Diagram 是什么?
Generate valid Mermaid diagrams like flowcharts, sequence diagrams, mind maps, ER diagrams, or user journeys from text or product descriptions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1407 次。
如何安装 Mermaid Diagram?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mermaid-diagram」即可一键安装,无需额外配置。
Mermaid Diagram 是免费的吗?
是的,Mermaid Diagram 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Mermaid Diagram 支持哪些平台?
Mermaid Diagram 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Mermaid Diagram?
由 pupujanet-eng(@pupujanet-eng)开发并维护,当前版本 v1.0.0。
推荐 Skills