返回顶部
e

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 restructure system diagrams/flowcharts in Excalidraw, especially for software architecture, data pipelines, multi-tenant designs, or workflow maps.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
106
下载量
0
收藏
概述
安装方式
版本历史

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 `.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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 excalidraw-architect-1776004022 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 excalidraw-architect-1776004022 技能

通过命令行安装

skillhub install excalidraw-architect-1776004022

下载 Zip 包

⬇ 下载 excalidraw-architect v1.0.0

文件大小: 4.78 KB | 发布时间: 2026-4-13 10:12

v1.0.0 最新 2026-4-13 10:12
Initial release: programmatic architecture diagram generation on excalidraw.com via runtime API.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部