excalidraw-flowchart
БесплатноБез исполняемых скриптовНе проверенCreate Excalidraw flowcharts from descriptions. Use when user asks to "create a flowchart", "draw a diagram", "visualize a process", "make a flow diagram"…
от sundial-org★ 676 звёзд на GitHubОб этом скилле
Excalidraw Flowchart Skill
Create professional flowcharts and diagrams as Excalidraw files that can be opened in Excalidraw.
When to Use This Skill
- User asks to create a flowchart or diagram
- User wants to visualize a process or workflow
- User needs an architecture diagram
- User mentions "excalidraw" or "flow diagram"
- User wants to document decision trees
Prerequisites
The @swiftlysingh/excalidraw-cli tool must be installed:
npm install -g @swiftlysingh/excalidraw-cli
Or use via npx (no installation needed):
npx @swiftlysingh/excalidraw-cli create --inline "DSL" -o output.excalidraw
How to Create a Flowchart
Step 1: Analyze the Request
Identify from the user's description:
- What are the main steps/nodes?
- What are the decision points?
- What is the flow direction?
- Are there any loops or branches?
Step 2: Write the DSL
Use this DSL syntax to describe the flowchart:
| Syntax | Element | Use For |
|---|---|---|
[Label] |
Rectangle | Process steps, actions |
{Label?} |
Diamond | Decisions, conditionals |
(Label) |
Ellipse | Start/End points |
Label |
Database | Data storage |
![path] |
Image | Inline images |
 |
Sized Image | Images with explicit dimensions |
-> |
Arrow | Connections |
-> "text" -> |
Labeled Arrow | Connections with labels |
--> |
Dashed Arrow | Optional/alternative paths |
DSL Directives
| Directive | Description | Example |
|---|---|---|
@direction |
Set flow direction | @direction LR |
@spacing |
Set node spacing | @spacing 60 |
@image |
Position image | @image logo.png at 100,50 |
@decorate |
Attach decoration to node | @decorate icon.png top-right |
@sticker |
Add sticker from library | @sticker checkmark at 200,100 |
@library |
Set sticker library path | @library ./assets/stickers |
@scatter |
Scatter images on canvas | @scatter star.png count:5 |
Step 3: Generate the File
Run the CLI to create the .excalidraw file:
npx @swiftlysingh/excalidraw-cli create --inline "YOUR_DSL_HERE" -o flowchart.excalidraw
Or for multi-line DSL, use a heredoc:
npx @swiftlysingh/excalidraw-cli create --inline "$(cat <<'EOF'
(Start) -> [Step 1] -> {Decision?}
{Decision?} -> "yes" -> [Step 2] -> (End)
{Decision?} -> "no" -> [Step 3] -> [Step 1]
EOF
)" -o flowchart.excalidraw
Step 4: Inform the User
Tell the user:
- The file was created at the specified path
- They can open it in Excalidraw (https://excalidraw.com) via File > Open
- They can edit it further in Excalidraw if needed
DSL Examples
Simple Linear Flow
(Start) -> [Initialize] -> [Process Data] -> [Save Results] -> (End)
Decision Tree
(Start) -> [Receive Request] -> {Authenticated?}
{Authenticated?} -> "yes" -> [Process Request] -> (Success)
{Authenticated?} -> "no" -> [Return 401] -> (End)
Loop/Retry Pattern
(Start) -> [Attempt Operation] -> {Success?}
{Success?} -> "yes" -> [Continue] -> (End)
{Success?} -> "no" -> {Retry Count < 3?}
{Retry Count < 3?} -> "yes" -> [Increment Counter] -> [Attempt Operation]
{Retry Count < 3?} -> "no" -> [Log Failure] -> (Error)
Multi-Branch Flow
(User Input) -> {Input Type?}
{Input Type?} -> "text" -> [Parse Text] -> [Process]
{Input Type?} -> "file" -> [Read File] -> [Process]
{Input Type?} -> "url" -> [Fetch URL] -> [Process]
[Process] -> [Output Result] -> (Done)
With Database
[API Request] -> {Cache Hit?}
{Cache Hit?} -> "yes" -> Read Cache -> [Return Data]
{Cache Hit?} -> "no" -> Query Database -> Update Cache -> [Return Data]
CLI Options
-o, --output <file>- Output file path (default: flowchart.excalidraw)-f, --format <type>- Input format: dsl, json, dot (default: auto-detected)-d, --direction <TB|BT|LR|RL>- Flow direction (default: TB = top to bottom)-s, --spacing <number>- Node spacing in pixels (default: 50)--inline <dsl>- Inline DSL/DOT string--stdin- Read input from stdin--verbose- Verbose output
Example with options:
npx @swiftlysingh/excalidraw-cli create --inline "[A] -> [B] -> [C]" --direction LR --spacing 80 -o horizontal-flow.excalidraw
DOT/Graphviz Format (New in v1.1.0)
The CLI now supports DOT/Graphviz format for creating diagrams. This is useful when working with existing DOT files or when you prefer the DOT syntax.
DOT Syntax
digraph {
rankdir=LR
start [shape=ellipse label="Start"]
process [shape=box label="Process Data"]
decision [shape=diamond label="Valid?"]
end [shape=ellipse label="End"]
start -> process
process -> decision
decision -> end [label="yes"]
decision -> process [label="no" style=dashed]
}
Supported DOT Features
| Feature | DOT Syntax | Maps To |
|---|---|---|
| Rectangle | shape=box or shape=rect |
`[ |
Установить excalidraw-flowchart в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл excalidraw-flowchart?
Create Excalidraw flowcharts from descriptions. Use when user asks to "create a flowchart", "draw a diagram", "visualize a process", "make a flow diagram", "architecture diagram", or discusses workflow/process visualization. Supports DSL, DOT/Graphviz, and JSON formats.
Как установить скилл excalidraw-flowchart?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл excalidraw-flowchart запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic