/install graphviz-skill
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
- If the user's description is vague, ask one clarifying question before generating
- Generate valid DOT code following the conventions below
- Show the DOT code in a fenced ```dot block
- Construct the URL:
https://dreampuf.github.io/GraphvizOnline/#+ URL-encoded DOT code - Output the link on its own line so it's clickable
DOT Code Conventions
Graph type
digraphfor directed graphs (architecture, flows, dependencies, state machines)graphfor undirected graphs (relationships, peer networks)
Layout direction
rankdir=LRfor wide/horizontal layouts (architecture, pipelines)rankdir=TBfor tall/vertical layouts (flowcharts, hierarchies)
Node shapes by component type
boxorcomponent-- services, applications, modulescylinder-- databases, storageellipse-- users, actors, external systemsdiamond-- decision points (flowcharts)folder-- directories, namespaces, packagesnote-- annotations, commentsrecord-- 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=dashedfor optional or async connections
Edges
- Label edges with the relationship or protocol:
->with[label="HTTP"],[label="gRPC"],[label="publishes"] - Use
style=dashedfor async/optional connections - Use
dir=bothfor 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:
- Brief description of what the diagram shows (1 sentence)
- The DOT source in a fenced ```dot block
- The clickable GraphvizOnline link on its own line
Example output structure:
Architecture showing the API gateway routing to backend services:
digraph { ... }
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install graphviz-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/graphviz-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。