跳到正文
Skillpedia
图片与图标7.1k · #13569

excalidraw-studio

它能做什么

这个技能根据文字描述创建 Excalidraw 图表文件。适合希望快速获得一张可编辑的流程、系统或关系图、而无需手绘的任何人。

适用场景

  • ✓当你想根据一段简短的文字描述获得流程图或流程示意图时。
  • ✓当你需要一张之后可以打开和编辑的系统架构或关系草图时。
  • ✓当你想把思维导图或简单的实体图保存为 Excalidraw 文件时。

技能链接

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(tooling)/excalidraw-studio/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(tooling)/excalidraw-studio/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你能制作一张 Excalidraw 流程图,展示客户订单从结账到送达的流转过程吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会判断图表类型,列出关键元素以及它们之间的连接,然后写出一个有效的 Excalidraw 文件。该文件可以在网页版 Excalidraw、VS Code 扩展或 Obsidian 中打开。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

常见问题

它生成什么类型的文件?

它保存为 JSON 格式的 .excalidraw 文件,可以在 Excalidraw 中打开。

图表应该有多少个元素?

该技能的目标是控制在大约 20 个元素以内,以保持图表清晰。

它支持哪些图表类型?

涵盖流程图、关系图、思维导图、架构图、数据流图等。

详情

作者的原始描述

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

热度

GitHub 星标
7.1k
排名
#13569
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能