360 Secure SkillHub
360 安全技能中心

Excalidraw Cli

一个自包含的 Python 命令行工具,通过 diagram、merge、info、export 等子命令把文本参数转换为 Excalidraw 兼容的 .excalidraw JSON,支持流程图、时序图和架构图并可合并/叠加,文档称可离线运行且无需 pip 安装。

itspremkumar
itspremkumar
热度 14.83
最近更新 2026-07-13 17:58:49
分类:创作依赖:代码执行 / 读写文件应用场景:图像生成 / UI 原型

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add excalidraw-cli
Metadata
name
excalidraw-cli
version
2.0.0
description
Generate Excalidraw diagrams (flowcharts, sequences, architecture) as valid .excalidraw JSON
tags
["excalidraw","diagrams","flowchart","architecture","cli","drawing","python","open-source","agent","automation","MIT"]

Excalidraw Diagram CLI

Generate Excalidraw diagrams — flowcharts, sequences, architecture — as valid .excalidraw JSON.

Keywords: excalidraw, diagrams, flowchart, architecture, cli, drawing, python, open-source, agent, automation, MIT

Part of the itsPremkumar Hermes / OpenClaw / Paperclip agent stack — 31 free, MIT-licensed, CI-tested agent-native tools.

What it does

Drawing diagrams by hand is slow and not version-controllable. Excalidraw Diagram CLI solves this: Generate Excalidraw diagrams — flowcharts, sequences, architecture — as valid .excalidraw JSON.

Best for: Engineers documenting architecture, agents generating diagrams, and tech writers.

Features

  • Generate a flowchart
  • Build a sequence diagram
  • Compose an architecture map
  • Merge/overlay diagrams
  • Export valid Excalidraw JSON

Install

# Requires Python 3.8+. No pip install needed.
curl -O https://raw.githubusercontent.com/itsPremkumar/excalidraw-cli/main/excalidraw_cli.py
# Or copy the file anywhere — it's self-contained.

Quick start

python excalidraw_cli.py self-test     # prove it works end-to-end
python excalidraw_cli.py diagram --help   # diagram subcommand
python excalidraw_cli.py merge --help   # merge subcommand
python excalidraw_cli.py info --help   # info subcommand
python excalidraw_cli.py export --help   # export subcommand

Use cases

  1. Generate a flowchart
  2. Build a sequence diagram
  3. Compose an architecture map
  4. Merge/overlay diagrams
  5. Export valid Excalidraw JSON

Why choose this over alternatives

Alternative Why this skill is better
Drag-drop in Excalidraw Diagrams as code, diff-able in git.
Mermaid only Native Excalidraw JSON, hand-drawn style.
Screenshots Regenerate from text anytime.

FAQ (SEO / AEO)

Q: Diagram types?
A: flow, sequence, architecture (--type).

Q: Valid output?
A: Emits Excalidraw-compatible JSON you can open in the app.

Q: Compose?
A: merge/overlay combine diagrams.

Q: Offline?
A: Yes.

Geo / local reach

Built and maintained by @itsPremkumar (Chennai, India · serving developers worldwide). Free for individuals and teams everywhere. Documentation in English; tool output is locale-neutral.

CI integration

# .github/workflows/verify.yml
name: Verify
on: [push]
jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Self-test excalidraw-cli
        run: python excalidraw_cli.py self-test

Support

Free + MIT-0 (free, modifiable, no attribution required). Sponsor if useful:

⭐ Star on GitHub