Skip to content
Productivity
Skill

/excalidraw

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.

From plugin
nimbalyst
2.1k16 skills3 agents54 commands3 MCP

Claude Code

$ npx -y skills add nimbalyst/nimbalyst --skill excalidraw --agent claude-code

SKILL.md

excalidraw.SKILL.md
name: excalidraw
description: 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.

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:

1. **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. 2. **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. 3. **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. 4. **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. 5. **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. 6. **"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

1. **Create file** - Create a new `.excalidraw` file or target an existing one. The file does not need to be open in Nimbalyst. 2. **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. 3. **Verify visually (once)** - Use `mcp__nimbalyst__capture_editor_screenshot` a single time to confirm the diagram rendered 4. **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.

Diagrams for the Wiki

When the diagram is for a page in the Wiki (a Team or Personal wiki page), the diagram must be a page too: teammates cannot open a file on this computer, so never link an `.excalidraw` path from a page. Create the page with `createSharedDoc` (`documentType: 'excalidraw'`, under the page it explains), then pass its `uri` (`collab://...`) as `filePath` to the tools above; they edit the shared page directly. An existing `.excalidraw` file is copied in with `importFileToPages`. Link the page by the `link` the tool returns. A drawing for yourself can be a Personal page (`section: 'personal'`); the drawing tools edit Team pages only, so build it in a file and copy it in with `importFileToPages`.

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

1. Add rectan

Read more
@nimbalyst
Ships withnimbalyst

Nimbalyst - The open-source visual workspace for Claude Code, Codex, and OpenCode. Run multiple coding agents in parallel, edit their work visually in markdown, mockups, and diagrams, and track tasks. Free, MIT-licensed desktop app for macOS, Windows, Linux, with mobile companion for iOS and Android.

2.1k16 skills3 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.1k
Star history of nimbalyst/nimbalyst on GitHub, a chart by star-history.com

Other skills on nimbalyst.

animation

animation

Author animated technical explainer diagrams as .anim.json files for Nimbalyst's Animation editor. Use when the user wants to…

@nimbalyst@nimbalystInstall Skill
canvas

canvas

Author Nimbalyst Project Canvas boards (.canvas files) — an infinite canvas whose cards are live editors for real workspace files…

@nimbalyst@nimbalystInstall Skill
datamodellm

datamodellm

Create visual data models for database schemas using Nimbalyst's DataModelLM editor. Use when the user wants to design a data…

@nimbalyst@nimbalystInstall Skill
git-commit

git-commit

Create git commits using Nimbalyst's interactive commit proposal widget. ONLY use when the user explicitly clicks "Commit with…

@nimbalyst@nimbalystInstall Skill
extension-development

extension-development

Build, install, and hot-reload Nimbalyst extensions using MCP tools. Use when developing, testing, or iterating on Nimbalyst…

@nimbalyst@nimbalystInstall Skill
feedback-intake

feedback-intake

Help the user file a bug report or feature request for Nimbalyst. Activates when the user opens the in-app feedback flow or runs…

@nimbalyst@nimbalystInstall Skill

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about excalidraw.

Which coding agents can use excalidraw?
excalidraw installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.