Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

mermaid-diagrammingMermaid diagramming 图表绘制

Agent Skill

mermaid-diagramming 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,164

周安装

50

GitHub Stars

15

下载量

408
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill mermaid-diagramming

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息筛选与整理。
  • 通过 npx 命令从 GitHub 仓库安装,需确认权限范围和维护状态。
  • 使用前建议核实是否会触发联网、命令执行或文件读写操作。
  • mermaid-diagramming 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Mermaid Diagramming

Create clear, professional Mermaid diagrams for technical documentation. Covers all major diagram types with both basic and styled variants, rendering guidance, and export recommendations.

When to Use This Skill

  • Creating flowcharts for process documentation or decision trees
  • Drawing sequence diagrams for API interactions or system communication
  • Building ERDs for database schema documentation
  • Designing state machine diagrams for workflow states
  • Producing Gantt charts for project timelines
  • Documenting system architecture with C4 or network diagrams
  • Adding visual aids to README files, ADRs, or design docs

Quick Reference

ResourcePurposeLoad when
references/diagram-types.mdSyntax, patterns, and code examples for every Mermaid diagram typeChoosing or building a diagram

Workflow Overview

Phase 1: Scope     → Identify what to visualize, audience, and diagram type
Phase 2: Draft     → Write base Mermaid code with correct syntax
Phase 3: Style     → Add theming, colors, and accessibility annotations
Phase 4: Deliver   → Provide rendering instructions and suggest iterations

Phase 1: Scope

Before writing any code, clarify:

  1. What is the narrative? The diagram should tell a story or answer a question.
  2. Who is the audience? Developers need detail; stakeholders need overview.
  3. What entities and relationships exist? List nodes and edges before drawing.
  4. Which diagram type fits? Use the selection guide below.

Diagram Type Selection

If you need to show...Use
Process flow, decisions, branchingflowchart
Interactions over time between systems/actorssequenceDiagram
Data model and relationshipserDiagram
Object structure and inheritanceclassDiagram
States and transitionsstateDiagram-v2
Project schedule and dependenciesgantt
Proportions or distributionpie
Hierarchical idea mappingmindmap
Events over timetimeline
System architecture layersC4 context/container diagrams
Code version historygitGraph
User experience flowjourney

Phase 2: Draft

Structure Rules

  1. One concept per diagram — split complex systems into multiple views
  2. Limit nodes — keep under 15 nodes per diagram; split if larger
  3. Meaningful labels — use descriptive text, not single letters
  4. Consistent direction — prefer top-to-bottom (TB) or left-to-right (LR)
  5. Group related nodes — use subgraph to cluster related elements

Code Conventions

%% Always start with a comment describing the diagram's purpose
%% Use consistent quoting for labels with special characters
flowchart LR
    A["User Request"] --> B{"Auth Check"}
    B -->|Valid| C["Process Request"]
    B -->|Invalid| D["Return 401"]
  • Use double quotes for labels containing special characters
  • Add comments (%%) explaining non-obvious relationships
  • Prefer --> for solid lines, -.-> for dashed, ==> for thick
  • Use descriptive edge labels: -->|"reason"| TargetNode

Phase 3: Style

Theming

Apply consistent styling using %%{init:...}%% directives:

%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#4A90D9'}}}%%
flowchart TB
    A["Start"] --> B["End"]

Node Styling

flowchart LR
    A["Normal"]
    B["Highlighted"]:::highlight
    classDef highlight fill:#f9f,stroke:#333,stroke-width:2px

Accessibility

  • Use high-contrast color combinations
  • Do not rely on color alone to convey meaning — add labels and shapes
  • Include alt text when embedding: ![Diagram description](path)
  • Provide a text summary alongside complex diagrams

Phase 4: Deliver

Always Provide

  1. Basic version — clean, unstyled diagram that renders anywhere
  2. Styled version — themed variant with colors and emphasis
  3. Rendering note — where to preview (GitHub, Mermaid Live, VS Code extension)
  4. Suggestions — complementary diagrams or next iterations

Rendering Options

PlatformSupport
GitHub markdownNative rendering in .md files
GitLab markdownNative rendering
Mermaid Live Editorhttps://mermaid.live for interactive editing
VS CodeMermaid extension for preview
Docusaurus / MkDocsPlugin-based rendering

Export Formats

  • SVG: Best for web and docs (scalable, searchable text)
  • PNG: Fallback for platforms without Mermaid support
  • PDF: For print or formal documentation

Best Practices

  • Start simple — get the structure right before adding style
  • Test rendering — verify on the target platform before committing
  • Version diagrams — update diagrams when the underlying system changes
  • Colocate with docs — keep diagrams in the same directory as related documentation
  • Use subgraphs — group related nodes to reduce visual complexity

Anti-Patterns

  • Putting too many nodes in one diagram (split at 15+ nodes)
  • Using single-letter node IDs without labels
  • Relying on color alone to convey meaning
  • Hard-coding pixel widths that break on different renderers
  • Leaving diagrams out of date after system changes

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

35.22%
按下载量换算144

Claude

31.88%
按下载量换算130

Cursor

19.59%
按下载量换算80

Gemini CLI

8.18%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills