arkcli-code-example

arkcli-code-example is a skill for Claude Code, Codex from volcengine/ark-cli. It costs 116 tokens per session (1,615 once invoked), scanned A, original, Apache-2.0.

A code-example generator for calling a named ARK foundation model through software. It creates examples in supported programming languages and saves them to local files.

In plain words
What is it for?
Use it when you already know the model name and need starter code for an SDK call, such as a Python example or a curl command.
Why use it?
It removes the need to write a model's basic SDK or command-line request from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **前置条件:** 先阅读 [`../arkcli-shared/SKILL.md`](../arkcli-shared/SKILL.md) 了解认证、全局参数和安全规则。.

Good fit Use it when you already know the model name and need starter code for an SDK call, such as a Python example or a curl command.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/volcengine/ark-cli
agentmods
npx agentmods add skills/volcengine/ark-cli/arkcli-code-example

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for arkcli-code-example

README.md
[![agentmods](https://agentmods.dev/badge/skills/volcengine/ark-cli/arkcli-code-example/github.svg)](https://agentmods.dev/skills/volcengine/ark-cli/arkcli-code-example)
Your own site
<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.

agentmods 80×15 button for arkcli-code-example

Your own site · 80×15
<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>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash dee348d8671f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/demo-code/python.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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
skills/arkcli-code-example/SKILL.md · 74 lines

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.md models 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> 的发现说明,不要继续调用本命令

Read the full file on GitHub · 74 lines

Files

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.

Changes

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.

  1. 1mo ago Changed · +7 lines dee348d8671f
  2. 3mo ago First seen · 67 lines · 116 tokens per session scan A 34b34c9c354d

Subscribe to this mod's changes

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.

Related

arkcli-code-example compared with skills from other repositories

arkcli-code-example next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
arkcli-code-examplevolcengine/ark-cliSkill15520d agoApache-2.0A116Claude Code, Codex
plugin-systemellmos-ai/skillsSkill10todayMITA99Claude Code, Codex
biopythonsynthetic-sciences/openscienceSkill4.5ktodayApache-2.0A76Claude Code, Codex
python-replgptme/gptmeSkill4.5ktodayMITA15Claude Code, Codex
buncode-yeongyu/senpiSkill530todayMITA237Claude Code, Codex
rust-agent-handoffbug-ops/zephSkill68yesterdayMITA94Claude Code, Codex
pypi-releasealchemiststudiosDOTai/tunacodeSkill1241mo agoMITA52Claude Code, Codex