excalidraw-diagram

excalidraw-diagram is a skill for Claude Code from axtonliu/axton-obsidian-visual-skills. It costs 104 tokens per session (4,656 once invoked), scanned A, original, MIT.

A diagram generator that turns written content into Excalidraw drawings, a format for editable visual diagrams. It can produce files for Obsidian, Excalidraw itself, or an animation tool.

In plain words
What is it for?
It helps create flowcharts, mind maps, and other visual explanations from text. The files can be opened in Obsidian or Excalidraw, or used to create animated diagrams.
Why use it?
It removes the need to arrange concepts, relationships, and hierarchies by hand. It also gives you the file format suited to how you plan to use the diagram.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the obsidian-visual-skills plugin — 3 skills shipped together

Good fit It helps create flowcharts, mind maps, and other visual explanations from text. The files can be opened in Obsidian or Excalidraw, or used to create animated diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/axtonliu/axton-obsidian-visual-skills/excalidraw-diagram
About the project

axton-obsidian-visual-skills is a set of Claude Code skills that turns text descriptions into Canvas, Excalidraw, and Mermaid diagrams for Obsidian. It is intended for people who want to create flowcharts, mind maps, and other visual notes from text, and the catalogue includes its three skills and plugin.

axtonliu/axton-obsidian-visual-skills · 3,588 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 axtonliu/axton-obsidian-visual-skills --skill excalidraw-diagram
Clone the repo
git clone --depth 1 https://github.com/axtonliu/axton-obsidian-visual-skills

Made for: Claude Code.

Or install obsidian-visual-skills, the plugin that ships this one along with the rest of its 3 skills.

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/axtonliu/axton-obsidian-visual-skills/excalidraw-diagram/github.svg)](https://agentmods.dev/skills/axtonliu/axton-obsidian-visual-skills/excalidraw-diagram)
Your own site
<a href="https://agentmods.dev/skills/axtonliu/axton-obsidian-visual-skills/excalidraw-diagram"><img src="https://agentmods.dev/badge/skills/axtonliu/axton-obsidian-visual-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/axtonliu/axton-obsidian-visual-skills/excalidraw-diagram"><img src="https://agentmods.dev/badge/skills/axtonliu/axton-obsidian-visual-skills/excalidraw-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,656 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
  • Socket pass 18 Mar 2026
  • Snyk pass 17 Feb 2026
  • 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.00104 $0.04656
Opus 5 $0.00052 $0.02328
Sonnet 5 $0.00021 $0.00931
Haiku 4.5 $0.00010 $0.00466

Measured 12d ago against content hash 54bd1cd5cc99, 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 12d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

excalidraw-diagram/SKILL.md · 477 lines

How it starts

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

Excalidraw Diagram Generator

Create Excalidraw diagrams from text content with multiple output formats.

Output Modes

根据用户的触发词选择输出模式:

触发词 输出模式 文件格式 用途
Excalidraw画图流程图思维导图 Obsidian(默认) .md 在 Obsidian 中直接打开
标准Excalidrawstandard excalidraw Standard .excalidraw 在 excalidraw.com 打开/编辑/分享
Excalidraw动画动画图animate Animated .excalidraw 拖到 excalidraw-animate 生成动画

Workflow

  1. Detect output mode from trigger words (see Output Modes table above)
  2. Analyze content - identify concepts, relationships, hierarchy
  3. Choose diagram type (see Diagram Types below)
  4. Generate Excalidraw JSON (add animation order if Animated mode)
  5. Output in correct format based on mode
  6. Automatically save to current working directory
  7. Notify user with file path and usage instructions

Output Formats

Mode 1: Obsidian Format (Default)

严格按照以下结构输出,不得有任何修改:

---
excalidraw-plugin: parsed
tags: [excalidraw]
---
==⚠  Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠== You can decompress Drawing data with the command palette: 'Decompress current Excalidraw file'. For more info check in plugin settings under 'Saving'

# Excalidraw Data

## Text Elements
%%
## Drawing
\`\`\`json
{JSON 完整数据}
\`\`\`
%%

关键要点:

  • Frontmatter 必须包含 tags: [excalidraw]
  • 警告信息必须完整
  • JSON 必须被 %% 标记包围
  • 不能使用 excalidraw-plugin: parsed 以外的其他 frontmatter 设置
  • 文件扩展名.md

Mode 2: Standard Excalidraw Format

直接输出纯 JSON 文件,可在 excalidraw.com 打开:

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [...],
  "appState": {
    "gridSize": null,
    "viewBackgroundColor": "#ffffff"
  },
  "files": {}
}

关键要点:

  • source 使用 https://excalidraw.com(不是 Obsidian 插件)
  • 纯 JSON,无 Markdown 包装
  • 文件扩展名.excalidraw

Mode 3: Animated Excalidraw Format

与 Standard 格式相同,但每个元素添加 customData.animate 字段控制动画顺序:

Read the full file on GitHub · 477 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 477 lines · 104 tokens per session scan A 54bd1cd5cc99

Subscribe to this mod's changes

excalidraw-diagram is a skill published in the GitHub repository axtonliu/axton-obsidian-visual-skills (3,588 stars, last pushed 2mo ago), licensed MIT. It adds 104 tokens to every session and 4,656 once invoked, about $0.0005 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

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens