跳到正文
Skillpedia
图片与图标5.4k · #14975

diagram-maker

它能做什么

这项技能为概念、流程、系统架构和白板草图制作图表。它适用于需要用视觉方式解释想法或系统的任何人。

适用场景

  • ✓当你需要一张流程或概念图作为文件分享时。
  • ✓当你想要一张之后可以修改的可编辑白板草图时。
  • ✓当你需要一张服务、数据库和队列的架构图时。

技能链接

https://github.com/iflytek/skillhub/blob/main/builtin-skills/skills/diagram-maker/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请帮我制作一张可编辑的 Excalidraw 图表,展示我们从结账到送达的订单流程。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会选择最合适的格式,提取主要步骤和关系,进行排版并生成文件。它会检查输出能否正确打开或解析。

技术内容(原始 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. If none is provided, use diagram.html or diagram.excalidraw in the current working directory.
  5. Do not overwrite an existing file by default. Choose an unused suffixed name such as diagram-2.html, or ask before replacing the existing file.
  6. Verify syntax by opening or parsing the output 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.

常见问题

它能生成哪些文件类型?

它可以生成独立的 SVG 或 HTML 文件,以及可编辑的 Excalidraw 文件。

它会覆盖已有的文件吗?

不会。技能默认不覆盖已有文件,而是选择一个新的文件名。

一张图表应该有多少个元素?

技能建议主要元素控制在五到九个左右,以保持图表易读。

详情

作者的原始描述

Create standalone SVG/HTML or editable Excalidraw diagrams for concepts, architecture, processes, flows, and whiteboards.

repo: iflytek/skillhub

热度

GitHub 星标
5.4k
排名
#14975
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能