Excalidraw Architect
/install excalidraw-architect
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
.excalidrawroot - read
__reactFiber$* - traverse child/sibling fibers
- pick node where
memoizedProps.excalidrawAPI.updateSceneexists
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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install excalidraw-architect - 安装完成后,直接呼叫该 Skill 的名称或使用
/excalidraw-architect触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。