跳到正文
cccskills
OpenClaw 官方免费在 GitHub 公开

mermaid-diagrams

Create or refine readable Mermaid diagrams for changes, architecture, lifecycles, and dependencies in Markdown documents and PR descriptions.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md4.4 KB
  • references/flowchart-template.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Mermaid diagrams

Use a diagram when relationships, phases, or boundaries are easier to understand visually. Keep the surrounding explanation short. A simple edit or single fact usually needs only prose.

Establish the meaning

  • Check the relevant implementation or design before drawing. State whether the diagram describes current behavior, a proposal, or a before/after comparison.
  • Show the important relationships and major boundaries, not every function. Name subgraphs for the phases or boundaries they explain.
  • Use solid arrows for implemented connections and dashed arrows for pending or unconnected integration. Label arrows with short verbs or conditions. Express asynchronous behavior in words rather than repurposing dashed arrows.
  • Make blockers, missing connections, and out-of-scope work explicit. A proposed connection stays dashed even when its components already exist.
  • Match claims to the evidence: implemented source does not by itself prove a working deployment. If that distinction matters, include it in the diagram or its caption. Do not infer a completed path from neighboring components.

Draw compactly

Use a native Markdown mermaid code block. Prefer flowchart TB; choose another diagram type when it better explains the relationship, such as sequence order. Keep any alternate notation's meaning clear in the caption.

For flowcharts, start from the flowchart template. Its sample behavior is illustrative; replace its nodes and connections with the actual subject.

  • Enable htmlLabels: true in Mermaid's YAML frontmatter.
  • Give nodes short bold headings with <b>...</b> and separate supporting lines with <br/>. Aim for roughly 15–25 characters per line and 2–3 lines per node where practical. Preserve precise names when shortening would obscure meaning.
  • Avoid long single-line labels, fixed-width HTML containers, complex inline CSS, and excessive text. Split an overfull diagram into focused views.
  • Use muted, desaturated fills with dark labels and thin borders; start with 1px strokes. Keep phase outlines neutral so they do not compete with the nodes. Define reusable classDef styles and reinforce color with words and line styles.
  • Start with 14–16px text and balanced spacing. Set subGraphTitleMargin separately from node padding so phase headings have room above their nodes. Tune nodeSpacing and rankSpacing rather than adding empty label lines.
  • Align parallel phases when practical. An extra hyphen on an existing solid arrow (--->) can span another layout rank without adding a relationship. Keep its meaning and endpoints unchanged; avoid inventing edges to force layout.
ColorMeaning
BlueAPIs, configuration, persisted state
PurpleOperator inputs, secrets, external dependencies
TealProcessing, protected operations, implemented capabilities
AmberGates, blockers, conditions requiring attention
Gray with a dashed borderPending or out-of-scope integration

Verify and report

Check that every edge reflects the relevant evidence and that labels distinguish implemented behavior from pending work. Keep confidential details out of diagrams destined for a public document or PR, just as in the surrounding text.

When available, render at the intended document width and inspect label contrast, phase-title clearance, node padding, large empty areas, and confusing crossings. Compare before/after views at the same viewport; a narrower SVG may be enlarged by its viewer. Prefer the destination's renderer; local rendering can differ from the published result. Adjust labels or layout when needed.

Report validation precisely: reviewing source text, passing a Mermaid syntax check, and visually inspecting a rendered diagram are separate checks. If rendering is unavailable, say so; do not describe the diagram as visually verified. Diagram checks do not establish runtime behavior.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

autoreview

OpenClaw 官方免费

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

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4322026年10月23日 更新

console-ui

OpenClaw 官方免费

Build or change Enterprise Console pages, shared styles, and interactions using the existing browser components and Storybook.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4322026年10月23日 更新

design-review

OpenClaw 官方免费

Assess designs, public interfaces, state ownership, readability, and refactor proposals when the task calls for design review or structural simplification; not for unrelated routine edits.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4322026年10月23日 更新

deslop

OpenClaw 官方免费

Clean only the current Enterprise diff before autoreview, preserving behavior, security boundaries, required TODOs, and useful test-intent comments.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4322026年10月23日 更新

enterprise-testing

OpenClaw 官方免费

Select proportional Enterprise validation and diagnose exact CI runs, distinguishing product, harness, infrastructure, and credential failures.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4322026年10月23日 更新

local-dev

OpenClaw 官方免费

Develop OpenClaw Enterprise changes with proportional verification and source-backed flow documentation for non-trivial behavior.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4322026年10月23日 更新

查看 openclaw 的全部技能

报告此技能的问题