Excalidraw Diagrams
Excalidraw is Nimbalyst's whiteboard-style diagram editor for creating flowcharts, architecture diagrams, system diagrams, and visual sketches.
STOP AFTER ONE PASS — Do Not Thrash
The single biggest failure mode with this skill is agents creating a diagram, capturing a screenshot, noticing minor cosmetic imperfections, then clearing and rebuilding the diagram two, three, or four times without being asked. This is the wrong behavior. The user sees every rebuild, and iterations the user did not ask for are a waste of their time and attention.
Follow these rules:
- One-shot by default. Build the diagram, capture a screenshot once, describe what you made, and stop. Do not iterate on visual polish unless the user explicitly asks for a change.
- Never use
excalidraw.clear_all followed by a rebuild as a way to "redo" the diagram. clear_all is only for user-requested rebuilds. If you just produced a diagram, looked at it, and feel like starting over, don't — stop and hand control back to the user.
- Minor imperfections are fine. Excalidraw is a whiteboard / hand-drawn-style tool. Slight overlaps, arrows that route imperfectly, labels that aren't perfectly centered, and asymmetric spacing are all acceptable and expected. Do not rebuild to fix these. Do not re-run
import_mermaid because the auto-layout isn't pixel-perfect.
- Only one screenshot per diagram. Capture once to verify the diagram exists and is roughly what you intended, then stop screenshotting. Repeated screenshots drive perfectionism loops.
- If something is actually broken, make a targeted fix — not a rebuild. Use
update_element, move_element, remove_element, or align_elements on the specific problem. Do not wipe and restart.
- "Good enough to convey the idea" is the bar. The diagram's job is to communicate structure or flow to a human reader. Once it does that, you are done. Do not keep polishing.
If you catch yourself about to call clear_all after just having built a diagram, or about to capture a second screenshot of the same diagram, stop. Report what you made and let the user decide whether changes are needed.
When to Use Excalidraw
- Flowcharts and process diagrams
- Architecture diagrams
- System design diagrams
- Sequence diagrams
- Mind maps
- Network diagrams
- User flow diagrams
- General visual diagrams and sketches
When NOT to Use Excalidraw
- Database schemas / Entity relationship diagrams - Use DataModelLM extension instead (creates
.datamodel files with Prisma schema)
File Format
- Extension:
.excalidraw
- Format: JSON-based Excalidraw format
- Location: Any directory in the workspace
Available MCP Tools
The Excalidraw extension provides these MCP tools for diagram manipulation:
Getting Information
excalidraw.get_elements - Get all elements in the diagram
Adding Elements
excalidraw.add_rectangle - Add a rectangle/box
excalidraw.add_arrow - Add a single arrow
excalidraw.add_arrows - Add multiple arrows at once
excalidraw.add_elements - Add multiple elements at once
excalidraw.add_frame - Add a frame (container for elements)
excalidraw.add_row - Add elements in a horizontal row
excalidraw.add_column - Add elements in a vertical column
Modifying Elements
excalidraw.update_element - Update an existing element
excalidraw.move_element - Move an element to new position
excalidraw.remove_element - Remove a single element
excalidraw.remove_elements - Remove multiple elements
Organization
excalidraw.align_elements - Align elements horizontally/vertically
excalidraw.distribute_elements - Distribute elements evenly
excalidraw.group_elements - Group elements together
excalidraw.set_elements_in_frame - Put elements into a frame
excalidraw.relayout - Automatically relayout elements
Special Features
excalidraw.import_mermaid - Convert Mermaid syntax to Excalidraw
excalidraw.clear_all - Clear all elements from the diagram
Workflow
- Create file - Create a new
.excalidraw file or target an existing one. The file does not need to be open in Nimbalyst.
- Use MCP tools - Pass the file path directly to the Excalidraw MCP tools. Nimbalyst mounts a hidden editor automatically; do not call
extension_test_open_file first because it creates and focuses a visible tab.
- Verify visually (once) - Use
mcp__nimbalyst__capture_editor_screenshot a single time to confirm the diagram rendered
- Stop - Report what you made and hand control back. Do not iterate on polish unless the user asks for changes. See "STOP AFTER ONE PASS" above.
Best Practices
- Use frames to group related elements
- Keep diagrams clean and readable
- Use consistent spacing and alignment
- Add arrows to show flow/relationships
- Use color sparingly for emphasis
Example: Creating a Flowchart
- Add rectangles for each step
- Add arrows connecting the steps
- Use
align_elements to align horizontally/vertically
- Use
distribute_elements for even spacing
1---2name: excalidraw3description: Create diagrams and visual drawings using Excalidraw (.excalidraw files). Use when the user wants flowcharts, architecture diagrams, system diagrams, sketches, or any visual diagram. For database schemas and entity relationship diagrams, use the DataModelLM extension instead.4---56# Excalidraw Diagrams78Excalidraw is Nimbalyst's whiteboard-style diagram editor for creating flowcharts, architecture diagrams, system diagrams, and visual sketches.910## STOP AFTER ONE PASS — Do Not Thrash1112The single biggest failure mode with this skill is agents creating a diagram, capturing a screenshot, noticing minor cosmetic imperfections, then clearing and rebuilding the diagram two, three, or four times without being asked. This is the wrong behavior. The user sees every rebuild, and iterations the user did not ask for are a waste of their time and attention.1314Follow these rules:15161. **One-shot by default.** Build the diagram, capture a screenshot once, describe what you made, and stop. Do not iterate on visual polish unless the user explicitly asks for a change.172. **Never use `excalidraw.clear_all` followed by a rebuild as a way to "redo" the diagram.** `clear_all` is only for user-requested rebuilds. If you just produced a diagram, looked at it, and feel like starting over, don't — stop and hand control back to the user.183. **Minor imperfections are fine.** Excalidraw is a whiteboard / hand-drawn-style tool. Slight overlaps, arrows that route imperfectly, labels that aren't perfectly centered, and asymmetric spacing are all acceptable and expected. Do not rebuild to fix these. Do not re-run `import_mermaid` because the auto-layout isn't pixel-perfect.194. **Only one screenshot per diagram.** Capture once to verify the diagram exists and is roughly what you intended, then stop screenshotting. Repeated screenshots drive perfectionism loops.205. **If something is actually broken, make a targeted fix — not a rebuild.** Use `update_element`, `move_element`, `remove_element`, or `align_elements` on the specific problem. Do not wipe and restart.216. **"Good enough to convey the idea" is the bar.** The diagram's job is to communicate structure or flow to a human reader. Once it does that, you are done. Do not keep polishing.2223If you catch yourself about to call `clear_all` after just having built a diagram, or about to capture a second screenshot of the same diagram, stop. Report what you made and let the user decide whether changes are needed.2425## When to Use Excalidraw2627- Flowcharts and process diagrams28- Architecture diagrams29- System design diagrams30- Sequence diagrams31- Mind maps32- Network diagrams33- User flow diagrams34- General visual diagrams and sketches3536## When NOT to Use Excalidraw3738- **Database schemas / Entity relationship diagrams** - Use DataModelLM extension instead (creates `.datamodel` files with Prisma schema)3940## File Format4142- **Extension**: `.excalidraw`43- **Format**: JSON-based Excalidraw format44- **Location**: Any directory in the workspace4546## Available MCP Tools4748The Excalidraw extension provides these MCP tools for diagram manipulation:4950### Getting Information51- `excalidraw.get_elements` - Get all elements in the diagram5253### Adding Elements54- `excalidraw.add_rectangle` - Add a rectangle/box55- `excalidraw.add_arrow` - Add a single arrow56- `excalidraw.add_arrows` - Add multiple arrows at once57- `excalidraw.add_elements` - Add multiple elements at once58- `excalidraw.add_frame` - Add a frame (container for elements)59- `excalidraw.add_row` - Add elements in a horizontal row60- `excalidraw.add_column` - Add elements in a vertical column6162### Modifying Elements63- `excalidraw.update_element` - Update an existing element64- `excalidraw.move_element` - Move an element to new position65- `excalidraw.remove_element` - Remove a single element66- `excalidraw.remove_elements` - Remove multiple elements6768### Organization69- `excalidraw.align_elements` - Align elements horizontally/vertically70- `excalidraw.distribute_elements` - Distribute elements evenly71- `excalidraw.group_elements` - Group elements together72- `excalidraw.set_elements_in_frame` - Put elements into a frame73- `excalidraw.relayout` - Automatically relayout elements7475### Special Features76- `excalidraw.import_mermaid` - Convert Mermaid syntax to Excalidraw77- `excalidraw.clear_all` - Clear all elements from the diagram7879## Workflow80811. **Create file** - Create a new `.excalidraw` file or target an existing one. The file does not need to be open in Nimbalyst.822. **Use MCP tools** - Pass the file path directly to the Excalidraw MCP tools. Nimbalyst mounts a hidden editor automatically; do not call `extension_test_open_file` first because it creates and focuses a visible tab.833. **Verify visually (once)** - Use `mcp__nimbalyst__capture_editor_screenshot` a single time to confirm the diagram rendered844. **Stop** - Report what you made and hand control back. Do not iterate on polish unless the user asks for changes. See "STOP AFTER ONE PASS" above.8586## Best Practices8788- Use frames to group related elements89- Keep diagrams clean and readable90- Use consistent spacing and alignment91- Add arrows to show flow/relationships92- Use color sparingly for emphasis9394## Example: Creating a Flowchart95961. Add rectangles for each step972. Add arrows connecting the steps983. Use `align_elements` to align horizontally/vertically994. Use `distribute_elements` for even spacing