← Back to Skills Marketplace
energypantry

Excalidraw Architect

by energypantry · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
160
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install excalidraw-architect
Description
Build or revise architecture diagrams directly in excalidraw.com from natural-language requirements. Use when the user asks to draw, update, clean up, or res...
README (SKILL.md)

Excalidraw Architect

Overview

Generate structured architecture diagrams in Excalidraw by scripting scene elements (rectangles, text, arrows) through the page runtime API, then iterating quickly based on user feedback.

Workflow

1) Open and verify the Excalidraw tab

Open https://excalidraw.com/ in the browser tool and keep using the same targetId for all edits.

If the user already has a board open, reuse that tab instead of creating a new one.

2) Get Excalidraw runtime API from the page

Use an evaluate action to locate excalidrawAPI from the React fiber tree.

If API lookup fails, refresh once and retry.

Use this lookup logic (or equivalent):

  • find .excalidraw root
  • read __reactFiber$*
  • traverse child/sibling fibers
  • pick node where memoizedProps.excalidrawAPI.updateScene exists

3) Build scene elements from the requested architecture

Translate the user’s request into:

  • container blocks (rectangles)
  • section labels and body text
  • directional arrows between blocks

Prefer clear readable layout:

  • title at top
  • left-to-right data flow unless user requests otherwise
  • enough spacing to avoid overlap

4) Write scene to canvas

Call api.updateScene({ elements, appState }) and then api.scrollToContent(elements, { fitToContent: true }).

When user requests changes, rewrite the scene deterministically (do not partially patch random elements unless user asks for tiny edits).

5) Confirm result

Send a short completion message and mention what changed.

Editing Rules

  • Preserve user’s scope boundaries (example: “only draw to Raw Data Pool”).
  • Keep language concise and business-readable.
  • Prefer complete labels over abbreviations.
  • If text is too dense, split into multiple lines.
  • If user asks for “only one layer”, remove downstream blocks explicitly.

Reusable Resources

scripts/

  • scripts/generate_excalidraw_scene.py: convert a JSON spec into Excalidraw element JSON.

references/

  • references/excalidraw-api-snippets.md: tested API discovery and update snippets for browser evaluate calls.

Use scripts/resources when diagrams are large or need repeatable generation.

Usage Guidance
This skill appears to do what it claims: it runs small scripts and uses a browser evaluate call to find Excalidraw's runtime API and update the canvas. Before installing, be aware that: (1) it executes code inside the Excalidraw page and traverses React fiber internals — that is necessary to get the excalidrawAPI but could access other in-page state if present; (2) it will modify whatever Excalidraw board the agent has open, so test on a throwaway board first; (3) there are no external uploads or credential requests. If you want extra safety, require user confirmation before any edit (disable autonomous invocation for this skill or configure the agent to prompt) and review/modify the provided snippets so evaluate calls are limited to the excalidraw.com origin.
Capability Analysis
Type: OpenClaw Skill Name: excalidraw-architect Version: 1.0.0 The skill bundle is designed to automate the creation of architecture diagrams on excalidraw.com. It uses a Python script (generate_excalidraw_scene.py) to generate element JSON and JavaScript snippets (excalidraw-api-snippets.md) to interact with the Excalidraw web runtime via React fiber tree traversal. While the method of accessing the internal page API is technically invasive, it is confined to the target site and directly supports the stated purpose without any evidence of data exfiltration, malicious execution, or prompt injection.
Capability Assessment
Purpose & Capability
Name/description (edit Excalidraw diagrams) matches the included artifacts: a browser-evaluate API discovery snippet and a Python helper that converts a spec to Excalidraw element JSON. No unrelated credentials, binaries, or external services are requested.
Instruction Scope
Runtime instructions require executing code in the page context and traversing React fiber internals (looking for __reactFiber$* and memoizedProps.excalidrawAPI). This is fragile and accesses page-internal props, but it is necessary to obtain the excalidrawAPI and then calls api.updateScene/api.scrollToContent to modify the canvas. The behavior is coherent with the skill's purpose but can touch other in-page data if present.
Install Mechanism
No install spec; the skill is instruction-only with two small helper files. Nothing is downloaded or written to disk by an installer, so install risk is low.
Credentials
The skill requires no environment variables, credentials, or config paths. The included code operates locally/in-page and writes element JSON to a local file only when the Python helper is used.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system presence. It can be invoked autonomously per platform defaults; paired with the lack of broad credentials this is not a high risk, though autonomous edits to open Excalidraw boards are possible.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install excalidraw-architect
  3. After installation, invoke the skill by name or use /excalidraw-architect
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: programmatic architecture diagram generation on excalidraw.com via runtime API.
Metadata
Slug excalidraw-architect
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Excalidraw Architect?

Build or revise architecture diagrams directly in excalidraw.com from natural-language requirements. Use when the user asks to draw, update, clean up, or res... It is an AI Agent Skill for Claude Code / OpenClaw, with 160 downloads so far.

How do I install Excalidraw Architect?

Run "/install excalidraw-architect" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Excalidraw Architect free?

Yes, Excalidraw Architect is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Excalidraw Architect support?

Excalidraw Architect is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Excalidraw Architect?

It is built and maintained by energypantry (@energypantry); the current version is v1.0.0.

💬 Comments