← 返回 Skills 市场
energypantry

Excalidraw Architect

作者 energypantry · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
160
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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.

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install excalidraw-architect
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /excalidraw-architect 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: programmatic architecture diagram generation on excalidraw.com via runtime API.
元数据
Slug excalidraw-architect
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 160 次。

如何安装 Excalidraw Architect?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install excalidraw-architect」即可一键安装,无需额外配置。

Excalidraw Architect 是免费的吗?

是的,Excalidraw Architect 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Excalidraw Architect 支持哪些平台?

Excalidraw Architect 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Excalidraw Architect?

由 energypantry(@energypantry)开发并维护,当前版本 v1.0.0。

💬 留言讨论