diagram-maker
它能做什么
这项技能为概念、流程、系统架构和白板草图制作图表。它适用于需要用视觉方式解释想法或系统的任何人。
适用场景
- ✓当你需要一张流程或概念图作为文件分享时。
- ✓当你想要一张之后可以修改的可编辑白板草图时。
- ✓当你需要一张服务、数据库和队列的架构图时。
技能链接
https://github.com/iflytek/skillhub/blob/main/builtin-skills/skills/diagram-maker/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- 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. If none is provided, use
diagram.htmlordiagram.excalidrawin the current working directory. - 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. - Verify syntax by opening or parsing the output 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.
常见问题
它能生成哪些文件类型?
它可以生成独立的 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
评论
- …
同一仓库的更多技能
ai-claim-checker
5.4k帮你的智能体核查 AI 回答中的事实性陈述,选择独立的信息来源,并养成审慎使用 AI 的习惯。
cue-omni-reader
5.4k帮你的智能体通过 Cue Omni Reader 服务读取网页、文档、音频或视频文件,然后将解析的内容用于你的任务。
daily-standup-journal
5.4k帮你的智能体写一份简短的每日站会记录、反思提示或每周回顾,内容只基于你在会话中提供的信息。
decision-matrix
5.4k帮你的智能体用清晰的评分方法比较各种选项,列出优缺点以及每个评分背后的假设。