跳到正文
Skillpedia
界面(UI/UX)394k · #52

diagram-maker

它能做什么

它指导 AI 智能体为概念、系统、流程和白板绘制图表,并为每种图表选择最合适的格式。它适合需要清楚了解某件事如何运作的人。

适用场景

  • ✓你想为某个流程、步骤或事物的运作方式画一张图的时候。
  • ✓你需要一张软件系统的图,展示其服务和数据库的时候。
  • ✓你想要一张之后可以修改的可编辑白板草图的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/skills/diagram-maker/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/skills/diagram-maker/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Extract nodes, groups, labels, and directed relationships.
  2. Pick layout first: left-to-right, top-down, hub-spoke, swimlanes, layered stack, sequence.
  3. Keep labels short. Prefer 5-9 main elements over dense diagrams.
  4. Generate the file at the requested path, or ./diagram.html / ./diagram.excalidraw.
  5. Verify syntax by opening/parsing when feasible.

SVG/HTML rules

  • Single standalone .html file 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 .excalidraw JSON with type, version, source, elements, and appState.
  • Use bound text for shape labels. Do not use a nonstandard label property.
  • 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能