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.01332 |
| Opus 5.5 | $0.00046 | $0.00533 |
| Sonnet 5.5 | $0.00023 | $0.00266 |
| Haiku 4.5 | $0.00012 | $0.00133 |
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 — 67 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 命令 / 怎么调用这个模型",且已经知道模型名
- 想把某个基础模型的多语言调用模板保存到本地
反路由(不要用本命令):
- 只是想试模型效果 →
../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>的发现说明,不要继续调用本命令
0.1.17 变更:旧版
--endpoint-id已移除——新数据源按基础模型取码,不再支持按已有接入点 ID 取码。如需指向某 endpoint,生成后把代码里的model="..."手动改成你的ep-xxx。
命令一览
| 命令 | 说明 |
|---|---|
arkcli +code-example --model <name> [--version <ver>] [--language <lang>] [--output-dir <dir>] [--format json] |
生成多语言示例代码并写入本地 |
What ships with it
4 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 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 (143 stars, last pushed 8d ago), licensed Apache-2.0. It adds 116 tokens to every session and 1,332 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.
Other skills, from other repositories
plugin-system
Generic plugin system for Python applications. Auto-discovery, validation, fault tolerance. Zero dependencies (Python stdlib only).
biopython
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…
python-repl
Interactive Python REPL automation with common helpers and best practices.
bun-1-4
Read before a js eval cell that installs a package, spawns a server or PTY, or starts a long run, and before any bun -e, script, server, CLI, test, bundle, or package-management work: this session's eval js kernel runs Bun 1.4+ (this skill is present only when it does). Bun 1.4 ships builtins that replace 15+ npm deps…
pypi-release
This skill should be used when releasing tunacode-cli to PyPI. It keeps the existing local release checks, then hands the actual PyPI upload to a GitHub Actions workflow that uses the repository's PYPIAPITOKEN secret.
rust-agent-handoff
Handoff protocol for the Rust multi-agent development team (rust-architect, rust-developer, rust-testing-engineer, rust-performance-engineer, rust-security-maintenance, rust-code-reviewer, rust-cicd-devops, rust-debugger, rust-critic). Use only when orchestrating subagents via structured YAML files in .local/handoff/.…