Community编程与开发github.com

图表制作器

以SVG/HTML或Excalidraw格式创建概念、架构、流程和白板图。

图表制作器 是什么?

Diagram Maker 是一个智能体技能,可根据用户需求自动生成多种格式的图表,包括整洁的 SVG、面向软件/云/基础设施的架构 SVG,以及可编辑的手绘风格 Excalidraw 文件。它能够从用户描述中提取节点、组、标签和定向关系,并自动选择最佳布局方式(如从左到右、从上到下、中心辐射、泳道图、层级堆叠或序列图)。生成的 SVG/HTML 文件为独立单頁,内嵌 CSS 和 SVG,不依赖外部资源,并使用语义颜色。Excalidraw 文件则包含完整的 JSON 结构和正确的元素顺序,支持后续在 Excalidraw 中编辑和协作。该技能适用于多种场景,适合在 Claude Code、VsCode 等支持智能体的开发环境中使用。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/diagram-maker

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

图表制作器 是做什么的?

创建图表作为工件,而不是散文。选择一种输出模式:

  • clean-svg:教育概念、物理系统、流程、生命周期、简单数据流。
  • architecture-svg:软件/云/基础设施拓扑、服务、数据库、队列、信任区域。
  • excalidraw:可编辑的手绘白板、流程图、序列图、架构草图。

路由规则

  • 用户需要可编辑/协作:选择 Excalidraw。
  • 用户需要精美的独立浏览器输出:选择 SVG/HTML。
  • 包含基础设施组件的软件架构:选择架构 SVG。
  • 科学、产品、流程、概念图、物理对象:选择整洁 SVG。
  • 不确定:仅当输出格式重要时问一个简短问题;否则选择整洁 SVG。

工作流程

  1. 提取节点、组、标签和定向关系。
  2. 首先选择布局:从左到右、从上到下、中心辐射、泳道图、层级堆叠、序列图。
  3. 保持标签简短。优先使用 5-9 个主要元素,避免密集图。
  4. 在请求的路径生成文件,或 ./diagram.html / ./diagram.excalidraw。
  5. 在可行时通过打开/解析来验证语法。

SVG/HTML 规则

  • 单个独立 .html 文件,内嵌 CSS 和 SVG。
  • 无外部字体、JS、图片、渐变、发光、装饰性斑点或远程资源。
  • 使用语义颜色,而不是彩虹序列:中性、输入、处理、存储、外部、风险。
  • 先绘制连接线再绘制节点,使箭头位于盒子后方。
  • 每条连接线路径必须有 fill="none",且定向连接线需要有箭头标记。
  • 盒子内部留 24px 文字内边距;不要让文字接触边框。
  • 仅当符号/颜色不明显时才添加图例。

SVG 模板

使用 references/svg-template.md 作为包装器,并替换 <!-- SVG -->。

Excalidraw 规则

  • 保存 .excalidraw JSON,包含 type、version、source、elements 和 appState。
  • 对形状标签使用绑定文字。不要使用非标准的 label 属性。
  • 在元素数组中,将绑定文字紧接在其容器之后。
  • 最小标注形状:120x60。最小正文文字:16px。
  • 使用粗糙度 1、fontFamily: 1 和简单的填充。

关于精确的 Excalidraw 元素片段,请阅读 references/excalidraw-patterns.md。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能