packages/skills-catalog/skills/(tooling)/excalidraw-studio/SKILL.md
Generate Excalidraw diagrams from natural language descriptions. Outputs .excalidraw JSON files openable in Excalidraw. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", "generate an Excalidraw file", "draw an ER diagram", "create a sequence diagram", or "make a class diagram". Supports flowcharts, relationship diagrams, mind maps, architecture, DFD, swimlane, class, sequence, and ER diagrams. Can use icon libraries (AWS, GCP, etc.) when set up. Do NOT use for code architecture analysis (use the architecture skills), Mermaid diagram rendering (use mermaid-studio), or non-visual documentation (use docs-writer).
npx skillsauth add tech-leads-club/agent-skills excalidraw-studioInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate Excalidraw-format diagrams from natural language descriptions. Outputs .excalidraw JSON files that can be opened directly in Excalidraw (web, VS Code extension, or Obsidian plugin).
UNDERSTAND → CHOOSE TYPE → EXTRACT → GENERATE → SAVE
Analyze the user's description to determine:
Diagram type:
| User Intent | Diagram Type | Keywords | | -------------------------- | -------------------- | --------------------------------------------- | | Process flow, steps | Flowchart | "workflow", "process", "steps" | | Connections, dependencies | Relationship | "relationship", "connections", "dependencies" | | Concept hierarchy | Mind Map | "mind map", "concepts", "breakdown" | | System design | Architecture | "architecture", "system", "components" | | Data movement | Data Flow (DFD) | "data flow", "data processing" | | Cross-functional processes | Swimlane | "business process", "swimlane", "actors" | | Object-oriented design | Class Diagram | "class", "inheritance", "OOP" | | Interaction sequences | Sequence Diagram | "sequence", "interaction", "messages" | | Database design | ER Diagram | "database", "entity", "data model" |
Visual mode — decide upfront and apply consistently to all elements:
| Mode | roughness | fontFamily | When to use |
| ---------- | ----------- | ------------ | ---------------------------------------------------- |
| Sketch | 1 | 5 | Default — informal, approachable, Excalidraw-native |
| Clean | 0 | 2 | Executive presentations, formal specs |
| Mixed | zones: 0, shapes: 1 | 5 | Architecture diagrams (structural zones + sketchy shapes) |
Extract the key components based on diagram type. For each type, identify:
For detailed extraction guidelines per diagram type, read references/element-types.md.
CRITICAL: Read references/excalidraw-schema.md before generating your first diagram. It contains the correct element format, text container model, and binding system.
Key rules for generation:
Text inside shapes — Use boundElements on the shape and a separate text element with containerId. Never use a label shorthand:
[
{
"id": "step-1",
"type": "rectangle",
"x": 100, "y": 100, "width": 200, "height": 80,
"boundElements": [{ "type": "text", "id": "text-step-1" }]
},
{
"id": "text-step-1",
"type": "text",
"x": 130, "y": 128, "width": 140, "height": 24,
"text": "My Step", "originalText": "My Step",
"fontSize": 20, "fontFamily": 5,
"textAlign": "center", "verticalAlign": "middle",
"containerId": "step-1", "lineHeight": 1.25, "roundness": null
}
]
Arrow labels — Also use boundElements + separate text element with containerId. Never use a label shorthand on arrows:
[
{
"id": "arrow-1",
"type": "arrow",
"x": 100, "y": 150,
"points": [[0, 0], [200, 0]],
"boundElements": [{ "type": "text", "id": "text-arrow-1" }]
},
{
"id": "text-arrow-1",
"type": "text",
"x": 160, "y": 132, "width": 80, "height": 18,
"text": "sends data", "originalText": "sends data",
"fontSize": 14, "fontFamily": 5,
"textAlign": "center", "verticalAlign": "middle",
"containerId": "arrow-1", "lineHeight": 1.25, "roundness": null
}
]
Arrow bindings — Use startBinding/endBinding (not start/end). Connected shapes must list the arrow in their boundElements:
{
"id": "shape-1",
"boundElements": [
{ "type": "text", "id": "text-shape-1" },
{ "type": "arrow", "id": "arrow-1" }
]
}
{
"id": "arrow-1",
"type": "arrow",
"startBinding": { "elementId": "shape-1", "focus": 0, "gap": 1 },
"endBinding": { "elementId": "shape-2", "focus": 0, "gap": 1 }
}
Element order for z-index — Always declare shapes first, arrows second, text elements last. This guarantees text renders on top and is never obscured by arrows or other shapes.
Positioning — Use grid-aligned coordinates (multiples of 20px when gridSize: 20). Leave 200-300px horizontal gap, 100-150px vertical gap between elements.
Unique IDs — Every element must have a unique id. Use descriptive IDs like "step-1", "decision-valid", "arrow-1-to-2", "text-step-1".
Colors — Use a consistent palette:
| Role | Color | Hex |
|------|-------|-----|
| Primary entities | Light blue | #a5d8ff |
| Process steps | Light green | #b2f2bb |
| Important/Central | Yellow | #ffd43b |
| Warnings/Errors | Light red | #ffc9c9 |
| Secondary | Cyan | #96f2d7 |
| Default stroke | Dark | #1e1e1e |
Save as <descriptive-name>.excalidraw
Provide a summary:
Created: user-workflow.excalidraw
Type: Flowchart
Elements: 7 shapes, 6 arrows, 1 title
Total: 14 elements
To view:
1. Visit https://excalidraw.com → Open → drag and drop the file
2. Or use the Excalidraw VS Code extension
3. Or open in Obsidian with the Excalidraw plugin
Pre-built templates are available in assets/ for quick starting points. Use these when the diagram type matches — they provide correct structure and styling:
| Template | File |
| ---------------- | ------------------------------------------------------ |
| Flowchart | assets/flowchart-template.json |
| Relationship | assets/relationship-template.json |
| Mind Map | assets/mindmap-template.json |
| Data Flow (DFD) | assets/data-flow-diagram-template.json |
| Swimlane | assets/business-flow-swimlane-template.json |
| Class Diagram | assets/class-diagram-template.json |
| Sequence Diagram | assets/sequence-diagram-template.json |
| ER Diagram | assets/er-diagram-template.json |
Read a template when creating that diagram type for the first time. Use its structure as a base, then modify elements to match the user's request.
For professional architecture diagrams with service icons (AWS, GCP, Azure, etc.), icon libraries can be set up. Read references/icon-libraries.md when:
| Diagram Type | Recommended | Maximum | | --------------------- | ----------- | ------- | | Flowchart steps | 3-10 | 15 | | Relationship entities | 3-8 | 12 | | Mind map branches | 4-6 | 8 | | Sub-topics per branch | 2-4 | 6 |
If the user's request exceeds maximum, suggest breaking into multiple diagrams:
"Your request includes 15 components. For clarity, I recommend: (1) High-level architecture diagram with 6 main components, (2) Detailed sub-diagrams for each subsystem. Want me to start with the high-level view?"
fontFamily: 5 (Excalifont) for hand-drawn consistency. Fallback to 1 (Virgil) if 5 is not supported.opacity: 35, strokeStyle: "dashed", roughness: 0) as the first elements in the array to create visual grouping regions. See references/excalidraw-schema.md → Background Zones.label: { text: "..." } shorthand on shapes or arrows — not supported by the Excalidraw parsertext directly on shape elements without containerIdstart/end for arrow bindings — use startBinding/endBinding with elementId/focus/gapboundElements arraysoriginalText, lineHeight, autoResize, or backgroundColor: "transparent" from text elements inside containersangle, strokeStyle, opacity, groupIds, frameId, index, isDeleted, seed, version, versionNonce, updated, link, locked) — elements will not render"files": {} at the top level of the JSONroundness: { "type": 3 } on ellipses — ellipses must use roundness: nulllastCommittedPoint, startArrowhead, endArrowhead on arrowsBefore delivering the diagram, verify:
angle, strokeStyle, opacity, groupIds, frameId, index, isDeleted, link, locked, seed, version, versionNonce, updatedindex values are assigned in order ("a0", "a1", …) with text elements getting higher values than shapes/arrows"files": {}boundElements + separate text element with containerIdcontainerId, originalText, lineHeight: 1.25, autoResize: true, roundness: null, backgroundColor: "transparent"startBinding/endBinding (with elementId, focus, gap) when connecting shapes, plus lastCommittedPoint: null, startArrowhead: null, endArrowhead: "arrow"boundElements arraysroundness: null (not { "type": 3 })| Issue | Solution |
| ----------------------------- | --------------------------------------------------------------------------------------------- |
| Text not showing in shapes | Use boundElements + separate text element with containerId, originalText, lineHeight |
| Text hidden behind arrows | Move text elements to end of elements array (after all arrows) |
| Arrows don't move with shapes | Use startBinding/endBinding with elementId, focus: 0, gap: 1 |
| Shape not moving with arrows | Add the arrow to the shape's boundElements array |
| Elements overlap | Increase spacing between coordinates |
| Text doesn't fit | Increase shape width or reduce font size |
| Too many elements | Break into multiple diagrams |
| Colors look inconsistent | Define color palette upfront, apply consistently |
tools
Reviews a GitHub pull request and posts inline comments plus one consolidated summary, adapting to any codebase by discovering the project's own test runner, requirement specs, and architecture conventions before running six specialized review agents in parallel. Stack-agnostic across language and framework; targets GitHub PRs via the gh CLI. Use when the user says "review PR 128", "review this PR", "code review this PR", or "check this pull request". Do NOT use for creating PRs or responding to review comments (use gh-address-comments), or debugging failing CI checks (use gh-fix-ci).
development
Opinionated Rails conventions: rich models, concerns, CRUD-everything, state-as-records, minimal dependencies, Minitest with fixtures. Load this skill BEFORE any code-level thinking, not only before editing a file. It is required the moment a task touches Rails code in ANY way: designing or even just discussing a data model, schema, migration, entity, association, field, validation, class, or method name; writing, planning, reviewing, analyzing, testing, debugging, or refactoring; or proposing any model, table, column, route, or code snippet inline in chat. If you are about to name a model or sketch a column you are already in scope, even in an exploratory back-and-forth where no file is written yet. Do not let a "we're just discussing" framing defer it. Do NOT use for non-Rails backends, NestJS, or general architecture (use nestjs-modular-monolith or coding-guidelines).
testing
Feature planning and implementation with 4 adaptive phases — Specify, Design, Tasks, Execute. Auto-sizes depth by complexity. Creates atomic tasks with verification criteria, atomic git commits, and requirement traceability. Features an independent Verifier (author != verifier, evidence-or-zero), persistent decision log (STATE.md), and test-coverage-matrix-driven tests, plus a self-improving lessons layer that turns verification failures into reusable project-local guidance. Stack-agnostic. Use when (1) Planning features (requirements, design, task breakdown), (2) Implementing with verification and atomic commits, (3) Validating or verifying an implementation against a spec. Triggers on "specify feature", "discuss feature", "design", "tasks", "implement", "validate", "verify work", "UAT", "record decision", "pause work", "resume work". Do NOT use for architecture decomposition analysis (use architecture skills) or technical design docs (use create-technical-design-doc).
development
Generative Engine Optimization (GEO) specialist — the technical, on-page publishing work that makes a given page or site discoverable, understandable, trustworthy, quotable, and fresh for AI answer engines (Google AI Overviews, ChatGPT Search, Bing Copilot, Perplexity). Use when asked to 'optimize this page/site for GEO', 'optimize for AI search / answer engines', 'get my page cited by ChatGPT/Perplexity', 'improve AI visibility/citability', 'write an llms.txt', 'add citation-ready structure or schema for AI answers', 'otimizar para busca com IA', or to audit/create/improve a codebase for generative search. Do NOT use for AI-driven SEO content strategy or programmatic pages at scale (use ai-seo), classic keyword/SERP ranking (use seo), accessibility (use web-accessibility), or multi-area site audits (use web-quality-audit).