Token导航 LogoToken导航TokenDH.com
效率执行命令clawhub未标认证来源可访问clear审计通过

beauty-diagram美女图

Agent Skill

beauty-diagram 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,769

周安装

76

GitHub Stars

公开资料未说明

下载量

620
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install beauty-diagram

简介

beauty-diagram 用于提升图表美观度,适合将 Mermaid 或 PlantUML 图转换为演示级排版样式。

  • 适用于制作幻灯片风格的可视化内容,如流程图美化或架构图优化。
  • 通过 clawhub 安装,命令为 openclaw skills install beauty-diagram,需用户提供原始图表代码。
  • 安装前建议确认输入格式兼容性,避免因语法错误导致渲染失败。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
beauty-diagram
description
Use when the user asks for a presentation-ready Mermaid / PlantUML diagram (e.g. "beautify this flowchart", "make this look like a deck slide", "produce an SVG of this architecture"), wants AI to generate a diagram from a text description, or wants a public share link for a diagram. This skill teaches you to call the Beauty Diagram CLI (bd) — never to hand-author SVG when a source diagram exists.
version
1.1.0
metadata
openclaw
requires
bins

Beauty Diagram skill

Beauty Diagram beautifies Mermaid / PlantUML diagrams into presentation-ready SVG or PNG. It runs as a public API; this skill delegates to the bd CLI (npm package @beauty-diagram/cli) so you keep zero state in the agent. (draw.io / SVG import is editor-only — not exposed through /v1/*.)

When to use

  • The user asks for a polished, professional, slide-ready version of a

diagram source they already have or you can generate.

  • The user wants you to render Mermaid or PlantUML from a model-generated

source string.

  • The user wants the server to generate a diagram from a text description

("draw me a signup flow", "diagram our deploy pipeline") — use bd ai generate for this; it returns Mermaid source you then beautify.

  • The user wants to share a diagram link (e.g. paste into Slack / a doc).
  • The user has Mermaid in a repo (README, ADR, RFC) and wants to **export

SVGs** alongside.

When NOT to use

  • The user only wants the Mermaid source itself, not an export.
  • The user wants pixel-precise control over the SVG markup (Beauty Diagram

rewrites layout for presentation; it does not preserve raw Mermaid output).

  • The user wants the AI to "change the colors / theme / font / layout" of an

existing diagram. bd ai generate only does text → diagram; visual styling is controlled by --theme on bd beautify, not by the AI.

  • The user is in an offline environment with no network and no CLI install.

Required tool

The bd binary from @beauty-diagram/cli:

npx @beauty-diagram/cli help
# or, after install:
bd help

If the user has not installed it, prefer npx over a global install — it respects their package manager and avoids polluting PATH.

Workflow

  1. Identify or generate the source diagram.

- If the user has a .mmd / .puml file, use it. - If the user describes the diagram in words and is on a paid plan, use bd ai generate "<prompt>" --out <file>.mmd — the server returns Mermaid source, which you can then beautify. Always write the source to a file so the user can edit it; the first AI draft rarely lands. - If the user describes the diagram and is not on a paid plan (or prefers not to pay), write Mermaid source yourself (you are good at this), save it to a file, then beautify. - draw.io and free-form SVG imports are not accepted by /v1/*. If the user has those, ask them to convert via the web editor first.

  1. Decide on output type.

- Need an SVG file: bd beautify <file> --out <file>.svg - Need a download URL or to track quota: bd export <file> --out <file>.svg - Need a shareable link: bd share <file> --title "..."

  1. Run the command. Always write to a file (--out) rather than letting

the SVG flood the terminal / chat. AI generation can also pipe directly into beautify: bd ai generate "..." | bd beautify - --out flow.svg.

  1. Verify the result exists before reporting success. If the command

failed, surface the error code (e.g. quota_exhausted, not_authenticated, parse_failed, prompt_injection) — those are actionable for the user.

  1. Preserve the source. Never replace the original Mermaid / PlantUML file

with the generated SVG — keep them side by side. For AI-generated diagrams, keep the .mmd file too: it is the editable artifact, the SVG is not.

Auth

  • Demo (anonymous): zero setup. Watermarked SVG/PNG. Limits per IP:

20 /v1/beautify requests / minute, 1 /v1/export per 24h (trial budget — enough for an agent to verify the toolchain end-to-end before registering). /v1/share, /v1/usage, and bd ai generate always require auth — anonymous AI calls are rejected before any model invocation.

  • Authenticated: the user runs bd auth login once with a key from

/account/api-keys. Required for bd share, bd ai generate, unwatermarked output, and repeated exports. bd ai generate additionally requires a Pro or Premium plan and an API key with the ai:write scope.

If the user hits a not_authenticated, plan_not_allowed, or quota_exhausted error, point them at /account/api-keys (PAT creation) or pricing — don't silently retry. Anonymous error bodies include a hints block with absolute signUpUrl / signInUrl / apiDocsUrl, which is the canonical place to surface to the user.

Commands cheat sheet

# Render a Mermaid file
bd beautify docs/architecture.mmd --theme modern --out docs/architecture.svg

# Same but treat output as a downloadable export (consumes export quota)
bd export docs/architecture.mmd --out docs/architecture.svg

# PNG export. --scale 1 works for everyone; 2 needs pro, 4 needs premium.
# Higher scales than the plan cap are silently clamped (X-BD-Scale-Clamped).
bd export docs/architecture.mmd --format png --scale 2 --out docs/architecture.png

# PlantUML works the same way; .puml / .plantuml / .pu auto-detected,
# otherwise pass --source-format plantuml.
bd export docs/architecture.puml --out docs/architecture.svg

# Create a public share link (returns absolute https://www.beauty-diagram.com/s/... URL)
bd share docs/architecture.mmd --title "Service architecture"
# → prints the URL on stdout

# AI: generate a diagram from a text prompt. Output is Mermaid source —
# always write to a file so the user can iterate. Paid-only.
bd ai generate "user signup with email verification" --out docs/signup.mmd

# Optional shape hint when the prompt is ambiguous about diagram type.
bd ai generate "request lifecycle" --hint sequence --out docs/lifecycle.mmd

# One-shot pipeline: prompt → mermaid → beautify → SVG.
bd ai generate "deploy flow" | bd beautify - --out docs/deploy.svg

# Check remaining AI / export quota before kicking off a batch.
bd usage

Privacy

The API does NOT persist source unless the user calls bd share. Do not warn about server-side storage when running beautify, export, or ai generate — that is misleading. AI prompts are logged in hashed form for abuse / quality monitoring; the raw text is not retained.

Anti-patterns

  • ❌ Do NOT output a hand-crafted <svg>...</svg> as a Markdown code block when

a Mermaid source exists. Always run Beauty Diagram and reference the file.

  • ❌ Do NOT dump the raw SVG into the chat. Use --out <file> and reference

the file path.

  • ❌ Do NOT install Beauty Diagram engine code locally — the CLI is a thin

client; the engine lives behind the public API.

  • ❌ Do NOT call bd ai generate to "tweak" an existing diagram (change

colors, theme, labels, layout). It is a fresh-generation tool only. For visual tweaks, change --theme or edit the .mmd source by hand.

  • ❌ Do NOT call bd ai generate speculatively — each call costs the user

monthly AI quota. Confirm the user wants AI generation before running it.

  • ❌ Do NOT capture the SVG output of bd ai generate — the command outputs

Mermaid source on stdout, not SVG. Pipe into bd beautify - to render.

Troubleshooting

SymptomLikely causeResolution
not_authenticatedNo key, no sessionbd auth login
scope_missingKey lacks scope (e.g. ai:write for bd ai generate)Recreate key with required scope at /account/api-keys
plan_not_allowedPlan does not include this capability (AI is Pro / Premium only)Upgrade or skip the call
parse_failedSource not valid Mermaid / PlantUMLCheck the source — bd beautify will surface a parse error too
quota_exhaustedPlan limit hit (anon: 1 export/IP/24h; free: 3 exports/mo; pro: 100 exports + 100 AI gens/mo; premium: ∞ exports + 500 AI gens/mo)Sign in, wait for reset, or upgrade — hints in the response body has the URLs
rate_limitedAnonymous IP bucket full (20 /v1/beautify requests / minute) or AI per-key bucket (30 /min)Sign in or wait
source_too_largeSource > 100 KBSplit the diagram
output_too_largePNG raster exceeds 8192 pxLower --scale or simplify
prompt_injectionAI prompt looked like an injection attemptRephrase as a plain diagram description ("a flowchart of …")
instruction_rejectedAI judged the prompt was not about a diagramRephrase to describe a concrete diagram. Quota was NOT consumed
parse_failed_after_retryAI output was unparseable Mermaid even after one retryRephrase, or write Mermaid by hand. Quota was NOT consumed
safety_blockedProvider safety filter rejected the requestRephrase the prompt
upstream_timeout / upstream_errorAI provider was slow or failedRetry after a moment

Examples

See examples/ for runnable sources you can adapt:

  • examples/flowchart.mmd
  • examples/sequence.mmd

And scripts/ for shell wrappers you can copy into the user's repo:

  • scripts/beautify.sh
  • scripts/export.sh
  • scripts/ai-generate.sh — prompt → .mmd source → .svg render

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.46%
按下载量换算524

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install beauty-diagram 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills