Data & analysis

Excalidraw Cli

Try it

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

What it does

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

The skill document

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

AlternativeWhy this skill is better
Drag-drop in ExcalidrawDiagrams as code, diff-able in git.
Mermaid onlyNative Excalidraw JSON, hand-drawn style.
ScreenshotsRegenerate 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

Related skills

Excalidraw MCP (excalidraw.com). Use this skill for ANY Excalidraw MCP request — reading, creating, and updating data. Whenever a task involves Excalidraw MCP, use this skill instead of calling the API directly.

1 installs

Generate beautiful draw.io diagrams with a mandatory visual QA loop. Covers flowcharts, ERD, architecture, sequence, and class diagrams. Use when user reques...

by Spotlight Revenue

Generate beautiful draw.io diagrams with a mandatory visual QA loop. Covers flowcharts, ERD, architecture, sequence, and class diagrams. Use when user reques...

Create or revise standalone HTML/SVG architecture diagrams, runtime flow diagrams, sequence diagrams, and PPT-like technical visuals. Use when a user wants h...

35 installs7 stars

Turn a natural-language description into a real Excalidraw whiteboard file (.excalidraw) — flowcharts, mind maps, architecture/system diagrams, org charts, wireframes, sticky-note brainstorms, sequence diagrams. Always use this skill whenever the user asks to draw, sketch, diagram, whiteboard, mind-map, or map something out, or mentions "excalidraw", "boardraw", "白板", "画一个", "流程图", "思维导图", "架构图", "组织架构图", "线框图", "泳道图", "看板", or wants a file they can open in Excalidraw or Boardraw. Do NOT hand-write raw .excalidraw JSON directly — the schema has fragile id/seed/binding requirements — always build it with the bundled scripts/excalidraw_builder.py helper instead.

Use when creating editable technical diagrams with draw.io / diagrams.net sources, including architecture diagrams, ERD, UML, sequence diagrams, flowcharts, ML model diagrams, official shape lookup, brand symbols, Graphviz auto-layout, codebase structure maps, .drawio validation, or draw.io CLI expo

5 installs