pupujanet-eng

Mermaid Diagram

Developmentv1.0.0
By pupujanet-engUpdated 2026-05-11mermaid-diagram@clawhub_pupujanet-eng/mermaid-diagram
Code Generation

According to AlphaMoat, as of 2026-10, Mermaid Diagram has 178,475 downloads and 60 stars — ranked by downloads #143 among 10,914 AI skills in this ranking, and #12 of 1,069 in Development.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
178.5K
Stars
60
Overall download rank
#143
Top 2% overall · Top 2% in Development
PlatformDownloadsStarsComments
ClawHub ↗3.7K--
SkillHub ↗178.5K60—

Platforms count differently and update at different times.

What this skill does

The skill covers flowcharts, sequence diagrams, architecture diagrams, state diagrams, mind maps, ER diagrams, timelines, and user journeys, and asks for Mermaid code blocks. Complex diagrams can contain syntax errors or be misleading, and broad Chinese diagram keywords may trigger it for general drawing requests; confirm Mermaid is wanted and preview the code before relying on it.

Profile published 2026-10-29

What you can do with it

  • Turn text or product requirements into Mermaid diagrams
  • Create flow, architecture, sequence, or data-model diagrams
  • Organize labels and nodes for the requested diagram type

When to use it

  • When representing a process, system interaction, or data model in Mermaid
  • When the user explicitly requests Mermaid code

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Turn this requirement into Mermaid flowchart code and check the node and arrow syntax.
Confirm that I want Mermaid code, then organize this system interaction as a sequence diagram.

Monthly Trend

Downloads178.5K
65.0K125.9K186.9K2026-09 · Downloads 73.4K2026-10 · Downloads 178.5K26-0926-10
Stars60
5960602026-09 · Stars 592026-10 · Stars 6026-0926-10
MonthDownloadsMoMStars
2026-10178.5K—60
2026-0973.4K—59

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.1 KB · ClawHub v1.0.0
---
name: mermaid-diagram
description: Generate Mermaid diagrams for product managers and developers. Use when: (1) creating flowcharts, system architecture diagrams, sequence diagrams, or mind maps, (2) converting text descriptions or PRDs into visual diagrams, (3) drawing user journey maps, state machines, or ER diagrams, (4) any request that mentions "画图", "流程图", "架构图", "时序图", "脑图", "mermaid". Output valid Mermaid code blocks.
---

# Mermaid Diagram Generator

Generate valid Mermaid diagram code from text descriptions.

## Diagram Type Selection
Show all (66 lines)

| 需求 | 推荐类型 | 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.

Popular in Development

编程大神.SkillDevelopment

【全栈能力】编程大神.Skill:面向复杂真实项目的高阶全栈编程助手。不止生成代码,而是从一句目标接手陌生代码库,拆解需求、补齐实现、追到根因、完成重构、联调前后端,并把结果推进到能运行、能验证、能交付。覆盖 Web、后端、脚本、iOS、安卓、鸿蒙 ArkUI、微信小程序及其他技术栈,支持中英文工程、疑难 Bug、跨模块任务和长任务续做;用构建、日志、真实入口、设备或接口证据说明结果。仅问概念时直接回答,要求落地时持续推进到验收或明确阻塞。

↓ 11.3M★ 82u_42bbb65f
编程专家Pro.SkillDevelopment

编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。

↓ 6.3M★ 32user_47d655f0
编程专家.SkillDevelopment

编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。

↓ 6.0M★ 378user_741dc82b
dev-expertDevelopment

编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。

↓ 5.3M★ 32user_814dbe54
dev-expert-proDevelopment

工程专题、鸿蒙与微信小程序开发的集成派生版

↓ 1.0M★ -user_814dbe54
编程专家 ProDevelopment

编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。

↓ 981.8K★ 1user_28275a78
编程专家.SkillDevelopment

适用场景:全栈编程助手。接到需求先读现有代码和约束,再动手:Java/PHP 开发、接口设计、缺陷定位、代码评审、重构、测试用例、性能排查、技术选型与文档产出,也做 CMS 二次开发、前端页面和 MySQL 调优。每次改动先给方案和影响范围,改完必须跑验证,交付附交接说明。适合要把代码真正跑通、而不是只要片段的场景。写完代码常要配套的造价、法律、工程文档,站内已有现成技能,用「查找技能」按需求找即可。

↓ 701.1K★ 6user_613b33ea
GithubDevelopment

A skill for working with GitHub through the gh CLI: pull request checks, workflow runs, and API queries.

↓ 479.6K★ 714Peter Steinberger

More from pupujanet-eng

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.