excalidraw
Generate Excalidraw diagrams (.excalidraw JSON files) for whiteboarding, flowcharts, architecture diagrams, sequence diagrams, mind maps, wireframes, and org charts. Use when user requests diagrams, visual documentation, system architecture visualization, process flows, or any hand-drawn style diagram. Triggers on requests mentioning Excalidraw, diagram creation, flowcharts, architecture diagrams, sequence diagrams, wireframes, or visual documentation.
What this skill does
# Excalidraw Diagram Generation
Generate `.excalidraw` JSON files that open directly in Excalidraw. These diagrams have a distinctive hand-drawn aesthetic.
## Quick Start
Minimal valid file:
```json
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [],
"appState": { "viewBackgroundColor": "#ffffff" },
"files": {}
}
```
## Workflow
1. Identify diagram type (flowchart, architecture, sequence, mind map, wireframe, org chart)
2. Plan element layout with consistent spacing (use 20px grid)
3. Generate elements with unique IDs and proper bindings
4. Write complete JSON to `.excalidraw` file
## Element Patterns
### Shape with Label
Always bind text to container bidirectionally:
```json
// Rectangle
{
"type": "rectangle",
"id": "box_1",
"x": 100, "y": 100, "width": 150, "height": 60,
"backgroundColor": "#a5d8ff",
"boundElements": [{ "id": "text_1", "type": "text" }],
...baseProps
}
// Bound text
{
"type": "text",
"id": "text_1",
"containerId": "box_1",
"textAlign": "center",
"verticalAlign": "middle",
...textProps
}
```
### Connected Arrow
Update both arrow and shapes:
```json
// Arrow
{
"type": "arrow",
"id": "arrow_1",
"points": [[0, 0], [150, 0]],
"startBinding": { "elementId": "box_1", "fixedPoint": [1.0, 0.5001], "mode": "orbit" },
"endBinding": { "elementId": "box_2", "fixedPoint": [0.0, 0.5001], "mode": "orbit" },
"endArrowhead": "arrow",
...baseProps
}
// Both shapes need boundElements updated
"boundElements": [{ "id": "arrow_1", "type": "arrow" }]
```
## Diagram-Specific Patterns
**Flowchart:** Ellipse (start/end), Rectangle (process), Diamond (decision), vertical flow with 70px gaps
**Sequence Diagram:** Rectangles (actors) at top, dashed vertical lines (lifelines), horizontal arrows (messages)
**Architecture:** Rectangles with rounded corners, group related components, use frames for boundaries
**Mind Map:** Central ellipse, radiating lines to topic rectangles, organic layout
**Org Chart:** Rectangles with hierarchy, lines (not arrows) for connections
**Wireframe:** Rectangles for UI sections, text placeholders, simple shapes for buttons/forms
## Critical Rules
1. **Bidirectional bindings** - When arrow connects to shape, update BOTH:
- Arrow's `startBinding`/`endBinding`
- Shape's `boundElements` array
2. **fixedPoint precision** - Use `0.5001` not `0.5` to avoid floating point issues
3. **Unique IDs** - Every element needs unique `id`
4. **Calculate width/height** for lines/arrows from points array
5. **Required base properties** for every element:
```
id, type, x, y, width, height, angle, strokeColor, backgroundColor,
fillStyle, strokeWidth, strokeStyle, roughness, opacity, roundness,
seed, version, versionNonce, isDeleted, updated, groupIds, frameId,
boundElements, link, locked, index
```
## Common Values
**Colors:**
- Stroke: `#1e1e1e` (black), `#e03131` (red), `#2f9e44` (green), `#1971c2` (blue)
- Background: `#a5d8ff` (blue), `#b2f2bb` (green), `#ffec99` (yellow), `#ffc9c9` (red), `#d0bfff` (purple)
**Defaults:**
- `strokeWidth`: 2
- `roughness`: 1 (hand-drawn), 0 (smooth for text)
- `opacity`: 100
- `fontFamily`: 5 (Excalifont)
- `fontSize`: 20
- `seed`: any random integer
- `version`: 1, `versionNonce`: 0
- `index`: "a0", "a1", "a2"...
## Element Types
| Type | Use For |
|------|---------|
| `rectangle` | Process, container, UI element |
| `ellipse` | Start/end, central node |
| `diamond` | Decision point |
| `line` | Connection without arrow |
| `arrow` | Directional flow |
| `text` | Labels, standalone text |
| `frame` | Grouping boundary |
## When to Use Excalidraw
- Hand-drawn aesthetic desired
- Interactive diagram editing needed
- Whiteboard-style brainstorming
- Presentations and documentation with visual appeal
- When visual style matters more than precision
- Team collaboration on diagrams
## Reference
See [references/format-spec.md](references/format-spec.md) for complete element schemas, all property values, and detailed examples.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.