Mermaid Diagram
Generate valid Mermaid diagrams like flowcharts, sequence diagrams, mind maps, ER diagrams, or user journeys from text or product descriptions.
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 29 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & 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.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
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.
Files
2 totalSelect a file
Select a file to preview.
Comments
Loading comments…
