Token导航 LogoToken导航

Agent Skill · 运维和基础设施

mermaid(Mermaid 图表绘制)

mermaid 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

mermaid 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 2,213。

总安装 242周安装 10GitHub Stars 1下载 79核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/seckatie/katies-ai-skills --skill mermaid

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

用于处理 GitHub 仓库、Issue 和 Pull Request。适合围绕代码变更或协作事项进行信息整理。可结合来源仓库和安装命令继续核验具体用法。安装前建议确认权限范围和维护状态。mermaid 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。注意是否会触发联网、命令执行或文件读写。

来源仓库内路径:skills/mermaid

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/seckatie/katies-ai-skills --skill mermaid;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

mermaid 怎么安装?

在终端执行 npx skills add https://github.com/seckatie/katies-ai-skills --skill mermaid。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

mermaid 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

mermaid 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/seckatie/katies-ai-skills --skill mermaid;npx skills add seckatie/katies-ai-skills --skill "mermaid" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

mermaid 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

mermaid 用的人多吗?

公开数据是累计安装 242 次,近一周安装 10 次,下载 79 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

mermaid 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
mermaid

Mermaid 图表绘制 · 本页

2421执行命令MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Mermaid Documentation Guide

Mermaid is a JavaScript-based diagramming and charting tool that uses text definitions to create diagrams dynamically. This skill includes the complete official documentation from the mermaid repository.

Quick Start: Read mermaid-cli/README.md for installation and usage. Always use mermaid-cli to validate code and generate diagrams. Adjust width/height for readability (default PNGs are often too small).

Documentation Structure

Quick Start

  • mermaid-README.md - Main Mermaid project README with overview, features, and quick examples

Getting Started

  • intro/getting-started.md - Quick start guide for using Mermaid
  • intro/index.md - Introduction and overview
  • intro/syntax-reference.md - General syntax reference across all diagram types
  • config/usage.md - How to use Mermaid in different environments

Installation and CLI

  • mermaid-cli/README.md - Complete mermaid-cli (mmdc) installation and usage guide
  • config/mermaidCLI.md - Additional CLI usage information from the main docs
  • config/setup/ - Setup instructions for different environments

CLI Troubleshooting

  • mermaid-cli/already-installed-chromium.md - Using already-installed Chromium instead of downloading
  • mermaid-cli/linux-sandbox-issue.md - Fixing Linux sandbox issues
  • mermaid-cli/docker-permission-denied.md - Fixing Docker permission issues
  • mermaid-cli/reviewing.md - Code review guidelines for mermaid-cli

Diagram Type Syntax

For detailed syntax, examples, and best practices for each diagram type, refer to files in the syntax/ folder:

Core Diagrams
  • syntax/flowchart.md - Process flows, decision trees, and workflows with various node shapes and arrow types
  • syntax/sequenceDiagram.md - Actor interactions over time, showing message flows and activations
  • syntax/classDiagram.md - Object-oriented structures with classes, attributes, methods, and relationships
  • syntax/stateDiagram.md - State machines showing states and transitions
  • syntax/entityRelationshipDiagram.md - Database schemas and data model relationships
Planning & Project Management
  • syntax/userJourney.md - User experience mapping with satisfaction scores
  • syntax/gantt.md - Project schedules, timelines, and task dependencies
  • syntax/kanban.md - Workflow visualization with columns and cards
  • syntax/timeline.md - Chronological events and project histories
  • syntax/requirementDiagram.md - System requirements and verification methods
Data Visualization
  • syntax/pie.md - Data proportions and percentages
  • syntax/quadrantChart.md - 2x2 prioritization and analysis matrices
  • syntax/xyChart.md - Line and bar charts for data trends
  • syntax/sankey.md - Flow quantities and data transfers between stages
Technical Diagrams
  • syntax/gitgraph.md - Git branching, merging, and workflow patterns
  • syntax/c4.md - Software architecture at multiple abstraction levels
  • syntax/block.md - System components and relationships
  • syntax/packet.md - Network packet structures and protocol headers
  • syntax/architecture.md - System design with icons and groupings
Advanced & Specialized
  • syntax/mindmap.md - Hierarchical information and brainstorming
  • syntax/zenuml.md - Alternative sequence diagram syntax with code-like format
  • syntax/radar.md - Multi-axis comparisons
  • syntax/treemap.md - Hierarchical data as nested rectangles

Configuration and Customization

  • config/configuration.md - Mermaid configuration options
  • config/theming.md - Theme customization and styling
  • config/directives.md - Using directives in diagrams
  • config/icons.md - Using icons in diagrams
  • config/layouts.md - Layout configuration options
  • config/math.md - Mathematical expressions in diagrams
  • config/accessibility.md - Accessibility features and best practices

Troubleshooting and FAQs

  • config/faq.md - Frequently asked questions
  • syntax/examples.md - Collection of example diagrams

Common Usage Patterns

When the user asks to:

  • Get an overview → Check mermaid-README.md
  • Create a flowchart → Check syntax/flowchart.md
  • Create a sequence diagram → Check syntax/sequenceDiagram.md
  • Create a class diagram → Check syntax/classDiagram.md
  • Create a Gantt chart → Check syntax/gantt.md
  • Create an ER diagram → Check syntax/entityRelationshipDiagram.md
  • Customize appearance → Check config/theming.md and config/configuration.md
  • Install or use the CLI → Check mermaid-cli/README.md
  • Use the CLI (additional info) → Check config/mermaidCLI.md
  • Troubleshoot CLI issues → Check mermaid-cli/linux-sandbox-issue.md, mermaid-cli/already-installed-chromium.md, or mermaid-cli/docker-permission-denied.md
  • Troubleshoot general issues → Check config/faq.md
  • See examples → Check syntax/examples.md
  • Learn syntax basics → Check intro/syntax-reference.md

Using Mermaid CLI

The mermaid-cli (mmdc) is the command-line tool for generating diagrams. For complete installation and usage details, see mermaid-cli/README.md.

Basic CLI Usage

# Generate PNG from mermaid file
mmdc -i input.mmd -o output.png

# Generate SVG
mmdc -i input.mmd -o output.svg

# Generate PDF
mmdc -i input.mmd -o output.pdf

# Specify theme
mmdc -i input.mmd -o output.png -t dark

# Specify background color
mmdc -i input.mmd -o output.png -b transparent

# Specify width
mmdc -i input.mmd -o output.png -w 1920

# Specify height
mmdc -i input.mmd -o output.png -H 1080

Important Notes:

  • By default, PNG files might be too small. Adjust width and height to be large enough to be readable.
  • Always test diagrams with mermaid-cli to validate syntax before finalizing.
  • PNG output typically requires explicit width/height for good quality.

Quick Reference by Use Case

For Basic Diagram Creation

  1. Choose the diagram type from the syntax/ folder
  2. Read the syntax documentation for that type
  3. Create your.mmd file with the diagram definition
  4. Generate output using mmdc command

For Styling and Theming

  1. Check config/theming.md for theme options
  2. Check config/configuration.md for global settings
  3. Use directives (see config/directives.md) for inline configuration

For Integration

  1. Check config/usage.md for embedding in web pages
  2. Check mermaid-cli/README.md for command-line usage
  3. Check intro/getting-started.md for basic setup

For Troubleshooting

  1. Check config/faq.md first for general issues
  2. Check mermaid-cli/ folder for CLI-specific troubleshooting (Linux sandbox, Chromium, Docker)
  3. Validate syntax against the specific diagram type documentation
  4. Check syntax/examples.md for working examples
  5. Review config/accessibility.md for rendering issues

Common Troubleshooting Tips

Line Breaks & Multi-line Text

  • ✅ Use <br/> for line breaks: Node["Text<br/>More text"]
  • ✅ Use <br/><br/> for paragraph spacing
  • ❌ Never use plain newlines (\n) - causes "Unsupported markdown: list" errors
  • Keep bullet points concise (2-4 words), limit to 3-4 per node

Text & Canvas Size

  • Increase font size: classDef style font-size:20px
  • Vertical flowcharts: mmdc -i file.mmd -o file.png -w 2000 -H 2800
  • Horizontal flowcharts: mmdc -i file.mmd -o file.png -w 3000 -H 1400

Special Characters

  • Avoid starting labels with numbers
  • Escape quotes with \"
  • Ampersands: Avoid & (renders as &) - use "and" or "+" instead
  • Use < for <, > for > only when necessary

General Tips

  • Start with the appropriate diagram type for your use case
  • Refer to the specific diagram documentation in syntax/ for detailed syntax
  • Test diagrams with mermaid-cli before finalizing
  • Use consistent formatting and naming conventions
  • Add comments with %% for documentation
  • Consider your audience when choosing detail level
  • Check the intro/syntax-reference.md for cross-diagram syntax patterns

File Organization

  • mermaid-README.md - Main Mermaid project README
  • mermaid-cli/ - Complete mermaid-cli documentation and troubleshooting
  • intro/ - Getting started guides and general reference
  • syntax/ - Complete syntax documentation for all diagram types
  • config/ - Configuration, theming, CLI, and troubleshooting
  • diagrams/ - Additional diagram documentation and examples
  • ecosystem/ - Information about the Mermaid ecosystem
  • community/ - Community resources and contributions

Notes

  • Some diagram types may be experimental or have evolving syntax
  • Always validate your diagrams with the mermaid-cli tool
  • The official documentation is continuously updated
  • For the latest updates, refer to https://mermaid.js.org/

平台分布

Claude Code

28.15%
按下载量换算22

windsurf

24.91%
按下载量换算20

trae

17.63%
按下载量换算14

OpenCode

13.01%
按下载量换算10

weavefox

9.04%
按下载量换算7

Codex

3.72%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/seckatie/katies-ai-skills --skill mermaid;npx skills add seckatie/katies-ai-skills --skill "mermaid" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills