xiaohongshu
xiaohongshu
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.
Full skill instructions
Create professional flowcharts and diagrams as Excalidraw files that can be opened in Excalidraw.
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
Identify from the user's description:
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 |
| 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 |
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
Tell the user:
(Start) -> [Initialize] -> [Process Data] -> [Save Results] -> (End)
(Start) -> [Receive Request] -> {Authenticated?}
{Authenticated?} -> "yes" -> [Process Request] -> (Success)
{Authenticated?} -> "no" -> [Return 401] -> (End)
(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)
(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)
[API Request] -> {Cache Hit?}
{Cache Hit?} -> "yes" -> [[Read Cache]] -> [Return Data]
{Cache Hit?} -> "no" -> [[Query Database]] -> [[Update Cache]] -> [Return Data]
-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 outputExample with options:
npx @swiftlysingh/excalidraw-cli create --inline "[A] -> [B] -> [C]" --direction LR --spacing 80 -o horizontal-flow.excalidraw
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.
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]
}
| Feature | DOT Syntax | Maps To |
|---|---|---|
| Rectangle | shape=box or shape=rect | [Label] |
| Diamond | shape=diamond | {Label} |
| Ellipse | shape=ellipse or shape=circle | (Label) |
| Database | shape=cylinder | [[Label]] |
| Direction | rankdir=TB|BT|LR|RL | @direction |
| Edge labels | [label="text"] | -> "text" -> |
| Dashed edges | [style=dashed] | --> |
| Colors | [fillcolor="..." color="..."] | Node styling |
# From file (auto-detected by .dot or .gv extension)
npx @swiftlysingh/excalidraw-cli create diagram.dot -o output.excalidraw
# Inline DOT
npx @swiftlysingh/excalidraw-cli create --format dot --inline "digraph { A -> B -> C }" -o output.excalidraw
Include images as flow elements:
(Start) ->  -> [Process] -> (End)
Place images at specific positions:
@image background.png at 0,0
@image logo.png near (Start) top-right
(Start) -> [Process] -> (End)
Attach small icons/badges to nodes:
[Deploy to Production]
@decorate checkmark.png top-right
[Review Required]
@decorate warning.png top-left
Decoration anchors: top, bottom, left, right, top-left, top-right, bottom-left, bottom-right
Use a library of reusable stickers:
@library ./assets/stickers
@sticker success at 100,100
@sticker warning near (Error) top-right
Distribute images randomly across the canvas:
@scatter confetti.png count:10
@scatter star.png count:5 width:20 height:20
[Client Request] -> [API Gateway] -> {Auth Valid?}
{Auth Valid?} -> "yes" -> [Route to Service] -> [[Database]] -> [Response]
{Auth Valid?} -> "no" -> [401 Unauthorized]
(Push) -> [Build] -> [Test] -> {Tests Pass?}
{Tests Pass?} -> "yes" -> [Deploy Staging] -> {Manual Approval?}
{Manual Approval?} -> "yes" -> [Deploy Production] -> (Done)
{Manual Approval?} -> "no" -> (Cancelled)
{Tests Pass?} -> "no" -> [Notify Team] -> (Failed)
(Start) -> [Enter Details] -> {Email Valid?}
{Email Valid?} -> "no" -> [Show Error] -> [Enter Details]
{Email Valid?} -> "yes" -> {Password Strong?}
{Password Strong?} -> "no" -> [Show Password Requirements] -> [Enter Details]
{Password Strong?} -> "yes" -> [[Save to Database]] -> [Send Verification Email] -> (Success)
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience