excalidraw-diagrams
Skill by sammcj
Guides an AI assistant to create and update Excalidraw diagrams. It covers layout, consistent styling, bound arrows, and writing native .excalidraw files. Intended for users who ask for Excalidraw diagrams.
Install excalidraw-diagrams
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sammcj/agentic-coding /tmp/agentic-coding && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-coding/Skills/excalidraw-diagrams ~/.claude/skills/excalidraw-diagramsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sammcj/agentic-coding /tmp/agentic-coding && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-coding/Skills/excalidraw-diagrams ~/.gemini/antigravity-cli/skills/excalidraw-diagramsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install excalidraw-diagrams in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for creating and updating Excalidraw diagrams. It covers layout spacing, consistent colours, fonts and shapes, and arrows that stay connected to shapes when objects are moved. It describes three workflows: an inline preview using the Excalidraw MCP's create_view tool, a native .excalidraw file written by a Python script, or both.
The skill tells the assistant to call read_me before its first create_view call in a session, and to save diagram content to a file and link the path. It explains that text inside shapes must be bound to the shape, because the label shorthand does not survive export. It includes a Python helper, scripts/generate_excalidraw.py, with functions such as labeled_rect and bound_arrow. It is intended for users who ask an assistant to draw or edit Excalidraw diagrams.
Written from the project's SKILL.md and checked against it.
What it can do
- read_meCalled before the first create_view call in a session for the colour palette, camera sizes and layout rules.
- create_viewRenders an inline diagram preview in the chat, using label on shapes.
- cameraUpdateAnimates the view to guide attention in an inline diagram preview.
- labeled_rectPython helper that creates a shape with centred, bound text for a .excalidraw file.
- bound_arrowPython helper that anchors an arrow to two shapes so connections persist when shapes move.
- write_scenePython helper that wraps elements in the scene structure and saves a .excalidraw file.
- Layout and style guidanceAdvice on spacing, consistent use of colours, fonts and shapes, and text placement.
- Privacy warningWarns the user before uploading a sensitive diagram to excalidraw.com, since it becomes publicly accessible.
What you need
- Excalidraw MCP enabled in the assistant, using the HTTP URL https://excalidraw-mcp-app.vercel.app/mcp
- Python 3 to run scripts/generate_excalidraw.py
- Excalidraw, the desktop app, or the VS Code Excalidraw extension to open .excalidraw files
Try asking
- Create an Excalidraw diagram of our login flow and show it in the chat.
- Make an Excalidraw .excalidraw file showing the three-tier app architecture.
- Update my Excalidraw diagram so the arrows stay connected to the boxes.
Good to know
- The source says export_to_excalidraw can silently drop all text, so the skill advises against using it for shareable diagrams.
- The label shorthand does not work in exported files or .excalidraw files written from create_view.
- Connected shapes need at least about 60px between them, or arrows may overlap boxes.
- Large background rectangles that overlap connectable shapes can cause binding to misfire.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: Skills/excalidraw-diagrams/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to excalidraw-diagrams
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
excalidraw-diagrams: common questions
Does this skill draw diagrams by itself?
It gives the assistant guidance and a Python helper for Excalidraw diagrams. The inline preview workflow needs the Excalidraw MCP enabled.
How do I get a file I can open in Excalidraw?
Use the file output workflow, which runs scripts/generate_excalidraw.py to create a .excalidraw file. The source says the file can be opened by dragging it into excalidraw.com, the desktop app, or VS Code with the Excalidraw extension.
Why does text disappear in some diagrams?
The source says label text does not survive export, so text should be bound to shapes using the native format. The skill recommends the Python script for this.
How do I install excalidraw-diagrams?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is excalidraw-diagrams free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is excalidraw-diagrams safe to use?
It scores 61 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to excalidraw-diagrams?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
