← Back to Skills Marketplace
pupujanet-eng

Mermaid Diagram

by pupujanet-eng · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
1407
Downloads
0
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install mermaid-diagram
Description
Generate valid Mermaid diagrams like flowcharts, sequence diagrams, mind maps, ER diagrams, or user journeys from text or product descriptions.
README (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

  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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mermaid-diagram
  3. After installation, invoke the skill by name or use /mermaid-diagram
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Mermaid diagram generation for flowcharts, architecture, sequence diagrams
Metadata
Slug mermaid-diagram
Version 1.0.0
License MIT-0
All-time Installs 5
Active Installs 4
Total Versions 1
Frequently Asked Questions

What is Mermaid Diagram?

Generate valid Mermaid diagrams like flowcharts, sequence diagrams, mind maps, ER diagrams, or user journeys from text or product descriptions. It is an AI Agent Skill for Claude Code / OpenClaw, with 1407 downloads so far.

How do I install Mermaid Diagram?

Run "/install mermaid-diagram" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Mermaid Diagram free?

Yes, Mermaid Diagram is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Mermaid Diagram support?

Mermaid Diagram is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Mermaid Diagram?

It is built and maintained by pupujanet-eng (@pupujanet-eng); the current version is v1.0.0.

💬 Comments