AgentSkillsCN

mermaid-diagram-master

将代码逻辑、API流程或数据库结构转化为Mermaid.js图表。当用户希望“解释架构”“可视化流程”或“记录文档”时,此工具便能派上用场。

SKILL.md
--- frontmatter
name: mermaid-diagram-master
description: Converts code logic, API flows, or database schemas into Mermaid.js diagrams. Use when user asks to "explain architecture", "visualize flow", or "document this".

Skill: Mermaid Diagram Master

Capabilities

Transform abstract code or system descriptions into high-quality visual documentation compatible with GitHub Markdown.

Guidelines

  • Selection: Choose the right diagram type based on the content (Flowchart for logic, Sequence for interactions, ERD for data).
  • Conciseness: Keep node labels short.
  • Organization: Use subgraphs for domain grouping.
  • Reference: Follow the syntax-guide.md for correct Mermaid formatting.

Process

  1. Analyze the input (code or text).
  2. Generate the Mermaid code block.
  3. Verify syntax and readability.