Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问许可证需确认审计提醒

excalidraw-flowchartexcalidraw flowchart 命令行

Agent Skill

excalidraw-flowchart 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

22,666

周安装

590

GitHub Stars

3

下载量

5,965
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:excalidraw-flowchart(excalidraw flowchart 命令行)
来源仓库:https://github.com/swiftlysingh/toolbox
仓库路径:skills/excalidraw-flowchart
安装命令:
npx skills add https://github.com/swiftlysingh/toolbox --skill 'Excalidraw Flowchart'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/swiftlysingh/toolbox --skill 'Excalidraw Flowchart'

简介

excalidraw-flowchart 用于创建专业的流程图与架构图,输出为 Excalidraw 格式。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要可视化工作流、系统交互或决策路径时使用。
  • 支持 DSL 语法输入,可通过命令行工具直接生成 .excalidraw 文件。
  • 使用前需确保 @swiftlysingh/excalidraw-cli 已安装或通过 npx 调用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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:

SyntaxElementUse For
[Label]RectangleProcess steps, actions
{Label?}DiamondDecisions, conditionals
(Label)EllipseStart/End points
[[Label]]DatabaseData storage
![path]ImageInline images
![path](WxH)Sized ImageImages with explicit dimensions
->ArrowConnections
-> "text" ->Labeled ArrowConnections with labels
-->Dashed ArrowOptional/alternative paths

DSL Directives

DirectiveDescriptionExample
@directionSet flow direction@direction LR
@spacingSet node spacing@spacing 60
@imagePosition image@image logo.png at 100,50
@decorateAttach decoration to node@decorate icon.png top-right
@stickerAdd sticker from library@sticker checkmark at 200,100
@librarySet sticker library path@library./assets/stickers
@scatterScatter 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:

  1. The file was created at the specified path
  2. They can open it in Excalidraw (https://excalidraw.com) via File > Open
  3. 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

FeatureDOT SyntaxMaps To
Rectangleshape=box or shape=rect[Label]
Diamondshape=diamond{Label}
Ellipseshape=ellipse or shape=circle(Label)
Databaseshape=cylinder[[Label]]
Direction`rankdir=TB\BT\LR\RL`@direction
Edge labels[label="text"]-> "text" ->
Dashed edges[style=dashed]-->
Colors[fillcolor="..." color="..."]Node styling

Using DOT Files

# 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

Images and Decorations (New in v1.1.0)

Image Nodes

Include images as flow elements:

(Start) -> ![logo.png](100x50) -> [Process] -> (End)

Positioned Images

Place images at specific positions:

@image background.png at 0,0
@image logo.png near (Start) top-right

(Start) -> [Process] -> (End)

Node Decorations

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

Sticker Library

Use a library of reusable stickers:

@library ./assets/stickers
@sticker success at 100,100
@sticker warning near (Error) top-right

Scatter Images

Distribute images randomly across the canvas:

@scatter confetti.png count:10
@scatter star.png count:5 width:20 height:20

Common Patterns

API Request Flow

[Client Request] -> [API Gateway] -> {Auth Valid?}
{Auth Valid?} -> "yes" -> [Route to Service] -> [[Database]] -> [Response]
{Auth Valid?} -> "no" -> [401 Unauthorized]

CI/CD Pipeline

(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)

User Registration

(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)

Tips

  1. Keep labels concise - Use short, action-oriented text
  2. End decisions with? - Makes it clear it's a conditional
  3. Use consistent naming - Helps with node deduplication
  4. Start with (Start) - Makes the entry point clear
  5. Test complex flows - Break into smaller parts if needed

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.39%
按下载量换算2,111

Claude

30.77%
按下载量换算1,835

Cursor

18.26%
按下载量换算1,089

Gemini CLI

10.28%
按下载量换算613

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills