Token导航 LogoToken导航

Agent Skill · 效率

baoyu-diagram(宝玉图)

baoyu-diagram 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

baoyu-diagram 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 6,299。

总安装 9,526周安装 393GitHub Stars 1下载 3,113核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:baoyu-diagram(宝玉图)
来源仓库:https://github.com/hxr918/baoyu-diagram
安装命令:
openclaw skills install baoyu-diagram
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install baoyu-diagram

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

生成 SVG 流程图、架构图等专业图表,提升文档可视化能力。适用于技术文档、系统说明或项目规划场景。支持多种图形类型与自定义样式配置。baoyu-diagram 属于效率类 Skill,可作为该场景下的辅助能力补充。安装命令:openclaw skills install baoyu-diagram。

建议核对输出结果是否符合实际业务流程与技术细节。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install baoyu-diagram;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

baoyu-diagram 怎么安装?

在终端执行 openclaw skills install baoyu-diagram。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

baoyu-diagram 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

baoyu-diagram 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

baoyu-diagram 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

baoyu-diagram 用的人多吗?

公开数据是累计安装 9,526 次,近一周安装 393 次,下载 3,113 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

baoyu-diagram 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
baoyu-diagram

宝玉图 · 本页

9,5261操作浏览器MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
baoyu-diagram
description
Generates publication-ready SVG diagrams — flowcharts, sequence/protocol diagrams, structural/architecture diagrams, and illustrative intuition diagrams — by writing real SVG code directly following a cohesive design system. Use whenever the user asks to "draw a flowchart", "draw a sequence diagram", "show the OAuth / TCP / auth protocol", "make an architecture diagram", "explain how X works visually", "画流程图", "画时序图", "画架构图", "画示意图", "画图解", or wants a clean, embeddable vector diagram for articles, WeChat posts, slides, or docs. Output is a single self-contained .svg file that renders correctly in light and dark mode anywhere it is embedded.
version
1.0.0
metadata
openclaw
homepage
https://github.com/JimLiu/baoyu-skills#baoyu-diagram

Diagram Generator

Write real SVG code directly, following a consistent design system, the output is a single .svg file that is self-contained (embedded styles, auto dark-mode), editable by humans, scales to any size without quality loss, and embeds cleanly into articles, WeChat posts, slide decks, Notion, and markdown.

This is not an image-generation skill — it does not call any LLM image model. Claude writes the SVG node-by-node, doing the layout math by hand so every diagram honors the rules in references/.

Usage

# Prompt for the topic if no argument given
/baoyu-diagram

# Plain-text description
/baoyu-diagram "how JWT authentication works"

# Path to a markdown file as source content
/baoyu-diagram path/to/content.md

# Force a specific diagram type
/baoyu-diagram "transformer attention"    --type illustrative
/baoyu-diagram "Kubernetes architecture"  --type structural
/baoyu-diagram "CI/CD pipeline"           --type flowchart
/baoyu-diagram "OAuth 2.0 flow"           --type sequence
/baoyu-diagram "Shape hierarchy"          --type class

# Language and output path
/baoyu-diagram "微服务架构"              --lang zh
/baoyu-diagram "build pipeline" --out docs/build-pipeline.svg

Options

OptionValues
--typeflowchart, sequence, structural, illustrative, class, auto (default — route on verb)
--langen, zh, ja, ko, ... (default: match the user's language)
--outOutput file path (default: diagram/{slug}/diagram.svg)

Diagram types

Pick the type by what the reader needs, not by the noun in the prompt.

The primary test: is the reader trying to *document* this, or *understand* it? Documentation wants precision — flowchart, sequence, or structural. Understanding wants the right mental model — illustrative.

TypeReader needRoute on verbs likeReference
FlowchartWalk me through the steps, in order"walk through", "steps", "process", "lifecycle", "workflow", "state machine", "gate", "router", "parallelization", "orchestrator", "evaluator"references/flowchart.md
Flowchart (phase band)Walk me through each phase; show the tools at each stage"phase 1/2/3", "multi-phase operation", "each phase has tools", "attack phases", "phased workflow", "security operation phases", "penetration test stages", "phase N feeds phase N+1"references/flowchart-phase-bands.md
SequenceWho talks to whom, in what order"protocol", "handshake", "auth flow", "OAuth", "TCP", "TLS", "gRPC", "request/response", "who calls what", "exchange between", "round trip", "webhook"references/sequence.md
StructuralShow me what's inside what, how it's organized"architecture", "organised", "components", "layout", "what's inside", "topology", "subsystem", "two systems", "side by side", "foreground + background"references/structural.md
IllustrativeGive me the intuition — draw the mechanism"how does X work", "explain X", "I don't get X", "intuition for", "why does X do Y", "LLM with tools", "agent and environment", "central + attachments"references/illustrative.md
ClassWhat are the types and how are they related"class diagram", "UML", "inheritance", "interface", "schema", "types and subtypes", "data model"references/class.md

Routing heuristic: "how does X work" is the default ambiguous case. Prefer illustrative unless the user specifically asks for steps or components. A diagram that makes the reader feel "oh, *that's* what it's doing" is illustrative — even if the subject is software.

Multi-actor test for sequence: if the prompt names ≥2 distinct actors/participants/services (User + Server, Client + Auth + Resource, Browser + CDN + Origin), prefer sequence even when the verb is "flow" or "process". Single-actor "X flow" (build pipeline, request lifecycle, GC) stays flowchart. When you pick sequence for a multi-actor reason, announce it: *"Picked sequence because the prompt names N actors (…). Rerun with --type flowchart to force the step-list version."*

Worked examples of verb-based routing: same subject, different diagram depending on what was asked. Use these as a sanity check after picking a type.

User saysTypeWhat to draw
"how do LLMs work"IllustrativeToken row, stacked layer slabs, attention threads across layers.
"transformer architecture / components"StructuralLabeled boxes: embedding, attention heads, FFN, layer norm.
"how does attention work"IllustrativeOne query token, fan of lines to every key, line thickness = weight.
"how does gradient descent work"IllustrativeContour surface, a ball rolling down, a trail of discrete steps.
"what are the training steps"FlowchartForward → loss → backward → update.
"how does TCP work"IllustrativeTwo endpoints, numbered packets in flight, an ACK returning.
"TCP handshake sequence"SequenceSYN → SYN-ACK → ACK between client and server lifelines.
"how does a hash map work"IllustrativeKey falling through a hash function into one of N buckets.
"LLM with retrieval, tools, memory"IllustrativeCentral LLM subject with dashed radial spokes to three labeled attachments.
"gate pattern with pass/fail exit"FlowchartPill In → LLM → Gate → LLM → LLM → pill Out, with a dashed Fail branch to Exit.
"LLM router / parallelization"FlowchartSimple fan-out: pill In → hub → 3 branches → aggregator → pill Out.
"Pi session + background analyzer"Structural (subsystem)Two dashed sibling containers side by side, each with a short internal flow, labeled cross-system arrows.
"prompt engineering vs. context engineering"Structural (subsystem)Two sibling containers, each showing its internal mechanism with cross-links.
"agent + environment loop"IllustrativeHuman pill ↔ LLM rect ↔ Environment pill, Action/Feedback labels on the edges.
"Claude Code workflow with sub-loops"Sequence4 actors with 1–2 dashed message frames labeled "Until tests pass" / "Until tasks clear".
"generator-verifier loop"FlowchartOuter loop container; two boxes with green ✓ / coral ✗ status circles on the return edge. See flowchart.md → "Loop container" + "Status-circle junctions".
"from TODOs to tasks"Structural (subsystem)Two siblings: left = checklist (checkbox glyphs); right = DAG of task nodes with one dashed future-state node. See structural.md → "Rich interior" + "Dashed future-state node".
"finding the sweet spot"IllustrativeHorizontal spectrum axis between two opposing labels; option boxes under tick points with the middle one highlighted. See illustrative.md → "Spectrum / continuum".
"agent teams with task queue"FlowchartQueue glyph inside the lead box, then vertical fan-out to workers. See flowchart.md → "Queue glyph inside box" + "Vertical fan-out".
"message bus architecture"StructuralCentral horizontal bar + agents above/below, each linked by a publish/subscribe arrow pair. See structural.md → "Bus topology".
"shared state store"StructuralCentral hub with a doc icon + 4 corner satellites, bidirectional arrow pairs. See structural.md → "Radial star topology".
"orchestrator vs. agent teams"Structural (subsystem)Two siblings; left = hub + fan-out; right = queue + vertical fan-out. See structural.md → "Rich interior for subsystem containers".
"orchestrator vs. message bus"Structural (subsystem)Two siblings; left = hub + fan-out; right = mini bus topology. See structural.md → "Rich interior".
"advisor strategy"StructuralSingle container, multi-line box bodies (title/role/meta), mixed solid+dashed+bidirectional arrows with a legend strip. See structural.md → "Mixed arrow semantics" + "Multi-line box body".
"tool calling vs. programmatic"SequenceParallel independent rounds — left = stacked rounds; right = stacked rounds wrapped in a tall script box. See sequence.md → "Parallel independent rounds".
"Claude + environment + skill"IllustrativeTwo subject boxes with a bidirectional arrow; annotation circle at the midpoint labels the skill. See illustrative.md → "Annotation circle on connector".
"code execution vs. dedicated tool"Structural (subsystem)Two siblings; left = Computer box with nested Terminal; right = Claude with an attached gadget box for Tools. See structural.md → "Rich interior" + "Attached gadget box".
"Shape inheritance / class hierarchy"Class3-compartment rects (name / attrs / methods) with hollow-triangle inheritance arrows. See class.md.
"order lifecycle / status transitions"Flowchart (state machine)State rects + initial/final markers + event [guard] / action transition labels. See flowchart.md → "State machine".
"network topology (3-tier)"Structural (network)Dashed zone containers (Internet / DMZ / Internal) + labeled device rects. See structural.md → "Network topology".
"database comparison matrix"Structural (matrix)Header row + zebra-striped body rows with ✓/✗ glyphs in cells. See structural.md → "Comparison matrix".
"multi-phase attack / each phase has tools"Flowchart (phase band)Stacked dashed phase bands; compact tool cards with icons in each band; colored cross-band arrows (normal / exploit / findings); operator icons on left. See flowchart-phase-bands.md.
"phased workflow / phase 1 recon phase 2 exploit"Flowchart (phase band)Phase labels as eyebrow text; tool card rows centered in each band; side annotations; legend strip. See flowchart-phase-bands.md.

Most common routing failure: picking a flowchart because it feels safer when an illustrative diagram would give the reader more insight. Illustrative is the more ambitious choice, and almost always the right one when the reader needs understanding rather than documentation.

Cycles, ERDs, and gantt charts are out of scope for v1. For cycles, draw the stages linearly with a small ↻ returns to start return glyph (see flowchart.md). For ERDs, suggest a dedicated tool (mermaid, plantuml) — do not attempt to fake them in pure SVG.

Workflow

Step 1: Capture intent

Read the user's prompt or content file. If the topic is missing, ask for it with AskUserQuestion.

Before routing, extract these five things from the source:

  1. Named elements — list every distinct actor, component, service, state, or phase explicitly named. Count them. If the count is 6+, plan multiple diagrams rather than cramming everything into one (see flowchart.md → "Planning before you write SVG").
  1. Relationship type — for each interaction between elements, classify it:

- Sequential steps / order of operations → flowchart signal - Containment ("X is inside Y", zones, hierarchies) → structural signal - Multi-actor message exchange (A sends to B, B replies to C) → sequence signal - Mechanism ("how does X produce Y") → illustrative signal More than one type present? Pick the dominant one, or plan two diagrams.

  1. What the reader needs — complete this sentence before routing: *"After seeing this diagram, the reader understands ___."* If you can't finish it, the topic is underspecified — ask.
  1. Label preview — for each element name, count the characters. Latin titles >30 chars (CJK >16) will overflow a 180-wide box and need shortening. Draft the abbreviated form now, before layout math, so Step 4 uses real labels.
  1. Language — CJK vs. Latin. Affects text-width multipliers in Step 4 (15 px/char vs. 8 px/char for titles). Mixed content (CJK labels with some Latin terms) counts as CJK.

Step 2: Route the diagram type

Match the user's phrasing to the table above. If --type is given, use it. Otherwise route on the verb. When genuinely ambiguous between flowchart and illustrative, default to illustrative — the reader almost always benefits more from intuition than from a list of steps.

Tell the user which type you picked and why, in one sentence. Do not ask for confirmation — the type can always be changed with --type on a rerun.

Step 3: Load references

Always read:

  • references/design-system.md — philosophy, typography, color palette, hard rules
  • references/svg-template.md — the <style> + <defs> boilerplate to copy verbatim
  • references/layout-math.md — text-width estimation, viewBox sizing, arrow routing
  • references/pitfalls.md — the pre-save checklist

Read the one that matches the type:

  • references/flowchart.md
  • references/sequence.md
  • references/structural.md
  • references/illustrative.md
  • references/class.md

Read on demand when the plan calls for a small pictorial element (status circle on a decision branch, checkbox inside a list, queue slot inside a box, doc/terminal/script icon inside a subject, annotation circle on a connector, paired pub/sub arrows, dashed future-state node) or when drawing a phase-band diagram (compact tool card icons, operator icons):

  • references/glyphs.md — the shared glyph library, tool card icon set, operator icons, and dark-mode rules

Read on demand for diagram type extensions:

  • references/flowchart-poster.md — when ≥3 poster-mode triggers fire in Step 4a (topic has a short name, named phases, parallel candidates, a loop termination mechanic, overflow annotations, or a footer quote)
  • references/flowchart-phase-bands.md — when the prompt describes a multi-phase sequential operation where each phase contains parallel tools or steps and outcomes propagate between phases ("phase 1/2/3", "attack phases", "phased workflow with tools")
  • references/structural-network.md — when drawing network topology: zone containers, wired/wireless device connectivity, security zones (DMZ / VPC / firewall)
  • references/structural-matrix.md — when drawing a comparison matrix: feature table, ✓/✗ cells, side-by-side "option × attribute" grid

Step 3.5: Check the patterns library

If the user's topic matches a known AI-system pattern (multi-agent research, message bus, shared state, agent with skills, contextual retrieval), there is a pre-cooked starter plan in references/patterns/. Scan references/patterns/README.md for a pattern name that matches the prompt. If one matches, load that pattern file and use its mermaid reference + baoyu SVG plan as the starting point for Step 4 — the node list, widths, and arrow routing are already drafted, and you only need to adapt labels.

If nothing matches, skip this step and plan from scratch in Step 4. Do not force a near-miss: two patterns that share a surface name may have genuinely different topologies, and using the wrong pre-plan is worse than planning from scratch.

Step 4: Plan on paper first

Before writing any SVG, draft a short layout plan. Do the math once, correctly, so the SVG comes out right on the first pass.

4a. Extract structure from the source — don't just transcribe the user's bullets into boxes. Read the source looking for these elements. Not every element will be present, but every present element should land in the diagram:

  • Mechanism name — does the topic have a short, nameable identity (Autoreason, AutoResearch, OAuth, JWT auth, Reflexion loop)? If yes, that's a candidate .title.
  • Framing question — does the source contain a "why does this exist" sentence? Usually in the form *"Problem X has no Y, so we built Z to …"*. That's a candidate subtitle.
  • Phases — do the stages naturally cluster into 2–4 named groups (setup / loop body / judgment / convergence)? Each cluster is a candidate .eyebrow section.
  • Anchor inputs — is there a constant input (the task prompt, a dataset, a knowledge base) that every stage references? That's a candidate anchor box above the main flow.
  • Parallel candidates — at some point, does the process generate N alternatives that are then compared? "Produce A, B, AB and pick the best" is a candidate fan-out + judge pattern. Watch for the implicit "keep unchanged" candidate — many iterative methods include "the incumbent wins by default" as one of the options, even when the source doesn't name it explicitly.
  • Loop scope + termination — which boxes are inside a loop that repeats? What is the *specific* termination rule — streak counter, convergence check, iteration cap, quality threshold? That's a candidate left-rail loop bracket + a dedicated termination box.
  • Per-box context that won't fit in a subtitle — "sees task + A + critique / adversarial / fresh context" is too long for a 5-word subtitle but too important to drop. Those are candidate right-column .anno annotations.
  • Quotable hook — does the source end with a test result, a quote, or a memorable framing? That's a candidate footer .caption.
  • Role categories — how many *distinct kinds* of operation does the process have (draft / critique / synthesize / judge)? This determines the color budget. Identity is a category, not a sequence.

Write the answers to these in the plan file. If ≥3 of them land, you're building a poster flowchart — load references/flowchart-poster.md and follow its coordinate budget. Otherwise, it's a simple flowchart and the linear-top-down pattern applies.

4b. Draft the layout:

  1. List the nodes / regions / shapes with their full label text (title + optional subtitle).

- Simple flowchart: ≤5 nodes. - Poster flowchart: ≤12 nodes grouped into ≤4 eyebrow-divided phases. - Structural: ≤3 inner regions. - Illustrative: 1 subject. - Sequence: list actors (2–4, max 4) in left-to-right order, each with a short title (≤12 chars) and optional role subtitle; then list messages as ordered (sender, receiver, short label) tuples (6–10 total, 10 is the sweet spot); mark any self-messages; draft a side-note title for the protocol.

  1. For every rect, compute the width using the formula in layout-math.md:

- width = max(title_chars × 8, subtitle_chars × 7) + 24 (Latin) - Replace 8 with 15 and 7 with 13 for CJK - Round up to the nearest 10

  1. Pick colors by category, not sequence. ≤2 accent ramps per diagram. Gray for neutral/start/end. Reserve blue/green/amber/red for semantic meanings.

- Sequence exception: assign one ramp per actor (default [gray, teal, purple, blue]), up to 4 ramps total — arrows inherit the sender's ramp. - Poster-flowchart exception: up to 4 ramps, one per distinct agent/role (drafter=purple, critic=coral, synthesizer=teal, judge=amber). Baseline/anchor/convergence stay gray.

  1. Check tier packing: N × box_width + (N-1) × gap ≤ 600. For sequence, use the lane table in layout-math.md (N=4 → centers 100/260/420/580) and verify every message label fits its lane span with label_chars × 7 ≤ |sender_x − receiver_x| − 8. For poster fan-out rows (3 candidates), see the coordinate sketch in flowchart.md.
  2. Map arrows and verify none cross an unrelated box. Use L-bends where a straight line would collide. (Sequence messages are always straight horizontal lines — no L-bends. Fan-out candidates converge to a common ymid channel just above the judge box.)
  3. Compute viewBox height: H = max_y + 20 where max_y is the bottom of the lowest element. Poster flowcharts routinely reach H=800–950 — don't force them to be compact.

Save this plan to diagram/{slug}/plan.md so iteration runs can re-read it.

Step 5: Write the SVG

Emit a single <svg width="100%" viewBox="0 0 680 H"> element. Copy the <style> + <defs> block from svg-template.md verbatim — don't abbreviate or edit the color ramp definitions. Then add visual elements in z-order:

  1. Background decorations (rare)
  2. Containers (outer <rect> for structural diagrams)
  3. Connectors and arrows (drawn first so nodes paint on top)
  4. Nodes (rects with text)
  5. Labels outside boxes (leader callouts, legends, external I/O labels)

Typography rules:

  • Two sizes only: 14px (t, th) and 12px (ts)
  • Two weights only: 400 and 500
  • Sentence case everywhere — "User login" not "User Login"
  • Every <text> element gets a class (t, ts, or th) — never hardcode fill colors on text

Step 6: Run the pre-save checklist

Walk through every item in references/pitfalls.md. The top failures to catch every time:

  1. viewBox height covers every element with a 20px buffer
  2. No rect extends past x=640
  3. Every labeled rect is wide enough for its text (char-width check)
  4. No arrow crosses an unrelated box
  5. Every <path> connector has fill="none" (or uses class="arr")
  6. Every <text> has a class — no hardcoded fill="black"
  7. No text-anchor="end" at low x values (label would clip past x=0)
  8. ≤2 accent ramps, colors encode category not sequence
  9. No <!-- comments --> in the final output

If any item fails, fix the SVG before saving. Don't rationalize past a failure — the checklist exists because these bugs are silent: the SVG is valid but looks wrong when rendered.

Step 7: Save output

If --out is given, save the SVG there and skip the scaffolded directory. Otherwise use the default layout:

diagram/{topic-slug}/
├── source-{slug}.md          # optional: user's input content if provided
├── plan.md                   # layout sketch from Step 4
└── diagram.svg               # final output
  • Slug: 2–4 kebab-case words derived from the topic.
  • Backup rule: if diagram.svg already exists at the target path, rename the existing one to diagram-backup-YYYYMMDD-HHMMSS.svg before writing the new file — never overwrite prior work silently.
  • Plan: always save plan.md from Step 4 beside the SVG so the next iteration can re-read it.
  • Source: if the user pasted source content, save it as source-{slug}.md in the same directory.

Step 8: Report

Tell the user in 4-6 lines:

  • Diagram type picked (and one-sentence why)
  • Node count / complexity
  • viewBox dimensions
  • Language
  • Output file path
  • One suggestion for how to preview it (e.g., "Open in Chrome for light/dark check")

Core principles

  • Draw the mechanism, not a diagram about the mechanism (illustrative). Draw the sequence, not the architecture (flowchart). Draw the containment, not the flow (structural). Draw the conversation, not the steps (sequence). Picking the wrong type is the single biggest failure mode — more harmful than any layout bug.
  • One design system, always. No --style flag, no alternate themes, no per-topic visual variants. The cohesive look across every diagram is the product — if a reader sees two baoyu diagrams in different articles, they should feel they came from the same hand. Any request to "use a different style" is a request to break this principle; push back and ask what the underlying need is instead.
  • Self-contained output. Every SVG carries its own styles and dark-mode rules. The reader should never need to edit anything after pasting it into their article.
  • Math before markup. SVG has no auto-layout. Every coordinate is hand-computed. A diagram that "almost fits" has a bug — fix the math, don't nudge pixels.
  • Color encodes meaning, not position. Five steps in a flowchart are not five colors. All five are gray unless one specific step deserves emphasis — in which case it gets the accent color.
  • The reader has 3 seconds. If the diagram needs prose explanation to parse, it's failing. Simplify until it can stand alone with only its labels.

References

  • references/design-system.md — palette, typography, hard rules
  • references/svg-template.md — the <style> + <defs> boilerplate (copy verbatim)
  • references/layout-math.md — coordinates, text widths, viewBox math, arrow routing
  • references/pitfalls.md — the pre-save checklist
  • references/flowchart.md — flowchart-specific rules and worked examples (includes state-machine sub-pattern)
  • references/flowchart-poster.md — poster flowchart dialect (load on demand when ≥3 poster triggers fire)
  • references/flowchart-phase-bands.md — phase-band flowchart (horizontal dashed phase containers, compact tool card rows, cross-band semantic arrows, operator icons, legend strip)
  • references/sequence.md — sequence-diagram rules (actors, lifelines, messages, self-messages)
  • references/structural.md — structural-specific rules and worked examples (subsystem, bus, radial star, rich interior, mixed arrows)
  • references/structural-network.md — network topology sub-pattern (zone containers, wired/wireless, tiered layout)
  • references/structural-matrix.md — comparison matrix sub-pattern (feature table, ✓/✗ cells, zebra rows)
  • references/illustrative.md — illustrative-specific rules and worked examples
  • references/class.md — UML class diagram rules (3-compartment rects, relationships, stereotypes)
  • references/glyphs.md — shared glyph library (status circles, checkboxes, queue slots, icons, annotation circles) and concept-to-shape conventions
  • references/patterns/ — pre-planned starters for common AI-system topologies (RAG, agents, memory tiers, verifier loops, …)

平台分布

OpenClaw

81.21%
按下载量换算2,528

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills