
Excalidraw
Excalidraw files are deceptively expensive,a single diagram can burn 4k-22k tokens because the JSON is packed with visual metadata (positioning, styling, roughness values) while actual content is maybe 10% of the file. This skill enforces a hard rule: main agents never read .excalidraw files directly, always delegate to subagents instead. The pattern isolates context pollution so you can work with multiple diagrams without torching your budget. Real example from the source: reading 7 project diagrams directly costs 67k tokens (33% of your context), delegating costs about 2k. Worth using even for "small" files or "quick checks" since the smallest diagrams still hit 4k tokens and the temptation to peek is strong.
- skills.sh installs
- 804
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill excalidraw --agent claude-codeInstalls into .claude/skills of the current project.
Files
Excalidraw Subagent Delegation
Overview
Core principle: Main agents NEVER read Excalidraw files directly. Always delegate to subagents to isolate context consumption.
Excalidraw files are JSON with high token cost but low information density. Single files range from 4k-22k tokens (largest can exceed read tool limits). Reading multiple diagrams quickly exhausts context budget (7 files = 67k tokens = 33% of budget).
The Problem
Excalidraw JSON structure:
- Each shape has 20+ properties (x, y, width, height, strokeColor, seed, version, etc.)
- Most properties are visual metadata (positioning, styling, roughness)
- Actual content: text labels and element relationships (<10% of file)
- Signal-to-noise ratio is extremely low
Example: 14-element diagram = 596 lines, 16K, ~4k tokens. 79-element diagram = 2,916 lines, 88K, ~22k tokens (exceeds read limit).
When to Use
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Code Review & Quality, Data Science & ML
- First seen
- May 16, 2026
More from davila7/claude-code-templates
All 618- Senior Ml Engineer799
- Devops Iac Engineer783
- Copywriting776
- Marketing Ideas769
- Statistical Analysis769
- Browser Automation753
- Agent Memory Systems728
- Context7 Auto Research724
- Content Creator723
- Frontend Dev Guidelines713
- Pubmed Database713
- Game Development691
- Ai Agents Architect688
- Clinical Reports679
- Perplexity Search674
- Nestjs Expert672
- Scroll Experience669
- Pytorch Lightning645
- Frontend Patterns638
- Agent Evaluation637
- Nextjs Best Practices632
- Gdpr Dsgvo Expert627
- Peer Review612
- Prompt Engineering604