Token导航 LogoToken导航TokenDH.com
前端设计external-servicegithub未标认证来源可访问许可证需确认审计提醒

excalidraw-studioexcalidraw studio 命令行

Agent Skill

excalidraw-studio 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,211

周安装

94

GitHub Stars

2,186

下载量

775
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:excalidraw-studio(excalidraw studio 命令行)
来源仓库:https://github.com/tech-leads-club/agent-skills
仓库路径:skills/excalidraw-studio
安装命令:
npx skills add https://github.com/tech-leads-club/agent-skills --skill excalidraw-studio
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tech-leads-club/agent-skills --skill excalidraw-studio

简介

excalidraw-studio 根据自然语言描述自动生成 Excalidraw 格式图表。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要快速产出架构图、流程图或实体关系图时使用。
  • 内置决策矩阵判断图表类型,支持元素提取、布局规划与 JSON 生成全流程。
  • 输出为标准 .excalidraw 文件,可直接在 Excalidraw 应用中打开编辑。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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 IntentDiagram TypeKeywords
Process flow, stepsFlowchart"workflow", "process", "steps"
Connections, dependenciesRelationship"relationship", "connections", "dependencies"
Concept hierarchyMind Map"mind map", "concepts", "breakdown"
System designArchitecture"architecture", "system", "components"
Data movementData Flow (DFD)"data flow", "data processing"
Cross-functional processesSwimlane"business process", "swimlane", "actors"
Object-oriented designClass Diagram"class", "inheritance", "OOP"
Interaction sequencesSequence Diagram"sequence", "interaction", "messages"
Database designER Diagram"database", "entity", "data model"

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

ModeroughnessfontFamilyWhen to use
Sketch15Default — informal, approachable, Excalidraw-native
Clean02Executive presentations, formal specs
Mixedzones: 0, shapes: 15Architecture 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 startBinding/endBinding (not start/end). Connected shapes must list the arrow in their boundElements: {"id": "shape-1", "boundElements": [{"type": "text", "id": "text-shape-1"}, {"type": "arrow", "id": "arrow-1"}]} {"id": "arrow-1", "type": "arrow", "startBinding": {"elementId": "shape-1", "focus": 0, "gap": 1}, "endBinding": {"elementId": "shape-2", "focus": 0, "gap": 1}}
  4. Element order for z-index — Always declare shapes first, arrows second, text elements last. This guarantees text renders on top and is never obscured by arrows or other shapes.
  5. Positioning — Use grid-aligned coordinates (multiples of 20px when gridSize: 20). Leave 200-300px horizontal gap, 100-150px vertical gap between elements.
  6. Unique IDs — Every element must have a unique id. Use descriptive IDs like "step-1", "decision-valid", "arrow-1-to-2", "text-step-1".
  7. Colors — Use a consistent palette: Role Color Hex Primary entities Light blue #a5d8ff Process steps Light green #b2f2bb Important/Central Yellow #ffd43b Warnings/Errors Light red #ffc9c9 Secondary Cyan #96f2d7 Default stroke Dark #1e1e1e

Step 5: Save and Present

  1. Save as <descriptive-name>.excalidraw
  2. Provide a summary: Created: user-workflow.excalidraw Type: Flowchart Elements: 7 shapes, 6 arrows, 1 title Total: 14 elements To view: 1. Visit https://excalidraw.com → Open → drag and drop the file 2. Or use the Excalidraw VS Code extension 3. Or open in Obsidian with the Excalidraw plugin

Templates

Pre-built templates are available in assets/ for quick starting points. Use these when the diagram type matches — they provide correct structure and styling:

TemplateFile
Flowchartassets/flowchart-template.json
Relationshipassets/relationship-template.json
Mind Mapassets/mindmap-template.json
Data Flow (DFD)assets/data-flow-diagram-template.json
Swimlaneassets/business-flow-swimlane-template.json
Class Diagramassets/class-diagram-template.json
Sequence Diagramassets/sequence-diagram-template.json
ER Diagramassets/er-diagram-template.json

Read a template when creating that diagram type for the first time. Use its structure as a base, then modify elements to match the user's request.

Icon Libraries

For professional architecture diagrams with service icons (AWS, GCP, Azure, etc.), icon libraries can be set up. Read references/icon-libraries.md when:

  • User requests an AWS/cloud architecture diagram
  • User mentions wanting specific service icons
  • You need to check if icon libraries are available

Best Practices

Element Count

Diagram TypeRecommendedMaximum
Flowchart steps3-1015
Relationship entities3-812
Mind map branches4-68
Sub-topics per branch2-46

If the user's request exceeds maximum, suggest breaking into multiple diagrams:

"Your request includes 15 components. For clarity, I recommend: (1) High-level architecture diagram with 6 main components, (2) Detailed sub-diagrams for each subsystem. Want me to start with the high-level view?"

Layout

  • Flow direction: Left-to-right for processes, top-to-bottom for hierarchies
  • Spacing: 200-300px horizontal, 100-150px vertical between elements
  • Grid alignment: Position on multiples of 20px for clean alignment
  • Margins: Minimum 50px from canvas edge
  • Text sizing: 28-36px titles, 18-22px labels, 14-16px annotations
  • Font: Use fontFamily: 5 (Excalifont) for hand-drawn consistency. Fallback to 1 (Virgil) if 5 is not supported.
  • Background zones: For architecture diagrams, add semi-transparent dashed zone rectangles (opacity: 35, strokeStyle: "dashed", roughness: 0) as the first elements in the array to create visual grouping regions. See references/excalidraw-schema.md → Background Zones.
  • Element order: zones first → shapes → arrows → text elements (ensures correct z-index and text always renders on top)

Common Mistakes to Avoid

  • ❌ Using label: {text: "..."} shorthand on shapes or arrows — not supported by the Excalidraw parser
  • ❌ Putting text directly on shape elements without containerId
  • ❌ Using start/end for arrow bindings — use startBinding/endBinding with elementId/focus/gap
  • ❌ Forgetting to add arrows to their connected shapes' boundElements arrays
  • ❌ Omitting originalText, lineHeight, autoResize, or backgroundColor: "transparent" from text elements inside containers
  • ❌ Omitting required base properties (angle, strokeStyle, opacity, groupIds, frameId, index, isDeleted, seed, version, versionNonce, updated, link, locked) — elements will not render
  • ❌ Missing "files": {} at the top level of the JSON
  • ❌ Using roundness: {"type": 3} on ellipses — ellipses must use roundness: null
  • ❌ Missing lastCommittedPoint, startArrowhead, endArrowhead on arrows
  • ❌ Declaring text elements before arrows — text renders underneath and gets obscured
  • ❌ Floating arrows without bindings (won't move with shapes)
  • ❌ Overlapping elements (increase spacing)
  • ❌ Inconsistent color usage (define palette upfront)
  • ❌ Too many elements on one diagram (break into sub-diagrams)

Validation Checklist

Before delivering the diagram, verify:

  • All elements have unique IDs
  • Every element has ALL required base properties: angle, strokeStyle, opacity, groupIds, frameId, index, isDeleted, link, locked, seed, version, versionNonce, updated
  • index values are assigned in order ("a0", "a1", …) with text elements getting higher values than shapes/arrows
  • Top-level JSON includes "files": {}
  • Shapes with text use boundElements + separate text element with containerId
  • Text elements inside containers have containerId, originalText, lineHeight: 1.25, autoResize: true, roundness: null, backgroundColor: "transparent"
  • Arrows use startBinding/endBinding (with elementId, focus, gap) when connecting shapes, plus lastCommittedPoint: null, startArrowhead: null, endArrowhead: "arrow"
  • Connected shapes list the arrow in their boundElements arrays
  • Element order: shapes → arrows → text elements (text always on top)
  • Ellipses use roundness: null (not {"type": 3})
  • Coordinates prevent overlapping (check spacing)
  • Text is readable (font size 16+)
  • Colors follow consistent scheme
  • File is valid JSON
  • Element count is reasonable (<20 for clarity)

Troubleshooting

IssueSolution
Text not showing in shapesUse boundElements + separate text element with containerId, originalText, lineHeight
Text hidden behind arrowsMove text elements to end of elements array (after all arrows)
Arrows don't move with shapesUse startBinding/endBinding with elementId, focus: 0, gap: 1
Shape not moving with arrowsAdd the arrow to the shape's boundElements array
Elements overlapIncrease spacing between coordinates
Text doesn't fitIncrease shape width or reduce font size
Too many elementsBreak into multiple diagrams
Colors look inconsistentDefine color palette upfront, apply consistently

Limitations

  • Complex curves are simplified to straight/basic curved lines
  • Hand-drawn roughness is set to default (1)
  • No embedded images in auto-generation (use icon libraries for service icons)
  • Maximum recommended: 20 elements per diagram for clarity
  • No automatic collision detection — use spacing guidelines

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.59%
按下载量换算268

Claude

32.01%
按下载量换算248

Cursor

18.3%
按下载量换算142

Gemini CLI

10%
按下载量换算78

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills