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
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
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 zip
latestvk9759bvar02e8mhy6f3d8dws1n831dyn

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 关键字
业务流程 / 逻辑流程Flowchartflowchart TD
系统交互 / API 时序SequencesequenceDiagram
产品架构 / 系统结构Flowchart / C4flowchart LR
状态机 / 用户状态StatestateDiagram-v2
脑图 / 功能树Mindmapmindmap
数据库结构ERerDiagram
项目时间线Timelinetimeline
用户旅程Journeyjourney

Output Rules

  1. Always wrap output in ```mermaid code blocks
  2. Use Chinese labels when the user writes in Chinese
  3. Add comments (%%) for complex diagrams to explain sections
  4. Keep node names short (≤10 chars) to avoid layout issues
  5. 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 total
Select a file
Select a file to preview.

Comments

Loading comments…