Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

mermaid

bởi jarekbird

PDF & Documents
957Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Generate diagrams from text using [Mermaid](https://mermaid.js.org/).

Mô tả

Kỹ năng này làm gì

Converts Mermaid diagram syntax into rendered PNG, SVG, or PDF images using the mmdc CLI. Supports 12 diagram types including flowcharts, sequence diagrams, ER diagrams, and Git graphs. Output themes and resolution are configurable.

Produces image files directly from text syntax without requiring a browser or design tool.

Khi nào nên dùng

  • Visualizing a database schema as an ER diagram
  • Documenting an API authentication flow as a sequence diagram
  • Mapping out a project timeline with a Gantt chart
  • Rendering a system architecture overview for a README
  • Generating a Git branch history diagram

Quy trình ví dụ

ĐẦU VÀO

User asks: draw a sequence diagram showing a login flow with JWT

AGENT
  1. 1

    Determine sequenceDiagram is the appropriate Mermaid type

  2. 2

    Write the Mermaid syntax to /tmp/mermaid-login.mmd

  3. 3

    Run mmdc -i /tmp/mermaid-login.mmd -o /tmp/mermaid-login.png -t dark -b transparent -s 2

  4. 4

    Display the rendered image to the user via Read tool

  5. 5

    Remove temp files

ĐẦU RA

PNG image of the login sequence diagram with dark theme

Cài đặt

clawhub install jarekbird/mermaid

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết