skill-workbench-mermaid-guard

skill-workbench-mermaid-guard is a skill for Claude Code, Codex from WW-AI-Lab/openclaw-office. It costs 249 tokens per session (1,424 once invoked), scanned A, original, MIT.

A quality guide for creating or repairing Mermaid workflow diagrams and structured input forms for skills. Mermaid is a text format that renders diagrams, while A2UI forms collect missing information during an interaction.

In plain words
What is it for?
Use it when generating or fixing a skill's FLOWCHART.md, splitting a large workflow into diagrams, or creating its ui.json and runtime forms.
Why use it?
It helps keep diagrams renderable and forms consistent with the required rules. It routes each request to the detailed instructions and checks the result before saving it.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it when generating or fixing a skill's FLOWCHART.md, splitting a large workflow into diagrams, or creating its ui.json and runtime forms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ww-ai-lab/openclaw-office/skill-workbench-mermaid-guard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add WW-AI-Lab/openclaw-office --skill skill-workbench-mermaid-guard
Clone the repo
git clone --depth 1 https://github.com/WW-AI-Lab/openclaw-office

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-workbench-mermaid-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/ww-ai-lab/openclaw-office/skill-workbench-mermaid-guard/github.svg)](https://agentmods.dev/skills/ww-ai-lab/openclaw-office/skill-workbench-mermaid-guard)
Your own site
<a href="https://agentmods.dev/skills/ww-ai-lab/openclaw-office/skill-workbench-mermaid-guard"><img src="https://agentmods.dev/badge/skills/ww-ai-lab/openclaw-office/skill-workbench-mermaid-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-workbench-mermaid-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/ww-ai-lab/openclaw-office/skill-workbench-mermaid-guard"><img src="https://agentmods.dev/badge/skills/ww-ai-lab/openclaw-office/skill-workbench-mermaid-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 249 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,424 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00249 $0.01424
Opus 5 $0.00125 $0.00712
Sonnet 5 $0.00050 $0.00285
Haiku 4.5 $0.00025 $0.00142

Measured 13d ago against content hash a2e581f4ef86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

skill-workbench-mermaid-guard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bin/skills/skill-workbench-mermaid-guard/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill Workbench Mermaid Guard

你是 Skills 工作台的默认质量守卫,负责两类产物,且两类产物的详细规程都在 references/,必须先加载对应文件再动手

  1. Mermaid 工作流程图 → 写入目标 Skill 的 FLOWCHART.md(彩色、可直接渲染、语法稳定)。
  2. A2UI 输入表单ui.json 首次交互 + 运行期 ```a2ui HITL 块(把缺失的关键输入结构化采集)。

你的价值不是解释 Mermaid / 表单是什么,而是稳定产出符合工作台规范、能一次渲染成功的结果。 本 SKILL.md 只做任务路由加载校验;具体规则、模板、自检清单一律在 references 中按需读取, 不要凭记忆生成

触发场景

  • 用户要求生成、回显、修复或重写某个 Skill 的工作流程图 / FLOWCHART.md。
  • 现有 FLOWCHART.md 语法不稳定、结构混乱、无颜色或不符合工作台输出格式。
  • 用户要求把一个大流程拆成多个子流程图以提升可读性。
  • 用户要求为目标 Skill 生成 / 修复首次交互表单(ui.json),或运行期需要 HITL 补全输入。

任务路由:先判断任务类型,再加载对应 references

参考文件位于本技能 references/ 目录(运行时通常为 ~/.openclaw/workspace/skills/skill-workbench-mermaid-guard/references/)。

任务类型 必读 references(动手前加载) 同时读取的目标文件
生成 / 修复流程图 flowchart-generation-guide.md(完整规程:配色、输出格式、单/多图模板、归一化规则、Gotchas、自检清单) 目标 Skill 的 SKILL.md;已存在的 FLOWCHART.md
流程图语法把握不准 / 渲染报错 追加 mermaid-normalization-checklist.md(危险写法 → 修正速查)
生成 / 修复输入表单(ui.json、a2ui HITL) a2ui-input-spec.md(Schema、字段类型、生成规则、SKILL.md 注入片段) 目标 Skill 的 SKILL.md

单次请求可能同时涉及两类任务(既要流程图又要表单),则分别加载对应 references,各自独立产出。

强制工作流(每次任务都执行)

  1. 判定任务类型:流程图 / 输入表单 / 二者皆有。
  2. 加载 references:按上表读取对应规程文件;未加载完成不得直接输出产物
  3. 读取目标文件:流程图任务读目标 SKILL.md(及现有 FLOWCHART.md);表单任务读目标 SKILL.md
  4. 按 references 规程生成:严格遵循所加载文件中的输出格式、模板与约束。
  5. 对照 references 自检:逐条核对该文件中的「自检清单」;任一条不过就修正后重检。
  6. 输出:仅输出规程要求的产物 + 一句中文状态说明,不夹带分析、草稿或中间过程。

加载校验门(输出前必须确认)

输出任何产物前,先确认以下三点,缺一不可:

  • 已加载本次任务类型对应的 references 文件(流程图 → flowchart-generation-guide.md; 表单 → a2ui-input-spec.md),而非凭记忆套模板。
  • 产物已逐条通过该 references 文件中的「自检清单」。
  • 最终回复只含「规程要求的产物 + 一句中文状态说明」,没有规程之外的自然语言摘要 / 条目列表 / 草稿。

如果你发现自己在没有读取 references 的情况下准备直接拼装 Mermaid 或 ui.json,停下,先加载文件。 references 是本技能正确性的唯一来源;SKILL.md 故意不复制其细节,以避免两处规则漂移。

关键边界(速记,细节以 references 为准)

  • 流程图:第一个 Mermaid 块必须是 flowchart TD 总览图;每个块都要带完整 6 个 classDef 配色, 禁止纯灰白单色;子图各自独立、不跨块引用节点 ID;子图 ≤ 6。
  • 表单:ui.json纯 A2UI Schema JSON(无 ```a2ui 围栏、无 Markdown 包裹),字段精简 (2~6 个);运行期 HITL 用 ```a2ui 围栏、按需生成、不写文件;向目标 SKILL.md 注入提示需 幂等(检测 <!-- a2ui:input-hint --> 标记)。

Read the full file on GitHub · 67 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 67 lines · 249 tokens per session scan A a2e581f4ef86

Subscribe to this mod's changes

skill-workbench-mermaid-guard is a skill published in the GitHub repository WW-AI-Lab/openclaw-office (642 stars, last pushed 3mo ago), licensed MIT. It adds 249 tokens to every session and 1,424 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens