跳到正文
Skillpedia
图片与图标5.2k · #15033

excalidraw-diagram

它能做什么

它创建 Excalidraw 文件,其图形和布局能展示关系与流程,而不只是标签。适合想要一张能解释事物运作方式的图表的人。

适用场景

  • ✓当你想绘制一个工作流程或流程的图表时。
  • ✓当你想展示系统各部分如何连接时。
  • ✓当你想用可编辑的 Excalidraw 文件直观解释一个概念时。

技能链接

https://github.com/coleam00/excalidraw-diagram-skill/blob/main/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请做一张 Excalidraw 图,展示客户订单如何从我的网站流转到仓库。”

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

工作原理

智能体选择合适的细节层次,规划图形,让布局本身传达观点,然后写出一个 Excalidraw 文件。颜色来自一个调色板文件,可以修改以匹配你的品牌。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Excalidraw Diagram Creator

Generate .excalidraw JSON files that argue visually, not just display information.

Setup: If the user asks you to set up this skill (renderer, dependencies, etc.), see README.md for instructions.

Customization

All colors and brand-specific styles live in one file: references/color-palette.md. Read it before generating any diagram and use it as the single source of truth for all color choices — shape fills, strokes, text colors, evidence artifact backgrounds, everything.

To make this skill produce diagrams in your own brand style, edit color-palette.md. Everything else in this file is universal design methodology and Excalidraw best practices.


Core Philosophy

Diagrams should ARGUE, not DISPLAY.

A diagram isn't formatted text. It's a visual argument that shows relationships, causality, and flow that words alone can't express. The shape should BE the meaning.

The Isomorphism Test: If you removed all text, would the structure alone communicate the concept? If not, redesign.

The Education Test: Could someone learn something concrete from this diagram, or does it just label boxes? A good diagram teaches—it shows actual formats, real event names, concrete examples.


Depth Assessment (Do This First)

Before designing, determine what level of detail this diagram needs:

Simple/Conceptual Diagrams

Use abstract shapes when:

  • Explaining a mental model or philosophy
  • The audience doesn't need technical specifics
  • The concept IS the abstraction (e.g., "separation of concerns")

Comprehensive/Technical Diagrams

Use concrete examples when:

  • Diagramming a real system, protocol, or architecture
  • The diagram will be used to teach or explain (e.g., YouTube video)
  • The audience needs to understand what things actually look like
  • You're showing how multiple technologies integrate

For technical diagrams, you MUST include evidence artifacts (see below).


Research Mandate (For Technical Diagrams)

Before drawing anything technical, research the actual specifications.

If you're diagramming a protocol, API, or framework:

  1. Look up the actual JSON/data formats
  2. Find the real event names, method names, or API endpoints
  3. Understand how the pieces actually connect
  4. Use real terminology, not generic placeholders

Bad: "Protocol" → "Frontend" Good: "AG-UI streams events (RUN_STARTED, STATE_DELTA, A2UI_UPDATE)" → "CopilotKit renders via createA2UIMessageRenderer()"

Research makes diagrams accurate AND educational.


Evidence Artifacts

Evidence artifacts are concrete examples that prove your diagram is accurate and help viewers learn. Include them in technical diagrams.

Types of evidence artifacts (choose what's relevant to your diagram):

Artifact Type When to Use How to Render
Code snippets APIs, integrations, implementation details Dark rectangle + syntax-colored text (see color palette for evidence artifact colors)
Data/JSON examples Data formats, schemas, payloads Dark rectangle + colored text (see color palette)
Event/step sequences Protocols, workflows, lifecycles Timeline pattern (line + dots + labels)
UI mockups Showing actual output/results Nested rectangles mimicking real UI
Real input content Showing what goes IN to a system Rectangle with sample content visible
API/method names Real function calls, endpoints Use actual names from docs, not placeholders

Example: For a diagram about a streaming protocol, you might show:

  • The actual event names from the spec (not just "Event 1", "Event 2")
  • A code snippet showing how to connect
  • What the streamed data actually looks like

Example: For a diagram about a data transformation pipeline:

  • Show sample input data (actual format, not "Input")
  • Show sample output data (actual format, not "Output")
  • Show intermediate states if relevant

The key principle: show what things actually look like, not just what they're called.


Multi-Zoom Architecture

Comprehensive diagrams operate at multiple zoom levels simultaneously. Think of it like a map that shows both the country borders AND the street names.

Level 1: Summary Flow

A simplified overview showing the full pipeline or process at a glance. Often placed at the top or bottom of the diagram.

Example: Input → Processing → Output or `Client → Server →

常见问题

在哪里修改颜色?

在颜色调色板文件中修改。这是所有颜色选择的唯一位置,方便你匹配自己的品牌。

输出是什么格式?

输出是 Excalidraw JSON 文件,可以在 Excalidraw 中打开。

图表一定需要文字才能看懂吗?

该技能力求让图形本身就能传达信息,并会检查去掉文字后结构是否仍然成立。

详情

作者的原始描述

Create Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts.

repo: coleam00/excalidraw-diagram-skill

热度

GitHub 星标
5.2k
排名
#15033
许可证
—
更新时间
2026/3/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能