excalidraw-diagram

excalidraw-diagram is a skill for Claude Code, Codex from twotwo/obsidian-skills. It costs 76 tokens per session (2,716 once invoked), scanned A, a copy of excalidraw-diagram, MIT.

A diagram generator that turns written ideas into Excalidraw files for Obsidian, a note-taking application with plugin support.

In plain words
What is it for?
Use it to create flowcharts, mind maps, and other diagrams, then save them as Obsidian-ready Markdown files containing the required Excalidraw data.
Why use it?
It gives concepts, processes, and relationships a visual form that can be opened and edited in Obsidian's Excalidraw view.

Skill for Claude CodeCodex

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

Good fit Use it to create flowcharts, mind maps, and other diagrams, then save them as Obsidian-ready Markdown files containing the required Excalidraw data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/twotwo/obsidian-skills/excalidraw-diagram
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 twotwo/obsidian-skills --skill excalidraw-diagram
Clone the repo
git clone --depth 1 https://github.com/twotwo/obsidian-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/twotwo/obsidian-skills/excalidraw-diagram/github.svg)](https://agentmods.dev/skills/twotwo/obsidian-skills/excalidraw-diagram)
Your own site
<a href="https://agentmods.dev/skills/twotwo/obsidian-skills/excalidraw-diagram"><img src="https://agentmods.dev/badge/skills/twotwo/obsidian-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/twotwo/obsidian-skills/excalidraw-diagram"><img src="https://agentmods.dev/badge/skills/twotwo/obsidian-skills/excalidraw-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,716 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.
Origin 100% copy Near-identical to another mod 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.00076 $0.02716
Opus 5 $0.00038 $0.01358
Sonnet 5 $0.00015 $0.00543
Haiku 4.5 $0.00008 $0.00272

Measured 12d ago against content hash 75a99b9bfe4d, 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

This is a copy

100% identical to excalidraw-diagram — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 308 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, outputting Obsidian-ready .md files.

Workflow

  1. Analyze content - identify concepts, relationships, hierarchy
  2. Choose diagram type (see below)
  3. Generate Excalidraw JSON
  4. Generate Obsidian-ready .md file with Excalidraw frontmatter
  5. Automatically save to current working directory
  6. Notify user with file path and confirm save successful

Output Format

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

---
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 设置

Diagram Types & Selection Guide

选择合适的图表形式,以提升理解力与视觉吸引力。

类型 英文 使用场景 做法
流程图 Flowchart 步骤说明、工作流程、任务执行顺序 用箭头连接各步骤,清晰表达流程走向
思维导图 Mind Map 概念发散、主题分类、灵感捕捉 以中心为核心向外发散,放射状结构
层级图 Hierarchy 组织结构、内容分级、系统拆解 自上而下或自左至右构建层级节点
关系图 Relationship 要素之间的影响、依赖、互动 图形间用连线表示关联,箭头与说明
对比图 Comparison 两种以上方案或观点的对照分析 左右两栏或表格形式,标明比较维度
时间线图 Timeline 事件发展、项目进度、模型演化 以时间为轴,标出关键时间点与事件
矩阵图 Matrix 双维度分类、任务优先级、定位 建立 X 与 Y 两个维度,坐标平面安置
自由布局 Freeform 内容零散、灵感记录、初步信息收集 无需结构限制,自由放置图块与箭头

Design Rules

Text & Format

  • 所有文本元素必须使用 fontFamily: 5(Excalifont 手写字体)
  • 文本中的双引号替换规则" 替换为 『』
  • 文本中的圆括号替换规则() 替换为 「」
  • 字体大小规则
    • 标题:24-28px
    • 副标题:18-20px
    • 正文/说明:14-16px
  • 行高:所有文本使用 lineHeight: 1.25

Layout & Design

  • 画布范围:建议所有元素在 0-1200 x 0-800 区域内
  • 元素间距:确保元素间距适当,整体布局美观
  • 层次清晰:使用不同颜色和形状区分不同层级的信息
  • 图形元素:适当使用矩形框、圆形、箭头等元素来组织信息

Read the full file on GitHub · 308 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 · 308 lines · 76 tokens per session scan A 75a99b9bfe4d

Subscribe to this mod's changes

excalidraw-diagram is a skill published in the GitHub repository twotwo/obsidian-skills (2 stars, last pushed 7mo ago), licensed MIT. It adds 76 tokens to every session and 2,716 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to excalidraw-diagram, differing in 1 line, and is treated as a copy.

Related

Other skills, from other repositories

gtd-evening

A guided evening routine for a GTD task system, where GTD means sorting work into clear next actions, waiting items, and projects. It reviews the day, records results, and tidies unfinished work.

ZhdanovAlexey/obsidian-gtd-agent · 93 tokens

gtd-alignment

A monthly goal-checking and coaching routine based on the user's stated strategy, values, and personal patterns. It compares time spent and actions taken with the goals the user says matter most.

ZhdanovAlexey/obsidian-gtd-agent · 96 tokens

gtd-inbox

A guided process for emptying a GTD inbox, where an inbox is a temporary holding place for uncategorized tasks and ideas. It examines each item and helps decide whether it belongs in actions, projects, waiting items, someday items, areas, or reference notes.

ZhdanovAlexey/obsidian-gtd-agent · 79 tokens

gtd-review

A guided weekly review for a GTD system, where GTD is a method for keeping tasks, projects, waiting items, and reference material organized. It prepares a review note from recent work, journal entries, and, when available, calendar events.

ZhdanovAlexey/obsidian-gtd-agent · 81 tokens

gtd-morning

A guided morning planning session based on GTD, a task-management method that captures commitments, chooses next actions, and reviews them. It also uses a daily journal, task lists, waiting items, and optionally today's calendar.

ZhdanovAlexey/obsidian-gtd-agent · 68 tokens

obsidian-cli

Automate your Obsidian vault via CLI. Use when user wants to: migrate or reorganize notes, assign properties/frontmatter, create Obsidian Bases (.base files), generate Templater templates, bulk rename or move files, search vault content or analyze links, manage plugins/themes/workspaces, or perform batch vault…

cwaits6/obsidian-cli-skill · 258 tokens