excalidraw-diagram

excalidraw-diagram is a skill for Claude Code, Codex from Infatoshi/excalidraw.py. It costs 33 tokens per session (938 once invoked), scanned A, original, MIT.

A tool for creating Excalidraw diagrams, which are editable visual drawings for explaining ideas, processes, and systems.

In plain words
What is it for?
Use it for flowcharts, architecture diagrams, sequence diagrams, concept maps, and other technical illustrations.
Why use it?
It turns requests for visual explanations into diagram files and can render them as PNG images for viewing or sharing.

Skill for Claude CodeCodex

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

Good fit Use it for flowcharts, architecture diagrams, sequence diagrams, concept maps, and other technical illustrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/infatoshi/excalidraw.py/claude-skill
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 Infatoshi/excalidraw.py --skill claude-skill
Clone the repo
git clone --depth 1 https://github.com/Infatoshi/excalidraw.py

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/infatoshi/excalidraw.py/claude-skill/github.svg)](https://agentmods.dev/skills/infatoshi/excalidraw.py/claude-skill)
Your own site
<a href="https://agentmods.dev/skills/infatoshi/excalidraw.py/claude-skill"><img src="https://agentmods.dev/badge/skills/infatoshi/excalidraw.py/claude-skill/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/infatoshi/excalidraw.py/claude-skill"><img src="https://agentmods.dev/badge/skills/infatoshi/excalidraw.py/claude-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 938 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 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.00033 $0.00938
Opus 5 $0.00016 $0.00469
Sonnet 5 $0.00007 $0.00188
Haiku 4.5 $0.00003 $0.00094

Measured 9d ago against content hash 2c6fb0ef5186, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

claude-skill/SKILL.md · 133 lines

How it starts

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

Excalidraw Diagram Generation

Workflow

  1. Write excalidraw JSON to <name>.excalidraw
  2. Render: uv run python -m excalidraw <name>.excalidraw -o <name>.png
  3. For multiple diagrams, use: uv run python -m excalidraw --batch *.excalidraw --outdir rendered/

File Structure

{
  "type": "excalidraw",
  "version": 2,
  "source": "claude",
  "elements": [...],
  "appState": {
    "viewBackgroundColor": "#ffffff"
  }
}

Available Shapes

  • rectangle, ellipse, diamond, line, arrow, freedraw, text

Shape Properties

{
  "id": "unique_id",
  "type": "rectangle",
  "x": 100,
  "y": 100,
  "width": 150,
  "height": 80,
  "strokeColor": "#1e1e1e",
  "backgroundColor": "#a5d8ff",
  "fillStyle": "solid",
  "strokeWidth": 2,
  "strokeStyle": "solid",
  "roughness": 0
}

Text Elements

{
  "id": "label1",
  "type": "text",
  "x": 110,
  "y": 110,
  "width": 130,
  "height": 60,
  "text": "Multi-line\ntext here",
  "fontSize": 16,
  "fontFamily": 5,
  "textAlign": "center",
  "strokeColor": "#1e1e1e"
}

fontFamily: 1=hand-drawn, 2=normal, 5=monospace (use for technical diagrams)

Arrow/Line Elements

{
  "id": "arrow1",
  "type": "arrow",
  "x": 100,
  "y": 100,
  "width": 0,
  "height": 50,
  "strokeColor": "#1971c2",
  "strokeWidth": 2,
  "roughness": 0,
  "points": [[0, 0], [0, 50]]
}

Dashed Frames

{
  "id": "frame1",
  "type": "rectangle",
  "strokeColor": "#2f9e44",
  "backgroundColor": "transparent",
  "strokeStyle": "dashed",
  "roughness": 0
}

Color Palette

Color Stroke Fill
Green #2f9e44 #b2f2bb
Orange #f08c00 #ffd8a8, #ffec99
Red #e03131 #ffc9c9
Blue #1971c2 #a5d8ff, #d0ebff
Purple #9c36b5 #e599f7, #eebefa
Grey #868e96 #dee2e6, #e9ecef

Spacing Guidelines

  • Title fontSize: 28-36
  • Section headers: 20-24
  • Body text: 12-16
  • Minimum padding inside boxes: 10px
  • Gap between sections: 20-30px
  • Dashed frame padding: 20px inside content

Read the full file on GitHub · 133 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. 9d ago First seen · 133 lines · 33 tokens per session scan A 2c6fb0ef5186

Subscribe to this mod's changes

excalidraw-diagram is a skill published in the GitHub repository Infatoshi/excalidraw.py (5 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 938 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

html-ppt-zhangzara-retro-zine

A neighborhood zine on the disappearing corner shops — portraits, voices, and what a block loses when they close. Built as a decision-grade story deck for community, local readers.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-studio

A photography studio's portfolio-and-rate deck — the signature work, the process, and the packages that win the brief. Built as a decision-grade design craft deck for prospective clients.

nexu-io/open-design · 47 tokens

motion-frames

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video…

nexu-io/open-design · 91 tokens

webgl-halftone-drift

A self-contained WebGL2 hero: a flowing field screened through a rotated halftone dot grid into a duotone print aesthetic; move the cursor to bend the drift.

nexu-io/open-design · 44 tokens

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

motion-graphics

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI…

heygen-com/hyperframes · 139 tokens