Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add darellchua2/opencode-config-template --skill zai-asr-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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/darellchua2/opencode-config-template/zai-asr-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/zai-asr-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/zai-asr-skill/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/darellchua2/opencode-config-template/zai-asr-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/zai-asr-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00059 | $0.01007 |
| Opus 5.5 | $0.00024 | $0.00403 |
| Sonnet 5.5 | $0.00012 | $0.00201 |
| Haiku 4.5 | $0.00006 | $0.00101 |
Grade A, and why
zai-asr-skill 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 2mo 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.
> Harness binding (§Portability contract): the `ZAI_API_KEY` env var is the portable credential row — it alone works on every harness. The `~/.local/share/opencode/auth.json` fallback reads OpenCode's credential store (b How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What I do
I provide the exact recipe for an agent to transcribe an audio file via the Z.AI
GLM-ASR API and return the transcript text. OpenCode has no voice-input path,
so transcription happens as a file-based tool call: POST /audio/transcriptions.
Constraints (hard limits — check before calling)
- Models:
glm-asr-2512 - File: ≤ 25 MB, ≤ 30 seconds,
.wavor.mp3 - Longer audio must be split first (e.g.
ffmpeg -f segment -segment_times <n>) — transcribe the segments in order and concatenate.
Prerequisite — API key resolution
Harness binding (§Portability contract): the
ZAI_API_KEYenv var is the portable credential row — it alone works on every harness. The~/.local/share/opencode/auth.jsonfallback reads OpenCode's credential store (bonus row; ignore elsewhere — export the env var). Other/none (no auth.json store): exportZAI_API_KEY— the env var alone is sufficient. Recipe execution needs bash + curl + jq (any harness with a shell tool).
KEY="${ZAI_API_KEY:-$(jq -r '.["zai"].key // .["zai-coding-plan"].key // empty' \
~/.local/share/opencode/auth.json 2>/dev/null)}"
[ -z "$KEY" ] && { echo "ZAI_API_KEY not found — set it (export ZAI_API_KEY) or run \`opencode auth login\` (Z.AI)."; exit 1; }
If neither source has the key, stop and report — do not proceed.
Recipe
# --- options ---
FILE="path/to/audio.mp3" # REQUIRED — .wav or .mp3, ≤25MB, ≤30s
BASE="${ZAI_MEDIA_ENDPOINT:-https://api.z.ai/api/paas/v4}" # pay-as-you-go ONLY
# pre-flight: size + duration guards
[ -f "$FILE" ] || { echo "No such file: $FILE"; exit 1; }
[ "$(wc -c <"$FILE")" -le 26214400 ] || { echo "File >25MB — split it first"; exit 1; }
RESP=$(curl -sS --max-time 120 -X POST "$BASE/audio/transcriptions" \
-H "Authorization: Bearer $KEY" \
-F "model=glm-asr-2512" \
-F "file=@$FILE")
TEXT=$(printf '%s' "$RESP" | python3 -c '
import sys, json
d = json.load(sys.stdin)
if d.get("error"):
sys.stderr.write("API error: " + json.dumps(d["error"]) + "\n"); sys.exit(1)
print(d.get("text",""))') || { echo "Transcription failed. Response: $RESP"; exit 1; }
echo "TRANSCRIPT: $TEXT"
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.
- 2mo ago Changed · +2 lines 3f1f866a1162
- 3mo ago First seen · 83 lines · 59 tokens per session scan A c04b85a0cb7b
zai-asr-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 1,007 once invoked, about $0.0002 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-09-03.
zai-asr-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| zai-asr-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 59 | Claude Code, Codex |
| minimax-cliLingtai-AI/lingtai | Skill | 508 | 1mo ago | Apache-2.0 | A | 72 | Claude Code, Codex |
| media-generationonimusya/media-gen | Skill | 8 | 14d ago | MIT | A | 92 | Claude Code |
| kling-videorefly-ai/refly-skills | Skill | 205 | 1mo ago | none | A | 56 | Claude Code, Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |