← 返回 Skills 市场
redf426

graphviz

作者 redf426 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
137
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install graphviz-skill
功能描述
Generate architecture diagrams, flowcharts, dependency graphs, state machines, and other visualizations from natural language descriptions using Graphviz DOT...
使用说明 (SKILL.md)

Graphviz Diagram Generator

Generate diagrams from natural language descriptions and return a clickable link to GraphvizOnline with the rendered preview.

When to Use

  • "Draw the architecture of ..."
  • "Make a diagram showing ..."
  • "Visualize the data flow between ..."
  • "Create a flowchart for ..."
  • "Show dependencies between ..."
  • "State machine diagram for ..."
  • "ER diagram of ..."
  • Any request involving diagrams, graphs, schemas, architecture visualization

Workflow

  1. If the user's description is vague, ask one clarifying question before generating
  2. Generate valid DOT code following the conventions below
  3. Show the DOT code in a fenced ```dot block
  4. Construct the URL: https://dreampuf.github.io/GraphvizOnline/# + URL-encoded DOT code
  5. Output the link on its own line so it's clickable

DOT Code Conventions

Graph type

  • digraph for directed graphs (architecture, flows, dependencies, state machines)
  • graph for undirected graphs (relationships, peer networks)

Layout direction

  • rankdir=LR for wide/horizontal layouts (architecture, pipelines)
  • rankdir=TB for tall/vertical layouts (flowcharts, hierarchies)

Node shapes by component type

  • box or component -- services, applications, modules
  • cylinder -- databases, storage
  • ellipse -- users, actors, external systems
  • diamond -- decision points (flowcharts)
  • folder -- directories, namespaces, packages
  • note -- annotations, comments
  • record -- structured data, ER entities (use \x3Cfield> syntax for fields)
  • doublecircle -- start/end states (state machines)
  • circle -- intermediate states

Grouping

  • Use subgraph cluster_name { label="Group Name"; ... } to group related components
  • Give clusters a light fill: style=filled; color=lightgrey;

Styling

  • Use fontname="Helvetica" on the graph for clean rendering
  • Color-code edges or nodes to distinguish component types when helpful
  • Keep labels concise -- full names on nodes, short verbs on edges
  • Use style=dashed for optional or async connections

Edges

  • Label edges with the relationship or protocol: -> with [label="HTTP"], [label="gRPC"], [label="publishes"]
  • Use style=dashed for async/optional connections
  • Use dir=both for bidirectional relationships

URL Construction

Construct the GraphvizOnline URL by URL-encoding the entire DOT source and appending it as a hash fragment:

https://dreampuf.github.io/GraphvizOnline/#\x3CURL-encoded DOT code>

The DOT code must be encoded with standard percent-encoding (spaces -> %20, newlines -> %0A, etc.).

Output Format

Always output in this order:

  1. Brief description of what the diagram shows (1 sentence)
  2. The DOT source in a fenced ```dot block
  3. The clickable GraphvizOnline link on its own line

Example output structure:

Architecture showing the API gateway routing to backend services:

digraph { ... }

Open in GraphvizOnline

安全使用建议
This skill appears to do exactly what it says: produce Graphviz DOT and give a GraphvizOnline link. Before using it, avoid embedding secrets or sensitive internal details (API keys, passwords, full internal hostnames) in diagrams because the DOT source will be included in the generated URL fragment and could be shared or copied. Note: the GraphvizOnline link places the DOT in the URL fragment (hash) which typically isn't sent to the server, but the URL itself can be copied or posted elsewhere—so treat diagram contents as potentially shareable. If you need to diagram sensitive infrastructure, consider rendering locally or using a private renderer instead of a public GraphvizOnline preview.
功能分析
Type: OpenClaw Skill Name: graphviz-skill Version: 1.0.0 The skill bundle provides instructions for an AI agent to generate Graphviz DOT diagrams based on user descriptions and provide a link to a legitimate third-party renderer (dreampuf.github.io/GraphvizOnline). The files (SKILL.md, README.md, _meta.json) contain no executable code, obfuscation, or instructions to access sensitive system data or exfiltrate information.
能力评估
Purpose & Capability
Name/description match the runtime instructions: the SKILL.md only asks the agent to produce Graphviz DOT, show the DOT source, and construct a GraphvizOnline URL. No unrelated credentials, binaries, or system access are requested.
Instruction Scope
Instructions are narrow and explicit: ask a clarifying question if the prompt is vague, generate DOT following the provided conventions, display the DOT block, and create an encoded URL for dreampuf.github.io/GraphvizOnline. The instructions do not request reading files, environment variables, or contacting endpoints other than the documented GraphvizOnline URL construction.
Install Mechanism
This is an instruction-only skill with no install spec and no code files. Nothing is written to disk and no external downloads are requested.
Credentials
No environment variables, credentials, or config paths are required. The declared requirements are minimal and proportional to the task.
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistence or configuration changes. It is user-invocable and operates within normal autonomous-invocation defaults.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install graphviz-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /graphviz-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Major update: Skill now generates Graphviz DOT from natural language and returns a clickable diagram link. - Outputs a DOT code block and a direct preview link to GraphvizOnline. - Applies intelligent conventions for graph type, layout, node shapes, and grouping based on user prompts. - Asks for clarification if the input description is too vague. - No longer requires local WASM execution or direct SVG output.
元数据
Slug graphviz-skill
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

graphviz 是什么?

Generate architecture diagrams, flowcharts, dependency graphs, state machines, and other visualizations from natural language descriptions using Graphviz DOT... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 137 次。

如何安装 graphviz?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install graphviz-skill」即可一键安装,无需额外配置。

graphviz 是免费的吗?

是的,graphviz 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

graphviz 支持哪些平台?

graphviz 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 graphviz?

由 redf426(@redf426)开发并维护,当前版本 v1.0.0。

💬 留言讨论