rbrown101010/codex-marketing-skills/excalidraw-diagrams
Claude Code and agent skill by rbrown101010/codex-marketing-skills
- community
Checking that the SKILL.md file is still in the repository.
Create polished Excalidraw diagrams from text descriptions. Use when the user asks for a diagram, flowchart, architecture diagram, decision tree, process flow, data flow, system overview, or similar visual explanation, or says "draw this", "diagram this", "visualize this", or "make a chart". Produces styled `.excalidraw` files with consistent colors and can export a shareable excalidraw.com URL.
Install
npx vskill@latest install rbrown101010/codex-marketing-skills/excalidraw-diagramsSKILL.md
Excalidraw Diagrams
Use excalidraw-cli to turn structured diagram plans into .excalidraw files. The published CLI accepts Excalidraw JSON elements, not a custom DSL, so any shorthand notation is only for planning. The executable artifact is always a JSON elements file plus the generated .excalidraw.
Prerequisites
excalidraw-climust be onPATH.- When you need exact field names or supported element properties, run
excalidraw-cli referenceorexcalidraw-cli ref --raw.
Triggering
Use this skill when the user wants:
- A flowchart, architecture diagram, decision tree, data flow, or process map
- A system or workflow visualized instead of explained in prose
- A polished Excalidraw artifact they can keep editing
Working Model
- Reduce the request into nodes, arrows, labels, and layout direction.
- If helpful, sketch the structure in shorthand first:
(Start)= ellipse[Step]= rectangle{Decision?}= diamond[[Store]]= storage/data node->,-->,-> "label" ->= connectors
- Translate that plan into Excalidraw JSON elements in an
elements.jsonfile. - For multiple diagrams, charts, or visual explanations, use the default container-grid canvas pattern below unless the user specifies a different layout.
- Present multiple charts in one combined editable Excalidraw canvas unless the user asks for separate files.
- If separate chart files are useful or already created, also create a single combined
.excalidrawcanvas that contains all charts.
- Generate the diagram with
excalidraw-cli create elements.json -o output.excalidraw. - Generate a local preview image for the
.excalidrawfile using Quick Look when available:
qlmanage -t -s 1600 -o <preview_dir> output.excalidraw- This typically produces
output.excalidraw.png.
- Export a browser-openable share link with
excalidraw-cli export output.excalidraw. - Return the
.excalidrawpath, the preview image path, and the shareable URL.
CLI Workflow
Core commands:
Important constraints:
createexpects Excalidraw JSON elements, not Mermaid and not the shorthand DSL above.- The published CLI does not render local PNG files itself. On macOS, prefer Quick Look via
qlmanageto generate preview images from the resulting.excalidrawfile. - If Quick Look is unavailable, still return the
.excalidrawfile and the share URL, and say that a local preview image could not be generated in this environment. - Do not delete generated files unless the user asks or you are working in a temporary scratch location.
Styling Defaults
Every diagram should look intentional. Apply a consistent palette unless the user asks for something else:
- Start/info:
#a5d8ff - Success/positive path:
#b2f2bb - Important/configuration:
#ffec99 - Decisions/warnings/errors:
#ffc9c9 - Storage/external systems/alternate path:
#d0bfff
Use these heuristics:
- Action steps:
fillStyle: "hachure" - States and outcomes:
fillStyle: "solid" - Error or debug paths: dashed arrows or stronger red/pink accents
- Keep rounded, hand-drawn defaults unless the user asks for a rigid style
Default Multi-Diagram Layout
When the user asks for multiple diagrams, many charts, a visual explainer, or a set of graphics, default to one large editable Excalidraw canvas laid out as a clean grid of contained diagram panels.
Use this pattern unless the user explicitly asks for something different:
- One
.excalidrawfile as the source of truth. - Multiple charts must be presented together in one combined canvas by default.
- A large grid canvas, typically 3 columns when there are many panels.
- Each diagram sits inside an outer light neutral container rectangle.
- Each container has a short title at the top left, optional one-line subtitle, and a thin divider line below the header.
- Keep generous padding inside each panel.
- Use consistent panel dimensions across the grid when possible.
- Put each mini-diagram, chart, flow, comparison, or decision tree inside its own container.
- Use the same color palette across all panels so the full canvas feels like one system.
- Prefer useful teaching diagrams over decorative diagrams: capability maps, comparison matrices, workflows, decision trees, stacks, loops, ladders, demo maps, and prompt anatomy charts.
- Keep labels short and readable. Split dense ideas into more nodes instead of forcing long text into one shape.
- If the user asks for "a ton of graphics" or similar, make many useful panels on one canvas rather than many disconnected files.
Good default panel structure:
For grid placement, use a predictable coordinate system such as:
- Panel width: 1450
- Panel height: 900
- Gap: 120
- Start x/y: 80, 80
- Column x:
80 + column * (1450 + 120) - Row y:
80 + row * (900 + 120)
Element Conventions
- Put a
cameraUpdateelement first and keep it 4:3, for example1200x900. - Prefer the CLI's
labelshorthand onrectangle,ellipse,diamond, andarrowelements instead of manually constructing bound text elements. - Use stable IDs so arrows can bind cleanly to shapes.
- Bind arrows with
startBindingandendBinding. - Fixed-point helpers:
- Right edge:
[1, 0.5] - Left edge:
[0, 0.5] - Top edge:
[0.5, 0] - Bottom edge:
[0.5, 1] - Use top-to-bottom layouts for flows and left-to-right layouts for architecture unless the user signals otherwise.
Minimal JSON Pattern
Use this as a starting point and expand it to match the request:
Diagram Guidance
Prefer one of these patterns:
- Flowchart: stacked nodes, labeled yes/no arrows from diamonds
- Architecture: left-to-right services, stores, and external systems with protocol labels
- Decision tree: diamonds at branch points, short outcome labels
- Data flow: inputs, transforms, stores, and outputs with directional arrows
For large diagrams:
- Use a light background rectangle with low opacity to group zones
- Keep labels short
- Split dense concepts into multiple nodes instead of multiline labels
Output Expectations
- The
.excalidrawfile is the source of truth. - By default, also generate a preview image from the
.excalidrawfile when the environment supports it. - By default, also export a URL with
excalidraw-cli exportso the user can open the diagram in Excalidraw quickly. - When multiple diagrams or charts are created, always create and present one combined editable
.excalidrawcanvas containing all charts, with a preview image and share URL. - If individual diagram files are also created, provide links to every individual artifact, but make the combined canvas the primary deliverable.
- When more than one diagram file is created, also create a simple Markdown index file that links to the combined canvas, all individual diagram files, preview images, and share URLs, then include that index link in the final response.
- In the final response, include:
- a rendered image preview using Markdown image syntax when a preview file exists
- a clickable file path to the
.excalidrawfile - a clickable file path to the preview image
- the excalidraw.com share/open URL
- If the user asks for a sequence diagram, Gantt chart, pie chart, or bar chart, say this tool is a poor fit and suggest Mermaid instead.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/excalidraw-diagrams/SKILL.md
Popularity
- Repository stars
- 73
- Repository forks
- 18
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rbrown101010/codex-marketing-skills/excalidraw-diagrams)