Token导航 LogoToken导航TokenDH.com
前端设计敏感数据unknown未标认证来源可访问许可证需确认审计未展示

mermaid-diagramsMermaid 图表绘制

Agent Skill

mermaid-diagrams 用于补充前端设计相关能力,适合在 Local Agent 中需要让 Agent 承接前端设计相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

624

周安装

25

下载量

202
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mermaid-diagrams(Mermaid 图表绘制)
来源仓库:https://skills.volces.com
仓库路径:mermaid-diagrams
安装命令:
OpenClaw / Moltbot / Clawbot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 对应宿主 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.sh安装方式未标明
OpenClaw / Moltbot / Clawbot

简介

mermaid-diagrams 用于绘制 Mermaid 图表,支持前端设计相关任务。

  • 适用于生成流程图、时序图、甘特图等可视化文档。
  • 支持 OpenClaw / Moltbot / Clawbot 等宿主环境,具体用法见 README。
  • 安装前需确认是否依赖外部服务或网络请求,避免权限冲突。
  • 建议在明确输出格式和用途后再调用,防止生成无效或错误图表。

SKILL.md

Mermaid Diagrams

Create professional software diagrams using Mermaid's text-based syntax. Mermaid renders diagrams from simple text definitions, making diagrams version-controllable, easy to update, and maintainable alongside code.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install mermaid-diagrams

Core Syntax

All Mermaid diagrams follow this pattern:

diagramType
  definition content

Key principles:

  • First line declares diagram type (e.g., classDiagram, sequenceDiagram, flowchart)
  • Use %% for comments
  • Line breaks and indentation improve readability but aren't required
  • Unknown words break diagrams; invalid parameters fail silently

Diagram Type Selection

TypeUse ForReference
Class DiagramsDomain modeling, OOP design, entity relationshipsreferences/class-diagrams.md
Sequence DiagramsAPI flows, auth flows, component interactionsreferences/sequence-diagrams.md
FlowchartsProcesses, algorithms, decision trees, user journeysreferences/flowcharts.md
ERDDatabase schemas, table relationships, data modelingreferences/erd-diagrams.md
C4 DiagramsSystem context, containers, components, architecturereferences/c4-diagrams.md
State DiagramsState machines, lifecycle states
Git GraphsBranching strategies
Gantt ChartsProject timelines, scheduling

For styling, themes, and layout options: See references/advanced-features.md

Quick Start Examples

Class Diagram (Domain Model)

classDiagram
    Title -- Genre
    Title *-- Season
    Title *-- Review
    User --> Review : creates

    class Title {
        +string name
        +int releaseYear
        +play()
    }

    class Genre {
        +string name
        +getTopTitles()
    }

Sequence Diagram (API Flow)

sequenceDiagram
    participant User
    participant API
    participant Database

    User->>API: POST /login
    API->>Database: Query credentials
    Database-->>API: Return user data
    alt Valid credentials
        API-->>User: 200 OK + JWT token
    else Invalid credentials
        API-->>User: 401 Unauthorized
    end

Flowchart (User Journey)

flowchart TD
    Start([User visits site]) --> Auth{Authenticated?}
    Auth -->|No| Login[Show login page]
    Auth -->|Yes| Dashboard[Show dashboard]
    Login --> Creds[Enter credentials]
    Creds --> Validate{Valid?}
    Validate -->|Yes| Dashboard
    Validate -->|No| Error[Show error]
    Error --> Login

ERD (Database Schema)

erDiagram
    USER ||--o{ ORDER : places
    ORDER ||--|{ LINE_ITEM : contains
    PRODUCT ||--o{ LINE_ITEM : includes

    USER {
        int id PK
        string email UK
        string name
        datetime created_at
    }

    ORDER {
        int id PK
        int user_id FK
        decimal total
        datetime created_at
    }

Best Practices

  1. Start simple — begin with core entities/components, add details incrementally
  2. Use meaningful names — clear labels make diagrams self-documenting
  3. Comment extensively — use %% comments to explain complex relationships
  4. Keep focused — one diagram per concept; split large diagrams into multiple views
  5. Version control — store .mmd files alongside code for easy updates
  6. Add context — include titles and notes to explain diagram purpose
  7. Iterate — refine diagrams as understanding evolves

Configuration and Theming

Configure diagrams using frontmatter:

---
config:
  theme: base
  themeVariables:
    primaryColor: "#ff6b6b"
---
flowchart LR
    A --> B

Available themes: default, forest, dark, neutral, base

Layout options:

  • layout: dagre (default) — classic balanced layout
  • layout: elk — advanced layout for complex diagrams

Look options:

  • look: classic — traditional Mermaid style
  • look: handDrawn — sketch-like appearance

Rendering and Export

Native support in:

  • GitHub/GitLab — automatically renders in Markdown
  • VS Code — with Markdown Mermaid extension
  • Notion, Obsidian, Confluence — built-in support

Export options:

  • Mermaid Live Editor — online editor with PNG/SVG export
  • Mermaid CLI — npm install -g @mermaid-js/mermaid-cli then mmdc -i input.mmd -o output.png

When to Create Diagrams

Always diagram when:

  • Starting new projects or features
  • Documenting complex systems
  • Explaining architecture decisions
  • Designing database schemas
  • Planning refactoring efforts
  • Onboarding new team members

Use diagrams to:

  • Align stakeholders on technical decisions
  • Document domain models collaboratively
  • Visualize data flows and system interactions
  • Plan before coding
  • Create living documentation that evolves with code

Common Pitfalls

  • Breaking characters — avoid {} in comments; escape special characters
  • Syntax errors — misspellings break diagrams; validate in Mermaid Live
  • Overcomplexity — split complex diagrams into multiple focused views
  • Missing relationships — document all important connections between entities
  • Stale diagrams — a wrong diagram is worse than no diagram; update when systems change

NEVER Do

  1. NEVER create diagrams with more than 15 nodes — they become unreadable; split into multiple focused diagrams
  2. NEVER leave arrows unlabeled — every connection should explain the relationship or data flow
  3. NEVER create diagrams without a title or caption — context-free diagrams are useless outside the author's head
  4. NEVER use diagrams as the sole documentation — pair diagrams with prose that explains the "why"
  5. NEVER let diagrams go stale — update diagrams when architecture changes; stale diagrams mislead
  6. NEVER use Mermaid for data visualization — Mermaid is for architecture and flow diagrams, not charts of business data

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

72.55%
按下载量换算147

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills