Create Excalidraw diagrams through the MCP server: architecture views, flowcharts and system maps, with positions planned first. Use when the user asks for an Excalidraw or hand-drawn style diagram saved as a .excalidraw file.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Coding?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/andreibesleaga-coding-560d7f33)
---
name: excalidraw
description: "Create Excalidraw diagrams through the MCP server: architecture views, flowcharts and system maps, with positions planned first. Use when the user asks for an Excalidraw or hand-drawn style diagram saved as a .excalidraw file."
triggers: [excalidraw, whiteboard, visual diagram, hand-drawn diagram]
tags: [coding, architecture, visual, diagramming]
context_cost: medium
---
# Excalidraw Skill
## Goal
Create, edit, and manage Excalidraw diagrams programmatically using the `@cmd8/excalidraw-mcp` server. Generate architecture diagrams, flowcharts, system maps, and wireframes with the hand-drawn Excalidraw aesthetic.
## Prerequisites
- **MCP Server**: `excalidraw` must be configured in your MCP config (see `templates/core/MCP_CONFIG_TEMPLATE.json`).
- **Runtime**: Node.js 18+
- **File**: A `.excalidraw` file path must be specified (created automatically if it doesn't exist).
## Capabilities
### MCP Tools Available
| Tool | Purpose |
|---|---|
| `createNode` | Create a shape (rectangle, ellipse, diamond) with label text. Returns node ID |
| `createEdge` | Create an arrow connecting two nodes by ID or label |
| `deleteElement` | Remove a node or edge by ID or label |
| `getFullDiagramState` | Get markdown representation of the full diagram (nodes, edges, frames, colors) |
### Supported Diagram Types
- **Architecture Diagrams**: C4 Context, Container, Component views
- **Flowcharts**: Decision trees, process flows, SDLC workflows
- **System Maps**: Microservice topology, network diagrams
- **Wireframes**: UI layout sketches, page flows
- **Entity Relationships**: Database schema visualizations
- **Event Storming**: Domain event maps with sticky-note aesthetics
## Steps
1. **Plan the diagram structure**
- Use `WHITEBOARD_DESIGN_TEMPLATE.md` to pre-map geometry (X/Y grid)
- List all nodes (name, shape, color) and edges (source → target, label)
- Pre-calculate coordinates to avoid overlap — LLMs are poor at spatial arrangement
2. **Create nodes**
- Call `createNode` for each element with appropriate shape and position
- Group related nodes by color or frame
3. **Create edges**
- Call `createEdge` to connect nodes by ID or label
- Add edge labels for relationship descriptions
4. **Verify diagram**
- Call `getFullDiagramState` to review the complete diagram
- Check for missing connections, overlapping nodes, or unlabeled edges
5. **Sync back to text**
- Mirror structural changes into `PLAN.md` or `SYSTEM_ANALYSIS_TEMPLATE.md`
- Diagrams are not searchable by RAG — keep metadata in text
## Output Format
- `.excalidraw` file with the completed diagram
- Text-based summary of diagram structure in project documentation
## Usage Examples
### Create an architecture diagram
```
> "Create an Excalidraw architecture diagram for our microservices: API Gateway → Auth Service, User Service, Order Service. Save to docs/architecture.excalidraw"
```
### Visualize a database schema
```
> "Draw the database schema in Excalidraw showing Users, Orders, and Products tables with relationships"
```
### Create a flowchart
```
> "Create an Excalidraw flowchart for the CI/CD pipeline: Build → Test → Security Scan → Deploy → Smoke Test"
```
## Constraints
- Calculate node positions before creating elements; random placement gives unreadable diagrams.
- Mirror every structural change into the text documentation: diagrams are not searchable.
## Limits and safety
- Keep the `.excalidraw` path inside the project directory; do not overwrite an existing diagram without the human's yes.
- Put no secrets, internal hostnames or customer data in node labels.
- Check the final state with `getFullDiagramState` before presenting it, and update the text documentation to match.