跳到正文
TakoAPI
返回技能列表

mermaid-architect

由 1999azzar 提供

Coding Agents & IDEs
1.1k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate beautiful, hand-drawn Mermaid diagrams with robust syntax (quoted labels, ELK layout)

描述

该技能的功能

Generates Mermaid diagram code for flowcharts, sequence diagrams, class diagrams, and state diagrams. Enforces safe syntax rules including quoted node labels and valid node IDs to prevent rendering errors.

Enforcing quoted labels and safe node IDs avoids the syntax errors that break most hand-written Mermaid diagrams.

何时使用

  • Mapping an API request/response flow as a sequence diagram
  • Documenting a database schema with a class diagram
  • Visualizing a CI/CD pipeline as a flowchart
  • Drawing a user authentication state lifecycle
  • Creating a decision tree for branching business logic

示例工作流

输入

User asks: Diagram the login flow for a web app

智能体
  1. 1

    Identifies the request as a process flow and selects flowchart type

  2. 2

    Maps steps: user submits credentials, server validates, session created or error returned

  3. 3

    Assigns safe camelCase node IDs and quotes labels containing special characters

  4. 4

    Outputs a TD-oriented Mermaid code block with a brief explanation of each node

输出

A Mermaid flowchart code block showing the login sequence from form submission to session creation or error handling

安装

clawhub install 1999azzar/mermaid-architect

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接