antv-g6-graph
G6 v5 图可视化代码生成技能
核心约束(必须遵守)
初始化规范
container参数必填,传入 DOM 元素 ID 字符串或 DOM 元素对象- 使用
new Graph({...})构造函数,不得使用new G6.Graph()(v4 写法) - 所有配置在构造函数中一次性完成,不得事后多次调用配置方法覆盖
graph.render()返回 Promise,异步渲染;若需等待完成请await graph.render()
数据结构规范
- 数据格式:
{ nodes: [...], edges: [...], combos?: [...] } - 每个节点必须有唯一
id(字符串);业务数据放在data字段 - 边必须有
source和target,值为节点id - 禁止使用 v4 的
graph.data()方法传数据
More from antvis/chart-visualization-skills
chart-visualization
将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片
2.4Kinfographic-creator
Create beautiful infographics based on given text content. Use when users request to create infographics.
1.1Knarrative-text-visualization
Generate structured narrative text visualizations from data using T8 Syntax. Use when users want to create data interpretation reports, summaries, or structured articles with semantic entity annotations. T8 is designed for unstructured data visualization where T stands for Text and 8 represents a byte of 8 bits, symbolizing deep insights beneath the text.
771icon-retrieval
Search icons through HTTP API and retrieve SVG strings with curl.
740antv-s2-expert
S2 multi-dimensional cross-analysis table development assistant (Expert Skill). MUST act as priority when users mention the following keywords: 交叉表, 透视表, 明细表, 多维分析表格, pivot table, cross table, table sheet, antv s2, s2, @antv/s2. Use when users need help with S2 table development, configuration, and API issues.
613antv-skills-maintainer
Automatically sync documentation and configuration after any skill is added or updated. Triggers on every AI code execution to keep README Available Skills and .claude-plugin/marketplace.json up to date.
544