
excalidraw
Delegation skill that offloads Excalidraw diagram work to subagents to keep verbose JSON out of context.
- GitHub stars
- 2.7K
What it does
- Adds the
excalidrawskill, which activates for*.excalidrawand*.excalidraw.jsonfiles and diagram or architecture requests - Delegates all Excalidraw operations to subagents so large files do not exhaust the main context window
- Targets single files that range from about 4k to 22k tokens and can exceed normal read limits
Use when working with *.excalidraw or *.excalidraw.json files, user mentions diagrams/flowcharts, or requests architecture visualization.
Add marketplace
/plugin marketplace add softaworks/agent-toolkitRun it inside Claude Code once, then install the plugin below.
Install
/plugin install excalidraw@agent-toolkitRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceExcalidraw 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
Trigger on ANY of these:
- File path contains
.excalidrawor.excalidraw.json - User requests: "explain/update/create diagram", "show architecture", "visualize flow"
- User mentions: "flowchart", "architecture diagram", "Excalidraw file"
- Architecture/design documentation tasks involving visual artifacts
Use delegation even for:
- "Small" files (smallest is 4k tokens - still significant)
- "Quick checks" (checking component names still loads full JSON)
- Single file operations (isolation prevents context pollution)
- Modifications (don't need full format understanding in main context)
Delegation Pattern
Main Agent Responsibilities
NEVER:
- ❌ Use Read tool on *.excalidraw files
- ❌ Parse Excalidraw JSON in main context
- ❌ Load multiple diagrams for comparison
- ❌ Inspect file to "understand the format"
ALWAYS:
- ✅ Delegate ALL Excalidraw operations to subagents
- ✅ Provide clear task description to subagent
- ✅ Request text-only summaries (not raw JSON)
- ✅ Keep diagram analysis isolated from main work
Subagent Task Templates
Read/Understand Operation
Task: Extract and explain the components in [file.excalidraw.json]
Approach:
1. Read the Excalidraw JSON
2. Extract only text elements (ignore positioning/styling)
3. Identify relationships between components
4. Summarize architecture/flow
Return:
- List of components/services with descriptions
- Connection/dependency relationships
- Key insights about the architecture
- DO NOT return raw JSON or verbose element details
Modify Operation
Task: Add [component] to [file.excalidraw.json], connected to [existing-component]
Approach:
1. Read file to identify existing elements
2. Find [existing-component] and its position
3. Create new element JSON for [component]
4. Add arrow elements for connections
5. Write updated file
Return:
- Confirmation of changes made
- Position of new element
- IDs of created elements
Create Operation
Task: Create new Excalidraw diagram showing [description]
Approach:
1. Design layout for [number] components
2. Create rectangle elements with text labels
3. Add arrows showing relationships
4. Use consistent styling (colors, fonts)
5. Write to [file.excalidraw.json]
Return:
- Confirmation of file created
- Summary of components included
- File location
Compare Operation
Task: Compare architecture approaches in [file1] vs [file2]
Approach:
1. Read both files
2. Extract text labels from each
3. Identify structural differences
4. Compare component relationships
Return:
- Key differences in architecture
- Components unique to each approach
- Relationship/flow differences
- DO NOT return full element details from both files
Common Rationalizations (STOP and Delegate Instead)
| Excuse | Reality | What to Do |
|---|---|---|
| "Direct reading is most efficient" | Consumes 4k-22k tokens unnecessarily | Delegate to subagent |
| "It's token-efficient to read directly" | Baseline tests showed 9-45% budget used | Always delegate |
| "This is optimal for one-time analysis" | "One-time" still pollutes main context | Subagent isolation |
| "The JSON is straightforward" | Simplicity ≠ token efficiency | Delegate anyway |
| "I need to understand the format" | Format understanding not needed in main agent | Subagent handles format |
| "Within reasonable bounds" (18k tokens) | "Reasonable" is subjective rationalization | Hard rule: delegate |
| "Just a quick check of components" | "Quick check" still loads full JSON | Extract text via subagent |
| "File is small (16K)" | 4k tokens is NOT small | Size threshold doesn't matter |
Red Flags - STOP and Delegate
Catch yourself about to:
- Use Read tool on .excalidraw file
- "Quickly check" what components exist
- "Understand the structure" before modifying
- Load file to "see what's there"
- Compare multiple diagrams side-by-side
- Parse JSON to "extract just the text"
All of these mean: Use Task tool with subagent instead.
Quick Reference
| Operation | Main Agent Action | Subagent Returns |
|---|---|---|
| Understand diagram | Delegate with "Extract and explain" template | Component list + relationships |
| Modify diagram | Delegate with "Add [X] connected to [Y]" template | Confirmation + changes made |
| Create diagram | Delegate with "Create showing [description]" template | File location + summary |
| Compare diagrams | Delegate with "Compare [A] vs [B]" template | Key differences (not raw JSON) |
Token Analysis (Why This Matters)
Real data from baseline testing:
| Scenario | Without Delegation | With Delegation | Savings |
|---|---|---|---|
| Single large file | 22k tokens (45% budget) | ~500 tokens (subagent summary) | 98% |
| Two-file comparison | 18k tokens (9% budget) | ~800 tokens (diff summary) | 96% |
| Modification task | 14k tokens (7% budget) | ~300 tokens (confirmation) | 98% |
Context pollution impact:
- Reading all 7 project diagrams: 67k tokens (33% of 200k budget)
- With delegation: ~2k tokens (isolated in subagents)
- Savings: 97% context budget preserved
Implementation Example
❌ BAD (Direct Read):
User: "What architecture is shown in detailed-architecture.excalidraw.json?"
Agent: Let me read that file... [reads 22k tokens into main context]
✅ GOOD (Subagent Delegation):
User: "What architecture is shown in detailed-architecture.excalidraw.json?"
Agent: I'll use a subagent to extract the architecture details.
[Dispatches Task tool with general-purpose subagent]
Task: Extract and explain components in .ryanquinn3/ticketing/detailed-architecture.excalidraw.json
[Receives ~500 token summary with component list and relationships]
[Responds to user with architecture explanation, main context preserved]
Why "Straightforward JSON" Doesn't Matter
Agents often rationalize: "The format is simple, I can just read it."
The problem isn't complexity - it's verbosity:
- Simple structure with 20+ properties per element
- Repetitive metadata (seed, version, nonce, roughness)
- Positioning data (x, y, width, height) not semantically useful
- Visual styling (strokeColor, opacity, fillStyle) irrelevant to content
Token cost comes from volume, not complexity.
Even "straightforward" JSON consumes 4k-22k tokens because:
- 79 elements × ~280 tokens/element = 22k tokens
- Most tokens are metadata noise
- Only text labels and relationships matter (~10% of content)
The Iron Law
Main agents NEVER read Excalidraw files. No exceptions.
Not for:
- "Quick checks"
- "Small files"
- "Understanding format"
- "One-time analysis"
- "Optimal efficiency"
Always delegate. Isolation is free via subagents.
From the softaworks/agent-toolkit README
Softaworks Agent Skills
Opinionated skills shared by @leonardocouy for improving daily work efficiency with Claude Code. Skills are packaged instructions and scripts that extend agent capabilities across development, documentation, planning, and professional workflows.
Skills follow the Agent Skills format.
🧭 Quick Navigation
🚀 Installation • 📚 Available Skills • 🤖 Agents & Commands • 📖 Skill Structure • 🤝 Contributing • 📄 License • 🔗 Links
🚀 Installation
Quick Install (Recommended)
npx skills add softaworks/agent-toolkit
This method works with multiple AI coding agents (Claude Code, Codex, Cursor, AdaL, etc.)
Register as Plugin Marketplace
Run the following commands in Claude Code:
/plugin marketplace add softaworks/agent-toolkit
/plugin
Install Plugins
Option 1: Via Browse UI
- Switch to Marketplaces tab (use arrow keys or Tab)
- Select agent-toolkit, press Enter
- Browse and select the plugin(s) you want to install
- Select Install now
Option 2: Direct Install
# Install specific skill
/plugin install codex@agent-toolkit
/plugin install humanizer@agent-toolkit
# Install specific agent
/plugin install agent-codebase-pattern-finder@agent-toolkit
# Install specific command
/plugin install command-codex-plan@agent-toolkit
Option 3: Ask the Agent
Simply tell Claude Code:
Please install Skills from github.com/softaworks/agent-toolkit
Available Plugins
Each skill, agent, and command is an individual plugin that can be installed separately:
- Skills → See Available Skills for the full list
- Agents → See Agents (install as
agent-<name>@agent-toolkit) - Commands → See Slash Commands (install as
command-<name>@agent-toolkit)
Update Plugins
To update plugins to the latest version:
- Run
/pluginin Claude Code - Switch to Marketplaces tab
- Select agent-toolkit
- Choose Update marketplace
You can also Enable auto-update to get the latest versions automatically.
Manual Installation
For Claude Code (Manual) — Skills only
cp -r skills/<skill-name> ~/.claude/skills/
For claude.ai — Skills only
Add skills to project knowledge or paste SKILL.md contents into the conversation.
📚 Available Skills
| Category | Skill | Description |
|---|---|---|
| 🤖 AI Tools | codex | Advanced code analysis with GPT-5.2 |
| 🤖 AI Tools | gemini | Large-scale review (200k+ context) |
| 🤖 AI Tools | perplexity | Web search & research |
| 🔮 Meta | agent-md-refactor | Refactor bloated agent instruction files |
| 🔮 Meta | command-creator | Create Claude Code slash commands |
| 🔮 Meta | plugin-forge | Build Claude Code plugins & manifests |
| 🔮 Meta | skill-judge | Evaluate skill design quality |
| 📝 Documentation | backend-to-frontend-handoff-docs | API handoff docs for frontend |
| 📝 Documentation | c4-architecture | C4 architecture diagrams with Mermaid |
| 📝 Documentation | crafting-effective-readmes | Write effective README files |
| 📝 Documentation | draw-io | Create & edit draw.io diagrams |
| 📝 Documentation | excalidraw | Work with Excalidraw diagrams |
| 📝 Documentation | frontend-to-backend-requirements | Document API requirements |
| 📝 Documentation | marp-slide | Professional presentation slides |
| 📝 Documentation | mermaid-diagrams | Software diagrams with Mermaid |
| 📝 Documentation | writing-clearly-and-concisely | Clear, professional writing |
| 🎨 Design & Frontend | design-system-starter | Create design systems |
| 🎨 Design & Frontend | mui | Material-UI v7 patterns |
| 🎨 Design & Frontend | openapi-to-typescript | Convert OpenAPI to TypeScript |
| 🎨 Design & Frontend | react-dev | Type-safe React 18-19 with TypeScript |
| 🎨 Design & Frontend | react-useeffect | React useEffect best practices |
| 🛠️ Development | database-schema-designer | Design robust database schemas |
| 🛠️ Development | dependency-updater | Smart dependency management |
| 🛠️ Development | naming-analyzer | Suggest better variable/function names |
| 🛠️ Development | lesson-learned | Extract SE lessons from recent code changes |
| 🛠️ Development | reducing-entropy | Minimize codebase size |
| 🛠️ Development | session-handoff | Seamless AI session transfers |
| 🎯 Planning | game-changing-features | Find 10x product opportunities |
| 🎯 Planning | gepetto | Detailed implementation planning |
| 🎯 Planning | requirements-clarity | Clarify requirements before coding |
| 🎯 Planning | ship-learn-next | Turn learning into actionable reps |
| 👔 Professional | daily-meeting-update | Interactive daily standup generator |
| 👔 Professional | difficult-workplace-conversations | Navigate difficult conversations |
| 👔 Professional | feedback-mastery | Deliver constructive feedback |
| 👔 Professional | professional-communication | Technical communication guide |
| 🧪 Testing | qa-test-planner | Comprehensive QA test planning |
| 📦 Git | commit-work | High-quality git commits |
| 🔧 Utilities | datadog-cli | Debug with Datadog logs & metrics |
| 🔧 Utilities | domain-name-brainstormer | Generate & check domain names |
| 🔧 Utilities | humanizer | Remove AI writing patterns |
| 🔧 Utilities | meme-factory | Generate memes with API |
| 🔧 Utilities | jira | Natural language Jira interaction |
| 🔧 Utilities | web-to-markdown | Convert webpages to Markdown |
🤖 Agents & Commands
Requires Claude Code CLI — These agents and commands are exclusive to Claude Code users.
For full access, add the marketplace and install plugins:
/plugin marketplace add softaworks/agent-toolkit /plugin install codex@agent-toolkit
Agents
Specialized sub-agents that Claude Code can delegate tasks to:
| Agent | Description |
|---|---|
| ascii-ui-mockup-generator | Visualize UI concepts through ASCII mockups |
| codebase-pattern-finder | Find similar implementations and patterns |
| communication-excellence-coach | Email refinement, tone calibration, roleplay |
| general-purpose | Default agent for complex multi-step tasks |
| mermaid-diagram-specialist | Create flowcharts, sequence diagrams, ERDs |
| ui-ux-designer | Research-backed UI/UX design feedback |
Slash Commands
Reusable workflows invoked with /command-name:
| Command | Description |
|---|---|
/codex-plan | Create implementation plans using Codex 5.2 |
/compose-email | Draft professional emails |
/explain-changes-mental-model | Build mental model of code changes |
/explain-pr-changes | Generate PR summaries |
/sync-branch | Sync feature branch with main |
/sync-skills-readme | Update README skills table |
/viral-tweet | Optimize tweet ideas for X engagement |
📖 Skill Structure
Each skill contains:
SKILL.md- Detailed instructions for the agent (with YAML frontmatter)README.md- User-friendly documentation with examplesscripts/- Helper scripts for automation (optional)references/- Supporting documentation (optional)
🤝 Contributing
Contributions are welcome! When adding new skills:
- Follow the Agent Skills format
- Include both
SKILL.md(for agents) andREADME.md(for users) - Add YAML frontmatter to
SKILL.mdwithname:anddescription:fields - Update this README.md with a link to your skill
📄 License
MIT
🔗 Links
Details
- Marketplace
- softaworks/agent-toolkit
- Source
- dist/plugins/excalidraw
- Category
- Documentation
- Keywords
- documentation, diagrams, excalidraw, visualization
- Listed since
- Apr 6, 2026
More from softaworks/agent-toolkit
All 56- feedback-mastery
- frontend-to-backend-requirements
- game-changing-features
- gemini
- gepetto
- humanizer
- jira
- lesson-learned
- marp-slide
- meme-factory
- mermaid-diagrams
- mui
- naming-analyzer
- openapi-to-typescript
- perplexity
- plugin-forge
- professional-communication
- qa-test-planner
- react-dev
- react-useeffect
- reducing-entropy
- requirements-clarity
- session-handoff
- ship-learn-next
Similar to excalidraw
More Technical Documentation
agent-mermaid-diagram-specialistPluginsoftaworks/agent-toolkit2.7K starsMermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations.
excalidrawSkillsoftaworks/agent-toolkit827 installsDelegation guide that keeps Excalidraw JSON out of the main agent's context by routing every diagram read, edit, or comparison to a subagent.
hand-drawn-diagramsSkillmuthuishere/hand-drawn-diagrams677 installsHand-drawn Excalidraw diagrams, flows, and page mockups that default to monochrome sketch output.
draw.ioMCP serverjgraph5.9K starsCreate and display interactive draw.io diagrams from Mermaid or draw.io XML, with 10,000+ library shapes.
tech-comms-diagramsPlugindanielrosehill/Claude-Code-Plugins32 starsTech diagrams for blogs and docs: Mermaid, text-to-image and image-to-image on fal, Replicate, ComfyUI or your own route, with label and arrow checks.
mcp-excalidrawPluginhenkisdabro/wookstar-claude-plugins94 starsHand-drawn diagrams with streaming animations, fullscreen editing, checkpoint/restore, and export to excalidraw.com