Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/volcengine/ark-clinpx agentmods add skills/volcengine/ark-cli/arkcli-code-exampleWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/volcengine/ark-cli/arkcli-code-example)<a href="https://agentmods.dev/skills/volcengine/ark-cli/arkcli-code-example"><img src="https://agentmods.dev/badge/skills/volcengine/ark-cli/arkcli-code-example/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/volcengine/ark-cli/arkcli-code-example"><img src="https://agentmods.dev/badge/skills/volcengine/ark-cli/arkcli-code-example.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00116 | $0.01615 |
| Opus 5.5 | $0.00046 | $0.00646 |
| Sonnet 5.5 | $0.00023 | $0.00323 |
| Haiku 4.5 | $0.00012 | $0.00161 |
Grade A, and why
arkcli-code-example scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
description: "arkcli +code-example:为指定基础模型生成多语言(Python / Go / Java / Node / curl)调用示例代码并写入本地文件。数据源是火山方舟 OpenTOP OpenGetSampleCode。当用户需要拿某个基础模型的 SDK / curl 调用示例、保存为本地接入模板时使用。反触发:TTS/ASR/语音模型没有 arkcli 示例代码路径,不能靠补版本解决,只能转 m How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
arkcli +code-example
前置条件: 先阅读
../arkcli-shared/SKILL.md了解认证、全局参数和安全规则。
为指定基础模型生成多语言 SDK 调用示例代码,同时写入本地文件。数据源是火山方舟 OpenTOP OpenGetSampleCode。
什么时候用
- 用户说"生成示例代码 / SDK 示例 / curl 命令 / 怎么调用这个模型",且已经知道模型名
- 想把某个基础模型的多语言调用模板保存到本地
- 教程或技术文档需要引用该基础模型的具体 SDK import、安装包、方法或请求格式:先取得对应版本示例并核对官方文档,不能从模型生成的草稿直接采信接口写法。
教程中的代码事实核对
以真实返回条目的 install、language、io_type 和 code 作为示例依据;明确目标模型/版本、语言及接口路径。更换 SDK 包或版本、图片/视频方法、响应字段、错误码时必须另核对该版本源码或官方文档正文;一个模型的文本示例不能证明所有媒体接口。服务端提供模板也不等于已在本轮执行成功,分别标明“官方示例/静态核对/实际运行”。检索片段或 AI 初稿不足时缩小教程到已查证内容,未验证片段标注或移除,不写成完整已验证接入指南。
示例命令可能将当前 Key 填入文件;遵守共享身份/授权协议,提交教程前将 Key、Token 和签名 URL 等真实凭证替换为占位符并检查附件。不得直接回显未脱敏的生成条目,不为拿示例切换账号或绕过 Access 门禁。
反路由(不要用本命令):
- 只是想试模型效果 →
../arkcli-chat/SKILL.md(文本/多模态对话)或../arkcli-gen/SKILL.md(出图/视频) - 还不知道模型名 → 先
../arkcli-models/SKILL.mdmodels search/get - 需要先创建接入点 →
../arkcli-deploy/SKILL.md - 语音模型(TTS / ASR / 配音 / 朗读 / 播客 / 音色 / 实时语音交互,或
doubao-seed-tts-*/doubao-seed-asr-*/seedasr-*)→ 不使用+code-example。models search能搜到不代表 OpenGetSampleCode 有示例;不要把后端ModelVersion required理解成"补一个版本就能生成",应说明当前 arkcli 不支持语音模型示例代码。
快速开始
# 拿某基础模型的全部语言示例(写入 ./ark-examples/<model>/)
arkcli +code-example --model doubao-seedream-5-0
# 指定版本 + 只看 Python + 结构化输出
arkcli +code-example --model doubao-seedream-5-0 --version 260128 --language python --format json
--model必填,可传基础模型名或合并 ID(doubao-seedream-5-0-260128)--version可选;不传时 CLI 自动推导(合并 ID 拆版本 → 找ArkModels匹配 → GetFoundationModel 取PrimaryVersion兜底),全都拿不到才报错要求显式传--version- 内部机制:接口约束
ModelVersion必填,缺失时 CLI 走上述回退链自动补齐;custom model 走 PrimaryVersion 兜底时 scenario 自动切finetune_inference,foundation model 无论显式版本或 PrimaryVersion 兜底一律保持quick_access --language可选:python/go/java/node/curl(shell是curl别名),默认全部--output-dir可选,默认./ark-examples/<model>--format json输出结构化条目(含language/io_type/install/code)- 语音模型没有 arkcli 示例代码路径;命中 TTS / ASR / 语音交互时停在
arkcli models search <keyword>的发现说明,不要继续调用本命令
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +7 lines dee348d8671f
- 3mo ago First seen · 67 lines · 116 tokens per session scan A 34b34c9c354d
arkcli-code-example is a skill published in the GitHub repository volcengine/ark-cli (155 stars, last pushed 20d ago), licensed Apache-2.0. It adds 116 tokens to every session and 1,615 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
arkcli-code-example compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| arkcli-code-examplevolcengine/ark-cli | Skill | 155 | 20d ago | Apache-2.0 | A | 116 | Claude Code, Codex |
| plugin-systemellmos-ai/skills | Skill | 10 | today | MIT | A | 99 | Claude Code, Codex |
| biopythonsynthetic-sciences/openscience | Skill | 4.5k | today | Apache-2.0 | A | 76 | Claude Code, Codex |
| python-replgptme/gptme | Skill | 4.5k | today | MIT | A | 15 | Claude Code, Codex |
| buncode-yeongyu/senpi | Skill | 530 | today | MIT | A | 237 | Claude Code, Codex |
| rust-agent-handoffbug-ops/zeph | Skill | 68 | yesterday | MIT | A | 94 | Claude Code, Codex |
| pypi-releasealchemiststudiosDOTai/tunacode | Skill | 124 | 1mo ago | MIT | A | 52 | Claude Code, Codex |