Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật33k · #8684

diagrammer

Skill này làm gì

Skill này giúp AI của bạn biến một mô tả đơn giản thành sơ đồ SVG rõ ràng. Nó dành cho những người cần sơ đồ kỹ thuật cho tài liệu, README, bài đăng hoặc slide mà không cần công cụ thiết kế.

Khi nào nên dùng

  • ✓Khi bạn muốn lưu sơ đồ luồng request hoặc kiến trúc dưới dạng file SVG.
  • ✓Khi bạn cần sơ đồ máy trạng thái hoặc pipeline dữ liệu cho README hay slide.
  • ✓Khi bạn muốn sơ đồ được lưu dưới dạng spec văn bản để chỉnh sửa sau này.

Liên kết skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/diagrammer/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/diagrammer/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy vẽ giúp tôi sơ đồ một request đi từ client qua API tới cơ sở dữ liệu Postgres, dưới dạng SVG.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill viết một spec JSON nhỏ gồm các node và cạnh, rồi dùng công cụ diagrammer để dựng thành file SVG. Bạn có thể sửa spec và dựng lại.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

diagrammer

Use diagrammer to turn a small JSON spec into a clean SVG diagram. It is useful when the user wants a precise technical diagram without opening a design tool.

Install

The renderer must be installed locally:

pipx install diagrammer

Workflow

  1. Convert the user's plain-English diagram request into a JSON spec.
  2. Save the spec to a temporary or project file.
  3. Render it:
diagrammer path/to/spec.json > path/to/diagram.svg
  1. Return the SVG path to the user.

Spec Essentials

{
  "nodes": [
    {"id": "client", "type": "box", "label": "client"},
    {"id": "api", "type": "box", "label": "api"},
    {"id": "db", "type": "database", "label": "postgres"}
  ],
  "edges": [
    {"from": "client", "to": "api", "label": "request"},
    {"from": "api", "to": "db", "label": "query"}
  ]
}

Built-in node types: box, circle, text, database, stack, group, note, and custom.

Useful optional fields:

  • direction: "LR" or "TB"
  • router: "straight" or "ortho"
  • label on edges
  • style: "solid" or "dashed"
  • weight: "thin" or "thick"

For the full reference, run:

diagrammer prompt

When To Choose This

Use diagrammer when the output should be a checked-in SVG artifact, especially for:

  • README diagrams
  • architecture sketches
  • request flows
  • state machines
  • neural-net or transformer diagrams
  • simple data pipelines

Prefer Mermaid when the user specifically asks for Mermaid syntax or wants diagrams rendered by a Markdown platform. Prefer Excalidraw when the user wants editable hand-drawn canvas files.

Câu hỏi thường gặp

Tôi có cần cài đặt gì không?

Có. Hướng dẫn cho biết trình dựng diagrammer phải được cài đặt cục bộ, ví dụ bằng pipx.

Có những loại node nào?

Hướng dẫn liệt kê box, circle, text, database, stack, group, note và custom.

Tôi có thể đổi bố cục không?

Có. Spec có thể đặt hướng, kiểu định tuyến và kiểu cạnh.

Chi tiết

Mô tả gốc của tác giả

Render clean blueprint-style SVG diagrams from JSON specs. Use when users ask to draw, sketch, or diagram a request flow, neural net, transformer block, system architecture, state machine, data pipeline, or any node-and-edge technical visual they want as an SVG for docs, READMEs, posts, or slides.

repo: davila7/claude-code-templates

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8684
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự