Home / qwenlm / qwen-code · packages/core/src/skills/bundled/batch-api/SKILL.md · GitHub

batch-api skillA

batch-api is agent-read markdown (skill) from qwenlm/qwen-code: Prepare a many-file, single-turn transform (translate, rewrite, extract) as a plan and submit it to the asynchronous, half-price DashScope Batch API; results are delivered as new files hours later. Invoke explicitly with /batch-api..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified before it reaches your agent: the main file against the SHA-256 recorded here, the others against the git hashes of its source commit. The deterministic audit below grades the latest version, and the same checks always give the same file the same grade.

What the file says

# /batch-api — Agent-prepared Batch API workflow

**Hard rule for this whole skill:** if any `qwen batch …` command fails, or
the task turns out to be unsuitable, report what happened in a few lines and
stop (the one exception, a plan-field error from `run`, is in §4). Never fall back to doing the transform yourself in this session — the
user chose the half-price asynchronous path explicitly, and silently doing
the work at full realtime price is exactly what they opted out of. Offering
it as a choice ("I can do this realtime instead, at full price") is fine;
doing it without being asked is not.

The user explicitly chose **async batch mode** by typing `/batch-api`. This mode
trades latency for price: the provider bills Batch requests at 50% of the
realtime list price (with no context-cache benefit), and a job takes tens of
minutes to hours to finish (completion window 24h or more). Your job is to
turn the user's task into a small **plan file** that the deterministic
executor (`qwen batch run`) submits. You never write request JSONL by hand
and never call the Batch API yourself.

## 0. Check readiness before anything else

Run every `qwen batch …` command with the shell tool as
…

Read the whole file at its exact version.

How to install

Latest version
mdr add qwenlm/qwen-code/batch-api@git:20260925.c3a4058
Exact content
mdr add qwenlm/qwen-code/batch-api@sha256:cd51a38b2c8d0db6

Pin to a label to follow the author's releases, or to a sha256 for exact bytes. Either way the resolved hash is written to mdr.lock, and mdr install fetches those bytes again and checks them, so it installs them exactly or fails.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_5ssjt3hdptmq24xz.svg)](https://markdownregistry.com/a/art_5ssjt3hdptmq24xz)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260925.c3a4058 latest2026-09-25 c3a4058 8,832 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8832 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

qwenlm/qwen-code · 28,141 stars · license Apache-2.0 · pushed 2026-09-26 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_5ssjt3hdptmq24xz
GET https://markdownregistry.com/api/v1/resolve?ref=qwenlm/qwen-code/batch-api
GET https://markdownregistry.com/api/v1/blob/cd51a38b2c8d0db6118acda0e2028d9cd381ed32ca16ca223b52c171419906b9

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from qwenlm/qwen-code

agent-reproduce-align skill
qwenlm/qwen-code · .qwen/skills/agent-reproduce-align/SKILL.md · Use after a Codex or Claude Code feature has been implemented in Qwen Code to run the selected reference agent and Qwen…
git:20260602.bec97f4 · audit A · 28,141 stars
agent-reproduce-feature skill
qwenlm/qwen-code · .qwen/skills/agent-reproduce-feature/SKILL.md · Use when reproducing an existing Codex or Claude Code feature in Qwen Code or another agent CLI by choosing a reference…
git:20260602.bec97f4 · audit A · 28,141 stars
autofix skill
qwenlm/qwen-code · .qwen/skills/autofix/SKILL.md · Review and repair current local changes until they converge, or run Qwen Code Autofix issue and review workflows from…
git:20260910.67fe20a · audit A · 28,141 stars
bugfix skill
qwenlm/qwen-code · .qwen/skills/bugfix/SKILL.md · Fix a bug from a GitHub issue, following the reproduce-first
git:20260711.909f0fe · audit A · 28,141 stars
ci-flaky-patrol skill
qwenlm/qwen-code · .qwen/skills/ci-flaky-patrol/SKILL.md · Classify a bounded batch of stale PR CI failures and choose the safest response.
git:20260719.0764276 · audit A · 28,141 stars
codegraph skill
qwenlm/qwen-code · .qwen/skills/codegraph/SKILL.md · Analyze indexed codebases via graph database (neug) and vector index (zvec). Covers call graphs, dependencies, dead…
git:20260513.fd53527 · audit A · 28,141 stars
create-issue skill
qwenlm/qwen-code · .qwen/skills/create-issue/SKILL.md · Draft and submit a GitHub issue from a user idea or bug description, with bilingual body and correct labels.
git:20260611.4f1203b · audit A · 28,141 stars
deflake skill
qwenlm/qwen-code · .qwen/skills/deflake/SKILL.md · Stabilize a flaky test with a minimal, assertion-preserving fix — never by weakening or deleting the check.
git:20260719.0764276 · audit A · 28,141 stars
docs-audit-and-refresh skill
qwenlm/qwen-code · .qwen/skills/docs-audit-and-refresh/SKILL.md · Audit the repository's docs/ content against the current codebase,
git:20260609.30b52ec · audit A · 28,141 stars
docs-update-from-diff skill
qwenlm/qwen-code · .qwen/skills/docs-update-from-diff/SKILL.md · Review local code changes with git diff and update the official
git:20260609.30b52ec · audit A · 28,141 stars
e2e-testing skill
qwenlm/qwen-code · .qwen/skills/e2e-testing/SKILL.md · Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic…
git:20260611.4f1203b · audit A · 28,141 stars
feat-dev skill
qwenlm/qwen-code · .qwen/skills/feat-dev/SKILL.md · End-to-end workflow for implementing a non-trivial qwen-code
git:20260711.909f0fe · audit A · 28,141 stars

Every file in qwenlm/qwen-code

Browse by kind, by grade A, or by owner.