Chuyển đến nội dung
Skillpedia
Hình ảnh và biểu tượng7.1k · #13569

excalidraw-studio

Skill này làm gì

Skill này tạo file sơ đồ Excalidraw từ một mô tả bằng văn bản. Skill dành cho bất kỳ ai muốn có một sơ đồ nhanh, dễ chỉnh sửa về một quy trình, hệ thống hoặc mối quan hệ mà không cần vẽ tay.

Khi nào nên dùng

  • ✓Khi bạn muốn có lưu đồ hoặc sơ đồ quy trình từ một mô tả ngắn.
  • ✓Khi bạn cần phác thảo kiến trúc hệ thống hoặc mối quan hệ để mở và chỉnh sửa sau.
  • ✓Khi bạn muốn sơ đồ tư duy hoặc sơ đồ thực thể đơn giản được lưu thành file Excalidraw.

Liên kết skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(tooling)/excalidraw-studio/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/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(tooling)/excalidraw-studio/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

“Bạn có thể tạo một lưu đồ Excalidraw cho thấy đơn hàng của khách đi từ thanh toán đến giao hàng như thế nào không?”

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

Cách hoạt động

Agent xác định loại sơ đồ, liệt kê các thành phần chính và kết nối giữa chúng, rồi viết một file Excalidraw hợp lệ. File mở được trong Excalidraw trên web, trong tiện ích VS Code hoặc trong Obsidian.

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.

Excalidraw Studio

Generate Excalidraw-format diagrams from natural language descriptions. Outputs .excalidraw JSON files that can be opened directly in Excalidraw (web, VS Code extension, or Obsidian plugin).

Workflow

UNDERSTAND → CHOOSE TYPE → EXTRACT → GENERATE → SAVE

Step 1: Understand the Request

Analyze the user's description to determine:

  1. Diagram type — Use the decision matrix below
  2. Key elements — Entities, steps, concepts, actors
  3. Relationships — Flow direction, connections, hierarchy
  4. Complexity — Number of elements (target: under 20 for clarity)

Step 2: Choose the Diagram Type and Visual Mode

Diagram type:

User Intent Diagram Type Keywords
Process flow, steps Flowchart "workflow", "process", "steps"
Connections, dependencies Relationship "relationship", "connections", "dependencies"
Concept hierarchy Mind Map "mind map", "concepts", "breakdown"
System design Architecture "architecture", "system", "components"
Data movement Data Flow (DFD) "data flow", "data processing"
Cross-functional processes Swimlane "business process", "swimlane", "actors"
Object-oriented design Class Diagram "class", "inheritance", "OOP"
Interaction sequences Sequence Diagram "sequence", "interaction", "messages"
Database design ER Diagram "database", "entity", "data model"

Visual mode — decide upfront and apply consistently to all elements:

Mode roughness fontFamily When to use
Sketch 1 5 Default — informal, approachable, Excalidraw-native
Clean 0 2 Executive presentations, formal specs
Mixed zones: 0, shapes: 1 5 Architecture diagrams (structural zones + sketchy shapes)

Step 3: Extract Structured Information

Extract the key components based on diagram type. For each type, identify:

  • Nodes/entities — What are the boxes/shapes?
  • Connections — What connects to what, and with what label?
  • Hierarchy — What contains what, what comes before what?
  • Decision points — Where does the flow branch?

For detailed extraction guidelines per diagram type, read references/element-types.md.

Step 4: Generate the Excalidraw JSON

CRITICAL: Read references/excalidraw-schema.md before generating your first diagram. It contains the correct element format, text container model, and binding system.

Key rules for generation:

  1. Text inside shapes — Use boundElements on the shape and a separate text element with containerId. Never use a label shorthand:

    [
      {
        "id": "step-1",
        "type": "rectangle",
        "x": 100, "y": 100, "width": 200, "height": 80,
        "boundElements": [{ "type": "text", "id": "text-step-1" }]
      },
      {
        "id": "text-step-1",
        "type": "text",
        "x": 130, "y": 128, "width": 140, "height": 24,
        "text": "My Step", "originalText": "My Step",
        "fontSize": 20, "fontFamily": 5,
        "textAlign": "center", "verticalAlign": "middle",
        "containerId": "step-1", "lineHeight": 1.25, "roundness": null
      }
    ]
    
  2. Arrow labels — Also use boundElements + separate text element with containerId. Never use a label shorthand on arrows:

    [
      {
        "id": "arrow-1",
        "type": "arrow",
        "x": 100, "y": 150,
        "points": [[0, 0], [200, 0]],
        "boundElements": [{ "type": "text", "id": "text-arrow-1" }]
      },
      {
        "id": "text-arrow-1",
        "type": "text",
        "x": 160, "y": 132, "width": 80, "height": 18,
        "text": "sends data", "originalText": "sends data",
        "fontSize": 14, "fontFamily": 5,
        "textAlign": "center", "verticalAlign": "middle",
        "containerId": "arrow-1", "lineHeight": 1.25, "roundness": null
      }
    ]
    
  3. Arrow bindings — Use `sta

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

Skill tạo loại file nào?

Skill lưu file .excalidraw theo định dạng JSON, mở được trong Excalidraw.

Một sơ đồ nên có bao nhiêu thành phần?

Skill hướng tới dưới khoảng 20 thành phần để sơ đồ luôn rõ ràng.

Skill hỗ trợ những loại sơ đồ nào?

Skill bao gồm lưu đồ, sơ đồ quan hệ, sơ đồ tư duy, sơ đồ kiến trúc, luồng dữ liệu và nhiều loại khác.

Chi tiết

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

Generate Excalidraw diagrams from natural language descriptions. Outputs .excalidraw JSON files openable in Excalidraw. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", "generate an Excalidraw file", "draw an ER diagram", "create a sequence diagram", or "make a class diagram". Supports flowcharts, relationship diagrams, mind maps, architecture, DFD, swimlane, class, sequence, and ER diagrams. Can use icon libraries (AWS, GCP, etc.) when set up. Do NOT use for code architecture analysis (use the architecture skil

repo: tech-leads-club/agent-skills

Độ phổ biến

Sao GitHub
7.1k
Vị trí xếp hạng
#13569
Giấy phép
—
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ự