Skip to main content

diagram-maker

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

来源信息

仓库
OpenBMB/PilotDeck
最近来源活动
2026年6月9日 03:48
检测到的 SKILL.md 语言
英语
星标
4,024
分支
455

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
diagram-maker
description
Create SVG/HTML or Excalidraw diagrams for concepts, architecture, flows, and whiteboards.
# 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`. ## PilotDeck Migration Note - Source: /var/folders/27/xyyzc_n172l3jjmnxgqmhhzh0000gn/T/tmp.AyWDWGKoS4/openclaw/skills/diagram-maker - Review status: candidate for PilotDeck native skills pack. - Platform-specific OpenClaw/Hermes metadata was removed or should be ignored during review.
在 GitHub 查看