返回顶部
g

graphviz

Generate SVG images from Graphviz DOT graphs using WebAssembly. Uses the graphviz_component.wasm running in the openclaw-wasm-sandbox plugin. No graphviz system binary or execution permission required.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
71
下载量
0
收藏
概述
安装方式
版本历史

graphviz

# Graphviz SVG Generator Generate SVG images from Graphviz DOT graph descriptions using WebAssembly. ## When to Use Trigger when: - Keywords: graphviz, DOT, SVG, flowchart - user asks to generate/convert/visualize a graph from DOT language - user wants to render a Graphviz diagram as SVG - user provides DOT notation and wants SVG output - 用户要求生成/转换/可视化 DOT 语言图 - 用户想要将 Graphviz 图渲染为 SVG - 用户提供 DOT 记号并想要 SVG 输出 - 关键词:流程图生成, 制图 ## Prerequisites - **Required plugin:** `openclaw-wasm-sandbox` - **WASM file:** `~/.openclaw/skills/graphviz/files/graphviz_component.wasm` (Use the `wasm-sandbox-download` tool to download,URL: `https://raw.githubusercontent.com/guyoung/wasm-sandbox-openclaw-skills/main/graphviz/files/graphviz_component.wasm`) ## How It Works The WASM component: - Accepts DOT graph string as **argument** - Outputs SVG to **stdout** ## Tool Use `wasm-sandbox-run` tool: | Parameter | Value | |-----------|-------| | `wasmFile` | `~/.openclaw/skills/graphviz/files/graphviz_component.wasm` | | `args` | DOT graph string, e.g. `["digraph { a -> b }"]` | ```javascript wasm-sandbox-run({ wasmFile: "~/.openclaw/skills/graphviz/files/graphviz_component.wasm", args: ["digraph { a -> b }"] }) ``` ## Usage 1. User provides DOT graph description 2. Call `wasm-sandbox-run` with DOT string in `args` 3. Return the SVG output to the user ## DOT Language Reference ``` digraph name { # Directed graph a -> b # Edge from a to b b -> c a [label="Node A"] # Node with label b [shape=box] # Node shape } graph name { # Undirected graph a -- b b -- c } ``` Common node attributes: `label`, `shape` (box, circle, diamond, triangle), `color`, `style` (filled, dashed) Common edge attributes: `label`, `color`, `style`, `dir` (forward, back, both, none) ## Notes - No system graphviz binary needed — pure WASM execution - No execution permission required — runs in sandbox - Runs in sandbox with no implicit file/network access - Output is pure SVG ready to display or save

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 graphviz-1775919671 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 graphviz-1775919671 技能

通过命令行安装

skillhub install graphviz-1775919671

下载 Zip 包

⬇ 下载 graphviz v1.0.0

文件大小: 1.72 KB | 发布时间: 2026-4-12 10:09

v1.0.0 最新 2026-4-12 10:09
- Initial release of the graphviz skill.
- Generate SVG images from Graphviz DOT graphs using WebAssembly—no system Graphviz binary or execution permissions needed.
- Processes DOT graph descriptions and returns SVG output.
- Uses the openclaw-wasm-sandbox plugin with the graphviz_component.wasm file.
- Simple invocation via wasm-sandbox-run; works with both English and Chinese prompts.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部