Token导航 LogoToken导航

Agent Skill · 前端设计

excalidraw(Excalidraw 图表绘制)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

excalidraw 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 4,447。

总安装 885周安装 38GitHub Stars 151下载 310核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill excalidraw

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于创建手绘风格的架构图、流程图与概念可视化图表。它适合让 Agent 将抽象结构转化为交互式 Excalidraw 格式图形,支持拖拽编辑。使用时需提供明确的图形类型描述(如系统架构或决策树),避免纯数值表达。

安装需通过 npx skills add 命令从 aws-samples/sample-strands-agent-with-agentcore 仓库添加 excalidraw 技能。生成的图表可直接嵌入文档或演示文稿,但需手动调整样式以适应品牌规范。

来源仓库内路径:skills/excalidraw

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcor…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

excalidraw 怎么安装?

在终端执行 npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

excalidraw 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

excalidraw 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

excalidraw 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

excalidraw 用的人多吗?

公开数据是累计安装 885 次,近一周安装 38 次,下载 310 次,GitHub 151 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

excalidraw 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
excalidraw

Excalidraw 图表绘制 · 本页

885151只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Excalidraw Diagrams

Create hand-drawn style diagrams, flowcharts, architecture diagrams, and mind maps using the Excalidraw format. Diagrams are rendered interactively in the Canvas panel.

When to Use This Skill

Use create_excalidraw_diagram when the user wants to visualize structure, flow, or relationships — not raw numbers.

Use this skill for...Use visualization skill for...
System architecture diagramSales figures by quarter
Flowchart or decision treeSurvey response percentages
Sequence / interaction diagramStock price over time
Mind map or concept mapMarket share breakdown
Shapes, boxes, arrows, labelsAny x/y or segment/value data

Diagram Type

Choose based on user intent. For Swimlane, Class, Sequence, ER, and DFD diagrams, read diagram-patterns.md before generating.

IntentTypePattern
Process steps, workflow, decisionsFlowchartRectangles + diamonds + arrows (see Example)
System components, dependenciesArchitectureZone rectangles + boxes + arrows
Concept hierarchy, brainstormingMind MapCenter node + radial branch arrows
Entity connections, associationsRelationshipBoxes + labeled arrows
Cross-functional workflow, actor responsibilitiesSwimlanediagram-patterns.md
OOP class structure, inheritanceClass Diagramdiagram-patterns.md
Object interactions over timeSequence Diagramdiagram-patterns.md
Database entities and relationshipsER Diagramdiagram-patterns.md
Data transformation, data movementDFDdiagram-patterns.md

Available Tools

  • create_excalidraw_diagram(elements, title, background_color): Generate a diagram from Excalidraw element JSON

Color Palette

Use these colors consistently across all diagrams.

Primary Colors (strokes, arrows, text)

NameHexUse
Blue#4a9eedPrimary actions, links
Amber#f59e0bWarnings, highlights
Green#22c55eSuccess, positive
Red#ef4444Errors, negative
Purple#8b5cf6Accents, special items
Cyan#06b6d4Info, secondary

Fill Colors (shape backgrounds)

ColorHexGood For
Light Blue#a5d8ffInput, sources, primary nodes
Light Green#b2f2bbSuccess, output, completed
Light Orange#ffd8a8Warning, pending, external
Light Purple#d0bfffProcessing, middleware
Light Red#ffc9c9Error, critical
Light Yellow#fff3bfNotes, decisions
Light Teal#c3fae8Storage, data

Background Zone Colors (use with opacity: 35 for layer grouping)

ColorHexGood For
Blue zone#dbe4ffUI / frontend layer
Purple zone#e5dbffLogic / agent layer
Green zone#d3f9d8Data / tool layer

Element Format

Required Fields (all elements)

type, id (unique string), x, y, width, height

Defaults (skip if using these values)

strokeColor="#1e1e1e", backgroundColor="transparent", fillStyle="solid", strokeWidth=2, roughness=1, opacity=100

Shape Types

Rectangle

{ "type": "rectangle", "id": "r1", "x": 100, "y": 100, "width": 200, "height": 80,
  "roundness": { "type": 3 }, "backgroundColor": "#a5d8ff", "fillStyle": "solid" }
  • roundness: {type: 3} for rounded corners

Ellipse

{ "type": "ellipse", "id": "e1", "x": 100, "y": 100, "width": 150, "height": 150 }

Diamond

{ "type": "diamond", "id": "d1", "x": 100, "y": 100, "width": 150, "height": 150 }

Label on shape (PREFERRED — no separate text element needed)

{ "type": "rectangle", "id": "r1", "x": 100, "y": 100, "width": 200, "height": 80,
  "label": { "text": "My Label", "fontSize": 20 } }
  • Works on rectangle, ellipse, diamond
  • Text auto-centers; container auto-resizes to fit
  • Also works on arrows: "label": {"text": "connects"}

Standalone Text (titles, annotations only)

{ "type": "text", "id": "t1", "x": 150, "y": 50, "text": "Title", "fontSize": 24 }
  • x is the LEFT edge. To center at position cx: set x = cx - text.length × fontSize × 0.25

Arrow

{ "type": "arrow", "id": "a1", "x": 300, "y": 150, "width": 150, "height": 0,
  "points": [[0,0],[150,0]], "endArrowhead": "arrow",
  "startBinding": { "elementId": "r1", "fixedPoint": [1, 0.5] },
  "endBinding": { "elementId": "r2", "fixedPoint": [0, 0.5] } }
  • points: [dx, dy] offsets from element x, y
  • endArrowhead: null | "arrow" | "bar" | "dot" | "triangle"
  • strokeStyle: "solid" | "dashed" | "dotted"
  • fixedPoint for bindings: top [0.5,0], bottom [0.5,1], left [0,0.5], right [1,0.5]

Pseudo-Elements (not drawn — control behavior)

cameraUpdate — sets the viewport

{ "type": "cameraUpdate", "width": 800, "height": 600, "x": 0, "y": 0 }
  • x, y: top-left corner of visible area (scene coordinates)
  • Must be 4:3 ratio: 400×300, 600×450, 800×600, 1200×900, 1600×1200
  • ALWAYS place a cameraUpdate as the first element to frame the diagram
  • No id needed

delete — removes elements by ID

{ "type": "delete", "ids": "r1,a1,t2" }
  • Comma-separated element IDs to remove
  • Use when updating an existing diagram to remove elements before adding replacements
  • Never reuse a deleted ID — assign new IDs to replacements

Camera Sizing Guide

The diagram displays at ~700px width. Use these standard sizes:

SizeWidth × HeightUse When
S400 × 3002–3 elements, close-up
M600 × 450Small diagram section
L800 × 600Standard (default)
XL1200 × 900Large overview
XXL1600 × 1200Very complex diagrams

Font size rules:

  • Body text / labels: minimum 16
  • Titles / headings: minimum 20
  • Annotations: minimum 14 (use sparingly)
  • At XL/XXL camera: increase minimums by ~4px

Element sizing rules:

  • Labeled rectangles/ellipses: minimum 120 × 60
  • Leave 20–30px gaps between elements

Updating an Existing Diagram

When the user asks to modify a diagram, you will receive the current elements in context. Respond with the complete updated elements array:

  • Keep the same id for unchanged elements
  • Modify fields on elements you want to change
  • Omit elements you want to remove
  • Add new elements with unique IDs not used before

Example: Flowchart

[
  { "type": "cameraUpdate", "width": 800, "height": 600, "x": 0, "y": 0 },
  { "type": "rectangle", "id": "el-1",
    "x": 300, "y": 60, "width": 160, "height": 60,
    "strokeColor": "#4a9eed", "backgroundColor": "#a5d8ff",
    "fillStyle": "solid", "roundness": { "type": 3 },
    "label": { "text": "Start", "fontSize": 18 } },
  { "type": "diamond", "id": "el-2",
    "x": 280, "y": 170, "width": 200, "height": 90,
    "strokeColor": "#f59e0b", "backgroundColor": "#fff3bf",
    "fillStyle": "solid",
    "label": { "text": "Decision?", "fontSize": 16 } },
  { "type": "arrow", "id": "el-3",
    "x": 380, "y": 120, "width": 0, "height": 50,
    "points": [[0,0],[0,50]], "endArrowhead": "arrow",
    "startBinding": { "elementId": "el-1", "fixedPoint": [0.5, 1] },
    "endBinding": { "elementId": "el-2", "fixedPoint": [0.5, 0] } },
  { "type": "rectangle", "id": "el-4",
    "x": 300, "y": 320, "width": 160, "height": 60,
    "strokeColor": "#22c55e", "backgroundColor": "#b2f2bb",
    "fillStyle": "solid", "roundness": { "type": 3 },
    "label": { "text": "End", "fontSize": 18 } },
  { "type": "arrow", "id": "el-5",
    "x": 380, "y": 260, "width": 0, "height": 60,
    "points": [[0,0],[0,60]], "endArrowhead": "arrow",
    "startBinding": { "elementId": "el-2", "fixedPoint": [0.5, 1] },
    "endBinding": { "elementId": "el-4", "fixedPoint": [0.5, 0] } }
]

Common Mistakes to Avoid

  • Camera must use exact 4:3 ratios — non-4:3 viewports cause distortion
  • Always start with cameraUpdate — without it the viewport is unpredictable
  • No comments in element arrays — elements must be valid JSON. Never add // or /* */ comments inside the array; they break JSON parsing
  • Text contrast — never use light gray on white. Minimum text color on white: #757575. For text on light fills use dark variants (#15803d not #22c55e)
  • Arrow labels need space — long labels overflow short arrows; keep labels short or widen arrows
  • No emoji — Excalidraw's font does not render emoji
  • Element overlap — check that labels, boxes, and zone overlays don't stack on each other (minimum 20px gap)
  • Camera padding — leave padding inside the camera frame; don't match camera size exactly to content size

UI Guidance (from tools-config)

Element Format:

  • Required: type, x, y, id
  • Shapes (rectangle/ellipse/diamond): add width, height
  • Arrows/lines: add width, height, points [[0,0],[dx,dy]]
  • Text: add text, fontSize
  • Use label field on shapes for centered text
  • Connect shapes with arrow elements using points routing

平台分布

Codex

36.49%
按下载量换算113

Claude

30.43%
按下载量换算94

Cursor

18.35%
按下载量换算57

Gemini CLI

8.8%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills