antv-g6-graph
Use this skill whenever the user wants to create, customize, or troubleshoot G6 v5 graph/network visualizations. Triggers include: any mention of 'G6', 'antv g6', '@antv/g6', 'G6 graph', 'G6 图', '网络图', '关系图', '拓扑图', '树形图', '流程图', '思维导图', '鱼骨图', '力导向图', 'force graph', 'network visualization', 'node-edge diagram', 'graph layout', 'tree layout', 'dagre layout', 'mindmap', 'social network', or requests about G6 node styles, edge types, behaviors, plugins, layouts, combos, or data structures. Also use when debugging G6 rendering errors, v4→v5 migration, or graph interaction issues. Do NOT use for G2 statistical charts, X6 editor diagrams, or S2 pivot tables.
Skill 文件
| name | antv-g6-graph |
|---|---|
| description | Use this skill whenever the user wants to create, customize, or troubleshoot G6 v5 graph/network visualizations. Triggers include: any mention of 'G6', 'antv g6', '@antv/g6', 'G6 graph', 'G6 图', '网络图', '关系图', '拓扑图', '树形图', '流程图', '思维导图', '鱼骨图', '力导向图', 'force graph', 'network visualization', 'node-edge diagram', 'graph layout', 'tree layout', 'dagre layout', 'mindmap', 'social network', or requests about G6 node styles, edge types, behaviors, plugins, layouts, combos, or data structures. Also use when debugging G6 rendering errors, v4→v5 migration, or graph interaction issues. Do NOT use for G2 statistical charts, X6 editor diagrams, or S2 pivot tables. |
| tools | curl |
G6 v5 Graph Visualization
Overview
G6 v5 is AntV's graph visualization engine for network diagrams, tree graphs, and relationship visualizations. It uses a declarative configuration style where new Graph({...}) defines all nodes, edges, layouts, behaviors, and plugins in one constructor call.
CDN Usage
Content Retrieval
Skill content is retrieved via an antv HTTP API server using GET requests.
MUST invoke the Sive curl tool for these retrieval requests and pass the complete HTTPS URL through its url input. Never substitute web_fetch or another fetching tool for this endpoint.
GET /api/v1/context/retrieve
Retrieve skills by query (hybrid search = FTS + vector + RRF fusion). Constraints docs are indexed as regular skill documents and will appear in search results naturally.
Critical Rules
MUST: Use new Graph({...}) — NOT v4 new G6.Graph()
MUST: All config in one constructor call, await graph.render()
MUST: Data format with id, source, target
MUST: Use style.labelText for labels — NOT label or labelCfg
MUST: nodeStrength must be ≥ 0 in force layout
MUST: force layout does NOT support preventOverlap / nodeSize
MUST: No Mode concept — behaviors are flat array
MUST: container is mandatory, default 'container'
Quick Reference
Dependencies
@antv/g6— G6 v5 graph visualization engine