Agent skill
volcengine-documentation
Quellcode ansehen: bytedance/agentkit-samples
Installation
npx skills add bytedance/agentkit-samples --skill volcengine-documentation35
Installationen
EU-hosted inference API
Power your AI agent skills with open-source models.
Drop-in OpenAI-compatible API. No data leaves Europe.
MiniMax
MiniMax M3
$0.40 / $1.40
per M tokens
Z.ai
GLM 5.3 Flash
$0.20 / $0.60
per M tokens
MoonshotAI
Kimi K3
$4.00 / $18.00
per M tokens
DeepSeek
DeepSeek V4.1 Flash
$0.40 / $1.40
per M tokens
volcengine-documentation 火山引擎文档技能
功能描述
火山引擎文档综合查询技能,支持文档检索和内容获取两个核心功能,火山引擎文档是火山最权威的官方数据,涵盖全产品使用全链路。
决策逻辑(必看)
触发判断规则
- 用户提供文档链接:直接调用
fetch接口获取完整内容,无需先检索。
search 和 fetch 配合规则
- 用户提问类需求:优先调用
search接口(默认不携带ServiceCodes参数),返回5条结果,优先使用返回的Content内容回答。 - 二次检索优化:如果第一次搜索结果匹配度不高,可根据第一次返回结果中的ServiceCodes字段,携带对应产品编码参数执行二次检索,缩小范围获取更精准结果。
- 需要完整文档内容:先调用
search找到对应文档链接,再调用fetch获取全文内容。
功能说明
1. 文档检索 (search)
根据用户问题检索相关火山引擎官方文档,支持按产品过滤。
- 请求地址:
https://docs-api.cn-beijing.volces.com/api/v1/doc/search
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Query | string | 是 | 用户的具体问题描述 |
| Limit | number | 否 | 检索返回的文档数量,默认返回5篇 |
| ServiceCodes | array<string> | 否 | 产品过滤条件,指定仅查询某几个产品的文档,可通过返回结果中的ServiceCodes字段获取产品编码 |
返回参数
核心有效数据在 Result.DocList 字段中,每个文档项包含:
| 字段名 | 类型 | 说明 |
|---|---|---|
| Title | string | 官方文档标题 |
| Url | string | 文档官方访问链接 |
| Content | string | 文档完整内容 |
| ServiceCodes | array<string> | 文档所属产品编码列表 |
2. 内容获取 (fetch)
根据火山引擎官方文档链接,获取对应的完整文档内容,支持结构化解析文档标题、正文内容。
- 请求地址:
https://docs-api.cn-beijing.volces.com/api/v1/doc/fetch
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| Url | string | 是 | 火山引擎官方文档链接,格式如 https://www.volcengine.com/docs/6349/162514 |
⚠️ 重要处理规则:
如果Url包含query参数(例如 https://www.volcengine.com/docs/6396/624853?lang=zh),需要在请求前去掉所有query参数,只保留 https://www.volcengine.com/docs/6396/624853 部分进行请求。
返回参数
核心有效数据在 Result 字段中:
| 字段名 | 类型 | 说明 |
|---|---|---|
| Title | string | 文档的完整标题 |
| Content | string | 文档的完整正文内容,结构化解析后的文本 |
结果处理规则
通用强制规则
- 所有回答末尾必须附上对应的官方文档链接作为参考来源,使用
[文档标题](纯净URL)格式,每条结果都要标注来源地址 - 如果返回多个结果,按相关性排序展示,最多展示3条最相关的结果,每条结果都附带对应的文档链接
- 链接必须使用脚本返回的
CleanUrl(已剥离所有query参数),禁止使用带?lang=zh等参数的URL
检索结果处理
- 优先使用返回的Content内容回答用户问题,信息更准确
- 接口直接返回文档完整内容,无需做额外摘要提炼
内容获取结果处理
- 接口直接返回文档完整内容,可直接使用无需额外处理
工具使用方法
检索文档
python {skill_dir}/scripts/volcengine_docs.py search "查询关键词" [返回数量] [产品编码1,产品编码2...]示例:
python {skill_dir}/scripts/volcengine_docs.py search "tos是什么" 1 tos获取文档完整内容
python {skill_dir}/scripts/volcengine_docs.py fetch "火山引擎文档链接"示例:
python {skill_dir}/scripts/volcengine_docs.py fetch "https://www.volcengine.com/docs/6349/162514?lang=zh"Verwandte Skills
Mehr aus dieser Quelle: bytedance/agentkit-samples
byted-web-search
bytedance/agentkit-samples
610 installs
byted-seedream-image-generate
bytedance/agentkit-samples
298 installs
byted-las-video-edit
bytedance/agentkit-samples
208 installs
byted-seedance-video-generate
bytedance/agentkit-samples
180 installs
byted-text-to-speech
bytedance/agentkit-samples
176 installs
byted-las-pdf-parse-doubao
bytedance/agentkit-samples
164 installs
So verwenden Sie diesen Skill
- 1
Install volcengine-documentation by running
npx skills add bytedance/agentkit-samples --skill volcengine-documentationin your project directory. Führen Sie den obigen Installationsbefehl in Ihrem Projektverzeichnis aus. Die Skill-Datei wird von GitHub heruntergeladen und in Ihrem Projekt platziert. - 2
Keine Konfiguration erforderlich. Ihr KI-Agent (Claude Code, Cursor, Windsurf usw.) erkennt installierte Skills automatisch und nutzt sie als Kontext bei der Code-Generierung.
- 3
Der Skill verbessert das Verständnis Ihres Agenten für volcengine-documentation, und hilft ihm, etablierte Muster zu befolgen, häufige Fehler zu vermeiden und produktionsreifen Code zu erzeugen.
Was Sie erhalten
Skills sind Klartext-Anweisungsdateien — kein ausführbarer Code. Sie kodieren Expertenwissen über Frameworks, Sprachen oder Tools, das Ihr KI-Agent liest, um seine Ausgabe zu verbessern. Das bedeutet null Laufzeit-Overhead, keine Abhängigkeitskonflikte und volle Transparenz: Sie können jede Anweisung vor der Installation lesen und prüfen.
Kompatibilität
Dieser Skill funktioniert mit jedem KI-Coding-Agenten, der das skills.sh-Format unterstützt, einschließlich Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider und anderen Tools, die projektbezogene Kontextdateien lesen. Skills sind auf Transportebene framework-agnostisch — der Inhalt bestimmt, für welche Sprache oder welches Framework er gilt.
Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.