Create or revise standalone HTML/SVG architecture diagrams, runtime flow diagrams, sequence diagrams, and PPT-like technical visuals. Use when a user wants h...
设计与多媒体
Visual Architecture Clawhub V180
试用Create deterministic, local-first architecture artifacts from typed JSON or TypeScript-aware repo extraction: validate specs, render SVG/HTML diagrams, and emit source-backed receipts agents can cite.
它能做什么
Create deterministic, local-first architecture artifacts from typed JSON or TypeScript-aware repo extraction: validate specs, render SVG/HTML diagrams, and emit source-backed receipts agents can cite.
技能文档
Visual Architecture
Render architecture diagrams with the bundled Python renderer instead of hand-writing SVG.
Workflow
- Create a JSON file with
title,nodes, andedges. - Snap intended node positions to the renderer grid mentally before writing them:
- horizontal grid: 120px
- vertical grid: 80px
- Run:
python3 skills/visual-architecture/scripts/render_architecture.py input.json output.svg
- If
rsvg-convertis available and you need a bitmap preview, run:
rsvg-convert -o output.png output.svg
JSON Input Structure
{
"title": "Service Map",
"nodes": [
{
"id": "web",
"label": "Web App",
"subtitle": "User interface",
"kind": "service",
"x": 120,
"y": 160
},
{
"id": "api",
"label": "API",
"subtitle": "Business logic",
"kind": "service",
"x": 360,
"y": 160
}
],
"edges": [
{
"from": "web",
"to": "api",
"kind": "primary-data",
"label": "HTTP"
}
]
}
Node Kinds
service: rounded rectanglellm: double-border rounded rectangleagent: hexagonmemory: cylinder
Each node requires:
id: unique stringlabel: primary titlekind: one of the node kinds abovex,y: grid-aligned center coordinates
Optional:
subtitle: smaller secondary labelshow_grid: set true to display the editing grid in the exported SVG
Edge Kinds
primary-data: blue solid arrowmemory-write: green dashed arrowcontrol: slate dashed arrow
Each edge requires:
from: source node idto: target node id
Optional:
label: rendered on the route with a shielding background rectsource_side,target_side: force edge anchors (left,right,top,bottom)via: array of orthogonal turn points, each withxandylabel_segment: zero-based segment index to place the label onlabel_offset:[dx, dy]shift for fine label placement
Renderer Guarantees
- Route arrows orthogonally only
- Render in this order: background, arrows, nodes, labels
- Keep label shields behind arrow text for readability
- Stay restrained: clean strokes, no decorative effects, and hide the editing grid unless explicitly requested
Usage Notes
- Prefer this skill when the user wants architecture diagrams, routing maps, or system relationship visuals.
- Choose semantic kinds first, then place nodes on the grid, then add only the edges needed to explain flow.
- Keep diagrams sparse. If a diagram feels crowded, split it into two files instead of forcing a dense composite.
Example
Use examples/service-map.json as a generic starting point for web app, API, worker, database, and LLM provider diagrams.
相关技能
Create, analyze, and optimize OpenClaw workspace configuration files (SOUL.md, IDENTITY.md, USER.md, MEMORY.md, TOOLS.md, AGENTS.md, STYLE.md, HEARTBEAT.md) with guided workflows and best practices validation. Analyzes existing files for patterns, clarity, injection order, and content placement. All work is done in a sandbox area without modifying originals.
Generate beautiful draw.io diagrams with a mandatory visual QA loop. Covers flowcharts, ERD, architecture, sequence, and class diagrams. Use when user reques...
Generate visual HTML pages for code review (diff + risk tags), code walkthrough (call chains + trust boundaries), and architecture analysis (module dependencies + tech debt). Three modes with shared dark-theme template.
Generate visual HTML summaries from OpenClaw session history.
Generate beautiful draw.io diagrams with a mandatory visual QA loop. Covers flowcharts, ERD, architecture, sequence, and class diagrams. Use when user reques...