excalidraw-diagram

excalidraw-diagram is a skill for Claude Code, Codex from xstongxue/best-skills. It costs 65 tokens per session (1,855 once invoked), scanned A, original, Apache-2.0.

A diagram-making guide that turns written descriptions or structured information into editable Excalidraw files. Excalidraw is a web-based whiteboard tool with a hand-drawn visual style.

In plain words
What is it for?
Creating system architecture diagrams, flowcharts, data-structure diagrams, module-dependency maps, and rough whiteboard sketches from text.
Why use it?
It saves you from laying out architecture, process, or relationship diagrams by hand. The resulting file can be opened and edited in Excalidraw, Obsidian, or compatible VS Code tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating system architecture diagrams, flowcharts, data-structure diagrams, module-dependency maps, and rough whiteboard sketches from text.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xstongxue/best-skills/excalidraw-diagram
About the project

best-skills is a collection of reusable skills for coding agents, including tools for writing papers, creating diagrams and presentations, generating code documentation, and other tasks. Users install its skills into agents such as Cursor, Claude Code, Codex, or OpenClaw so those agents can recognize relevant requests and run the corresponding workflows. The catalogue entries are examples of the skills included in the collection.

xstongxue/best-skills · 2,814 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xstongxue/best-skills --skill excalidraw-diagram
Clone the repo
git clone --depth 1 https://github.com/xstongxue/best-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for excalidraw-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/xstongxue/best-skills/excalidraw-diagram/github.svg)](https://agentmods.dev/skills/xstongxue/best-skills/excalidraw-diagram)
Your own site
<a href="https://agentmods.dev/skills/xstongxue/best-skills/excalidraw-diagram"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/excalidraw-diagram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for excalidraw-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/xstongxue/best-skills/excalidraw-diagram"><img src="https://agentmods.dev/badge/skills/xstongxue/best-skills/excalidraw-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,855 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01855
Opus 5 $0.00032 $0.00928
Sonnet 5 $0.00013 $0.00371
Haiku 4.5 $0.00006 $0.00186

Measured 13d ago against content hash 0eda7a8ef93f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

excalidraw-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/excalidraw-diagram/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Excalidraw 手绘图

本 Skill 指导 Agent 生成标准的 Excalidraw 图表文件.excalidraw JSON),在浏览器、Obsidian、VSCode 等集成了 Excalidraw 的环境中可直接打开和继续编辑。

使用时机

  • 用户希望生成「手绘风」的系统架构图、模块依赖图、业务流程图、数据流图等。
  • 用户提到「画个架构图」「画流程图」「画模块关系图」「用 Excalidraw 画图」等需求。
  • 用户已有较清晰的模块/步骤/实体列表,希望整理成一张结构化示意图。

支持图类型

  • 系统架构图:用户 / 前端 / 后端服务 / 数据库 / 外部系统等。
  • 业务流程图 / 近似时序图:按照步骤或事件顺序,自上而下或自左向右。
  • 数据结构 / 模块依赖图:实体之间的关联、依赖关系。
  • 自由白板草图:对论文结构、研究框架、任务分解等进行发散式可视化。

输入格式(在聊天中的推荐写法)

请引导用户尽量按照如下结构提供信息(中文即可):

【图类型】:系统架构图 / 流程图 / 数据结构图 / 自由草图
【内容来源】:自由描述 / 论文大纲 / 代码结构 / 接口列表 等
【核心要素】:

  • 节点:列出主要模块 / 实体 / 步骤(可分组)
  • 关系:说明谁连接谁、方向与含义(如「用户 -> Web 前端」「服务 A 调用 服务 B」)
    【布局偏好】:自上而下 / 自左向右 / 分层布局(可选)
    【分组逻辑】:按子系统、按层次(前端/后端/存储等,可选)
    【颜色规则】:不同类型节点的颜色偏好(可选,若未指定则使用默认配色)

若用户只给出自然语言描述,Agent 需先在脑中整理出「节点列表 + 关系列表」,再进行画图。

生成规则(Agent 内部步骤)

  1. 解析输入,构建抽象模型

    • 抽取所有节点:为每个模块/实体/步骤分配唯一 id、名称与类型。
    • 抽取所有关系:source、target、可选 label(调用方式、数据流向等)。
    • 确定层次信息:根据图类型与用户的布局偏好,将节点归入不同层(如「用户层 / 前端层 / 服务层 / 数据层」)。
  2. 简单布局策略(坐标分配)

    • 不追求复杂自动排版,只需给出「合理、可读」的初始位置:
      • 系统架构图:自上而下三层或多层排列,同层节点在一条水平线上。
      • 流程图:按步骤顺序纵向或横向排列,用箭头串联。
      • 数据结构图:以核心实体为中心,相关实体围绕,保持连线不明显交叉。
    • 粗略设定 x, y 坐标,例如:同层 y 固定、x 按索引递增;不同层 y 按层级间距递增。
  3. Excalidraw 元素生成约定(含默认箭头与配色)

    • 节点元素(默认样式)

      • 使用 rectangleround rectangle 表示模块/实体/步骤。
      • 每个节点由一个图形元素 + 一个文本元素组成(文本大致居中叠加在矩形上)。
      • 默认配色约定(若用户未特别指定):
        • 输入 / 输出:白底黑框(backgroundColor: "transparent"strokeColor: "#1e1e1e")。
        • 计算模块 / 中间层(如 Encoder / Decoder / FFN 等):浅色背景 + 黑色描边(例如 backgroundColor: "#f5f5ff" 或类似),同一类模块颜色一致。
        • 分组大框(如「Encoder Stack」「Decoder Stack」):圆角矩形、白底黑框,用文本在框内顶部标注标题。
      • 可使用 groupIds 将同一子系统下的节点分到同一分组,方便用户后续整体移动。
    • 连线元素(默认箭头)

      • 使用 arrow 连接相关节点,points 按起点到终点直线或略带折线。
      • 默认方向:从「数据流/调用发起方」指向「接收方」,例如输入 → 嵌入 → Encoder → Decoder → 输出。
      • 核心主流程使用较粗黑色箭头(strokeWidth 稍大),辅助关系可以用细线或浅色。
      • 如有必要,可增加短文本元素标注连线含义(如「调用」「写入」「Attention」等)。

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 105 lines · 65 tokens per session scan A 0eda7a8ef93f

Subscribe to this mod's changes

excalidraw-diagram is a skill published in the GitHub repository xstongxue/best-skills (2,814 stars, last pushed 18d ago), licensed Apache-2.0. It adds 65 tokens to every session and 1,855 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cherry-studio-feedback

A guide for handling Cherry Studio bug reports, interface problems, user-experience issues, and feature suggestions.

CherryHQ/cherry-studio · 37 tokens

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

anthropics/claude-plugins-official · 40 tokens

visual-plan

Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.

BuilderIO/skills · 32 tokens

visual-edit

Open a running local app in Design overview mode as URL-backed iframe screens for visual editing, flow review, duplication, and route-state exploration. Use when the user asks to inspect, compare, or edit a real local app visually in Design.

BuilderIO/skills · 51 tokens

muapi-ui-design

Generate high-fidelity UI/UX mockups for mobile and web apps using Atomic Design principles — creates wireframes and design systems via muapi.ai.

SamurAIGPT/Generative-Media-Skills · 34 tokens

display-glasses-with-jetpack-compose-glimmer

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an…

android/skills · 91 tokens