diagram-maker
它能做什么
它指导 AI 智能体为概念、系统、流程和白板绘制图表,并为每种图表选择最合适的格式。它适合需要清楚了解某件事如何运作的人。
适用场景
- ✓你想为某个流程、步骤或事物的运作方式画一张图的时候。
- ✓你需要一张软件系统的图,展示其服务和数据库的时候。
- ✓你想要一张之后可以修改的可编辑白板草图的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/skills/diagram-maker/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我们的订单流程画成一张简单的图,从结账到送达,并输出为 HTML 文件。”
每周 5 个新技能,1 分钟读完。
工作原理
技能先列出各个组成部分及其连接方式,然后选择布局。它生成独立的文件,例如 SVG、HTML 或 Excalidraw,并检查文件是否有效。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Diagram Maker
Create diagrams as artifacts, not prose. Choose one output mode:
clean-svg: educational concepts, physical systems, processes, lifecycle, simple data flow.architecture-svg: software/cloud/infra topology, services, databases, queues, trust zones.excalidraw: editable hand-drawn whiteboard, flowchart, sequence, architecture sketch.
Routing
- User wants editable/collaborative: choose Excalidraw.
- User wants polished standalone browser output: choose SVG/HTML.
- Software architecture with infra components: choose architecture SVG.
- Science, product, process, concept map, physical object: choose clean SVG.
- Unsure: ask one short question only if output format matters; otherwise choose clean SVG.
Workflow
- Extract nodes, groups, labels, and directed relationships.
- Pick layout first: left-to-right, top-down, hub-spoke, swimlanes, layered stack, sequence.
- Keep labels short. Prefer 5-9 main elements over dense diagrams.
- Generate the file at the requested path, or
./diagram.html/./diagram.excalidraw. - Verify syntax by opening/parsing when feasible.
SVG/HTML rules
- Single standalone
.htmlfile with inline CSS and inline SVG. - No external fonts, JS, images, gradients, glows, decorative blobs, or remote assets.
- Use semantic colors, not rainbow sequences: neutral, input, process, storage, external, risk.
- Draw connectors before nodes so arrows sit behind boxes.
- Every connector path has
fill="none"and a marker arrow when directed. - Leave 24px text padding inside boxes; do not let text touch borders.
- Legend only when symbols/colors are not obvious.
SVG template
Use references/svg-template.md as the wrapper and replace <!-- SVG -->.
Excalidraw rules
- Save
.excalidrawJSON withtype,version,source,elements, andappState. - Use bound text for shape labels. Do not use a nonstandard
labelproperty. - Keep bound text immediately after its container in the elements array.
- Minimum labeled shape: 120x60. Minimum body text: 16px.
- Use roughness
1,fontFamily: 1, and simple fills.
For exact Excalidraw element snippets, read references/excalidraw-patterns.md.
常见问题
我应该选择哪种格式?
可编辑或便于协作的草图适合 Excalidraw,精致的独立页面适合 SVG 或 HTML,软件架构则适合架构 SVG 风格。
查看图表需要联网吗?
不需要。HTML 和 SVG 文件使用内联样式,不加载外部字体、脚本或图片。
图表可以有多复杂?
它力求只有五到九个主要元素,并配以简短的标签,因为过于密集的图表难以阅读。
详情
作者的原始描述
Create SVG/HTML or Excalidraw diagrams for concepts, architecture, flows, and whiteboards.
repo: openclaw/openclaw
热度
- GitHub 星标
- 394k
- 排名
- #52
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。