跳到正文
FunCoding

canvas-network-viz

Canvas/A2UI inline network visualizations — topology maps, health dashboards, alert cards, change timelines, config diffs, path traces, and health scorecards rendered directly in the OpenClaw chat interface. Consumes existing MCP server data (pyATS, Grafana, Prometheus, ServiceNow, SuzieQ, Batfish) and outputs A2UI JSON for Canvas rendering. Use when the operator asks to see a network map, device dashboard, alert summary, change request timeline, config diff, forwarding path trace, or health scorecard.

Star
740
分类
图表
许可证
Apache-2.0
最近提交
2026年12月2日

workspace/skills/canvas-network-viz/SKILL.md

在 GitHub 上查看

Canvas Network Visualization

Overview

This skill renders inline network visualizations in the OpenClaw chat interface using the Canvas/A2UI framework. It does NOT establish direct device connections or create new MCP servers. All data is sourced from existing MCP tools.

Visualization Types

TypeComponentData SourcesTrigger
Topology Maptopology-mappyATS CDP/LLDP, health metrics"show network topology"
Dashboard Paneldashboard-panelpyATS, Grafana, Prometheus"show health dashboard for {device}"
Alert Cardalert-cardGrafana alerts, Prometheus alertmanager"show current alerts"
Change Timelinechange-timelineServiceNow"show change request {CR} status"
Diff Viewdiff-viewpyATS config/route/ACL"show config diff for {device}"
Path Tracepath-tracepyATS, SuzieQ"trace path from {src} to {dst}"
Health Scorecardhealth-scorecardpyATS, Grafana, Prometheus"show health scorecard for {site}"

How It Works

  1. Operator requests a visualization via natural language
  2. Skill identifies visualization type from request pattern
  3. Data is fetched from relevant MCP servers via existing tools
  4. Data is transformed into the visualization-specific content model
  5. A2UI JSON envelope is built with component type, props, and content
  6. Canvas framework renders the visualization inline in chat
  7. GAIT audit log entry is emitted for the visualization event

Output Format

All visualizations produce A2UI JSON:

{
  "a2ui": {
    "version": "1.0",
    "type": "canvas",
    "component": "<visualization-type>",
    "props": {
      "id": "<uuid>",
      "title": "<title>",
      "timestamp": "<ISO 8601>",
      "dataSources": [...],
      "scope": {...},
      "warnings": [...],
      "content": {...}
    }
  }
}

Graceful Degradation

  • If a data source is unavailable, partial data is rendered with warnings
  • If no data is available at all, an error-card is returned with guidance
  • Health status defaults to "unknown" (gray) when metrics are missing
  • Large topologies (200+ nodes) are automatically clustered by site

Integration with Other Skills

SkillIntegration
gait-session-trackingAll visualization events are GAIT-logged
pyats-topologyCDP/LLDP discovery data for topology maps
pyats-health-checkHealth metrics for node coloring and dashboards
grafana-observabilityPrometheus metrics, alerts, dashboard data
prometheus-monitoringDirect PromQL queries for metrics
servicenow-change-workflowChange request lifecycle data

Important Rules

  • Read-only: This skill never modifies network devices or MCP server state
  • No new credentials: Uses existing MCP server connections only
  • Complements Three.js HUD: Does not replace ui/netclaw-visual/
  • GAIT mandatory: Every visualization generation is audit-logged
  • WCAG 2.1 AA: Color scales meet accessibility contrast requirements

相似的 Skill

design

NEnextlevelbuilder/ui-ux-pro-max-skill157k近 7 天新增 3,225 个 star

slides

NEnextlevelbuilder/ui-ux-pro-max-skill157k近 7 天新增 3,225 个 star

diagram

GAgarrytan/gstack143k近 7 天新增 598 个 star

官方

dating-web

NEnexu-io/open-design111k近 7 天新增 1,277 个 star

官方

critique

NEnexu-io/open-design111k近 7 天新增 1,277 个 star

精选

archify

生成可交互的架构图、时序图和数据流图,可导出 PNG、SVG。

TTtt-a1i/archify102k近 7 天新增 2,617 个 star