excalidraw-diagrams

Generate Excalidraw diagrams as .excalidraw JSON files from Python code.

28|4|Updated Dec 9, 2025
One-click install
npx skills add https://github.com/robtaylor/excalidraw-diagrams --skill excalidraw-diagrams-robtaylor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: excalidraw-diagrams
Source: https://github.com/robtaylor/excalidraw-diagrams/tree/main
Command: npx skills add https://github.com/robtaylor/excalidraw-diagrams --skill excalidraw-diagrams-robtaylor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill enables programmatic generation of Excalidraw diagrams (flowcharts, architecture diagrams, and system designs) directly from Python code, replacing manual drawing and speeding up visual planning.

Core Features & Use Cases

  • Create flowcharts, architecture diagrams, and other visuals as .excalidraw JSON files.
  • Output files that can be opened in Excalidraw or the VS Code Excalidraw extension for editing.
  • Use cases include rapid prototyping of diagrams from code, automations in design pipelines, and reproducible diagram generation for documentation.

Quick Start

Run a simple script: from excalidraw_generator import Diagram d = Diagram() a = d.box(100, 100, "Start") b = d.box(300, 100, "End") d.arrow_between(a, b) d.save("diagram.excalidraw")

Frequently Asked Questions about excalidraw-diagrams

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Excalidraw diagrams from Python code?

You can generate Excalidraw diagrams from Python by using the excalidraw_generator library to programmatically create boxes, arrows, and text, saving the output as a .excalidraw JSON file for editing.

What is the best way to automate flowchart creation for Excalidraw?

Automating flowchart creation for Excalidraw is best achieved by scripting the layout and connections in Python, which outputs reproducible .excalidraw JSON files without needing manual drawing in the editor.

Do I need any external dependencies to create Excalidraw files with Python?

No external runtime dependencies are required to create Excalidraw files beyond standard Python, as the necessary excalidraw_generator library is contained directly within the skill scripts.

Can I open programmatically generated Excalidraw JSON files in VS Code?

Yes, you can open programmatically generated Excalidraw JSON files in both the standard Excalidraw web editor and the VS Code Excalidraw extension for further manual editing and visual refinement.

How does Python-based architecture diagram generation improve design pipelines?

Python-based architecture diagram generation improves design pipelines by replacing manual drawing with code, enabling rapid prototyping, automated visual updates, and reproducible visuals for system documentation.

When should I use code to generate diagrams instead of drawing them manually?

You should use code to generate diagrams instead of manual drawing when you need reproducible visuals, want to automate diagram creation in design pipelines, or require rapid prototyping from existing data.