Install
openclaw skills install extract-antv-topic为AI开发和QA设计的模型上下文协议服务器,提供AntV文档上下文和代码示例。
openclaw skills install extract-antv-topic为AI开发和QA设计的模型上下文协议服务器,提供AntV文档上下文和代码示例。
此 Skill 必须配置 API 密钥才能使用。
.env 中没有 XBY_APIKEY,必须使用 AskUserQuestion 工具向用户询问 API 密钥scripts.config.set_api_key(api_key) 保存,然后继续处理你(大模型)是路由层,负责理解用户意图、选择工具、提取参数。代码只负责调用API。
用户输入 → 你选择工具 → 提取该工具需要的参数 → 调用 scripts.tools 中的函数 → 返回结果给用户
scripts.config.settings.api_key 为空,使用 AskUserQuestion 询问用户,拿到后调用 scripts.config.set_api_key(key) 保存scripts.tools 中的函数,例如 scripts.tools.search_schools(score='520', province='北京', category='综合')raw 数据整理后展示给用户根据用户意图选择对应的工具函数:
| 用户意图 | 工具函数 |
|---|---|
| AntV Intelligent Assistant Preprocessing Tool - Specifically designed to handle any user queries related to AntV visualization libraries. | |
| This tool is the first step in processing AntV technology stack issues, responsible for intelligently identifying, parsing, and structuring user visualization requirements. |
MANDATORY: Must be called for ANY new AntV-related queries, including simple questions. Always precedes query_antv_document tool.
When to use this tool:
Key features:
scripts.tools.extract_antv_topic |
| AntV Context Retrieval Assistant - Fetches relevant documentation, code examples, and best practices from official AntV resources. Supports g2, g6, l7, x6, f2, s2, g, ava, adc libraries, and handles subtasks iterative queries.MANDATORY: Must be called for ANY AntV-related query (g2, g6, l7, x6, f2, s2, g, ava, adc), regardless of task complexity. No exceptions for simple tasks.
When to use this tool:
scripts.tools.query_antv_document |如果参数不完整,使用 AskUserQuestion 向用户询问缺失的参数。
工具描述:AntV Intelligent Assistant Preprocessing Tool - Specifically designed to handle any user queries related to AntV visualization libraries. This tool is the first step in processing AntV technology stack issues, responsible for intelligently identifying, parsing, and structuring user visualization requirements.
MANDATORY: Must be called for ANY new AntV-related queries, including simple questions. Always precedes query_antv_document tool.
When to use this tool:
Key features:
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| query | string | true | User specific question or requirement description | |
| library | string | false | AntV library name (optional) - If not specified, tool will automatically detect project dependencies and intelligently recommend | |
| maxTopics | integer | false | 5.0 | Maximum number of extracted topic keywords, default 5, can be increased appropriately for complex tasks |
工具描述:AntV Context Retrieval Assistant - Fetches relevant documentation, code examples, and best practices from official AntV resources. Supports g2, g6, l7, x6, f2, s2, g, ava, adc libraries, and handles subtasks iterative queries.
MANDATORY: Must be called for ANY AntV-related query (g2, g6, l7, x6, f2, s2, g, ava, adc), regardless of task complexity. No exceptions for simple tasks.
When to use this tool:
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| library | string | true | Specified AntV library type, intelligently identified based on user query | |
| query | string | true | User specific question or requirement description | |
| topic | string | true | Technical topic keywords (comma-separated). Provided by extract_antv_topic or directly extracted from simple questions. | |
| intent | string | true | Extracted user intent, provided by extract_antv_topic tool or directly extracted from simple questions. | |
| tokens | integer | false | 5000.0 | tokens for returned content |
| subTasks | array | false | Decomposed subtask list for complex tasks, supports batch processing |
工具函数返回 dict 对象:
result["raw"] - API 原始返回数据(JSON),直接将此数据整理后展示给用户result["success"] - 是否成功(True/False)result["message"] - 状态消息xiaobenyang_gaokao_skill/
├── scripts/
│ ├── __init__.py
│ ├── config.py # 配置管理 + set_api_key()
│ ├── call_api.py # API 客户端 + call_api()
│ └── tools.py # 工具函数(直接调用)
├── requirements.txt
└── SKILL.md