Install
openclaw skills install excalidraw-architectBuild or revise architecture diagrams directly in excalidraw.com from natural-language requirements. Use when the user asks to draw, update, clean up, or res...
openclaw skills install excalidraw-architectGenerate structured architecture diagrams in Excalidraw by scripting scene elements (rectangles, text, arrows) through the page runtime API, then iterating quickly based on user feedback.
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.
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):
.excalidraw root__reactFiber$*memoizedProps.excalidrawAPI.updateScene existsTranslate the user’s request into:
Prefer clear readable layout:
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).
Send a short completion message and mention what changed.
scripts/generate_excalidraw_scene.py: convert a JSON spec into Excalidraw element JSON.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.