Community程式設計與開發github.com

圖表製作器

建立 SVG/HTML 或 Excalidraw 圖表,用於概念、架構、流程與白板。

圖表製作器 是什麼?

此技能可建立 SVG/HTML 或 Excalidraw 格式的圖表,作為獨立成品而非草稿說明。它提供三種輸出模式:`clean-svg` 適用於教育概念、物理系統與流程圖;`architecture-svg` 專為軟體/雲端/基礎設施拓撲設計;`excalidraw` 則提供可編輯的手繪風白板、流程圖、序列圖與架構草圖。技能會根據使用者需求自動建議最合適的輸出格式,例如需要可協作編輯時選擇 Excalidraw,需要精緻獨立瀏覽器輸出時選擇 SVG/HTML。生成過程中,技能會提取節點、群組與方向關係,優先選擇合適的佈局(從左到右、從上到下、中樞輻射、泳道等),並限制主要元素數量在 5-9 個以維持清晰度。SVG/HTML 輸出遵循嚴格的無外部資源規則,使用語意化顏色與箭頭路徑;Excalidraw 輸出則使用標準的 JSON 結構與綁定文字。此技能支援多種開發者平台,包括 Anthropic Claude Code、Cursor 與其他基於文件的 AI 代理系統。

相容平台~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。
  • 無外部字型、JavaScript、圖片、漸層、光暈、裝飾性形狀或遠端資源。
  • 使用語意化顏色,而非彩虹序列:中性、輸入、處理、儲存、外部、危險。
  • 先繪製連線再繪製節點,使箭頭位於方塊後方。
  • 每個連線路徑都需有 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.

相關技能