batch-execution

A guide for safely processing many similar files, texts, pages, settings, or data records as one batch.

In plain words
What is it for?
Use it to define batch boundaries, test a representative sample, check results, track successes and failures, and stop safely when unexpected cases appear.
Why use it?
It reduces the chance that one mistake spreads across the whole batch and makes recovery difficult.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/pieable/dragon-ball-agent/batch-execution
Any agent
npx skills add pieable/dragon-ball-agent --skill batch-execution
Clone the repo
git clone --depth 1 https://github.com/pieable/dragon-ball-agent

Made for: Claude Code, Codex.

Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00045 $0.00877
Opus 5 $0.00023 $0.00439
Sonnet 5 $0.00009 $0.00175
Haiku 4.5 $0.00005 $0.00088

Measured 2d ago against content hash fedcbd51dfae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

batch-execution scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/batch-execution/SKILL.md · 39 lines

What it actually says

Batch Execution

这个 Skill 只处理批量阶段的风险控制。简单翻译、短解释、单个文件的稳定修改和能够立即完整验收的小任务直接完成,不增加小样流程。

先确定整批边界

开始前写清批量对象、允许变化的内容、必须保持不变的内容、完成后的检查方式,以及中断后如何识别已处理和未处理部分。存在外部写入、付费调用、覆盖原数据或难以撤销的操作时,先准备可恢复副本、事务、幂等标识或明确的回滚方式。

选择能够暴露失败的小样

先处理一小组真实对象。小样应包含最可能失败或最能代表差异的对象,例如最长和最复杂的文本、结构特殊的文档页面、边界数据、真实外部依赖、易冲突的配置段或跨模块的关键路径。不要只选最短、最整齐或最容易成功的对象。

小样规模以能够检验当前处理方法和验收方式为准,不按固定数量机械抽取。若不同对象会走不同处理路径,每条会影响整批结果的路径至少包含一个样本。

验收后再扩大

小样完成后检查实际产物和差异,确认内容保留、格式或字段变化、外部状态、成本和错误处理都符合本次要求。用户需要判断文风、版式、主观质量或不可逆外部结果时,先交给用户验收。结果能够由测试、schema、渲染比较、校验和、记录计数或其他明确检查判断时,可以自动验收。

小样通过只证明已覆盖的处理路径可行。进入整批前,确认剩余对象没有新的结构、权限、依赖或输出类型。发现新类型时,把它加入小样而不是直接批量处理。

交接到执行者

加载本 Skill 的主任务或阶段负责人掌握整批边界、小样选择、扩大条件和整体验收。能够独立验收的批次或分片通常交给 worker-luna。Spark 额度可用而且极快输出能明显缩短等待时,可以选择 worker。合同写清对象范围、允许变化与保持项、已验收方法和证据、成功、失败和跳过的定义、停止与恢复方式、普通失败处理权限以及需要交回的计数。目标角色没有自动获得本 Skill 时,把这些必要条件写进合同,或指定它读取本 Skill 的准确路径。

执行者在合同内处理分片并报告新对象类型、异常和未验证项。主任务或阶段负责人整合各分片的覆盖、重叠、缺口和恢复状态,完成整批验收。单个分片成功只证明该分片通过。

执行整批并及时停止

沿用已经验收的处理方式和检查口径执行整批。开始阶段先检查少量连续结果,确认批量入口、参数和目标范围与小样一致,再继续处理余量。保留成功数、失败数、跳过项和可恢复标识。

出现未在小样中覆盖的结构、连续失败、结果偏离已验收样本、成本明显超出估计或无法可靠区分已处理对象时,停止扩大处理范围。保留已完成结果,报告偏差及其影响,由负责整体批量风险和跨分片影响的主任务或阶段负责人决定补充小样、调整方法或终止任务。

交付时说明小样覆盖了哪些高风险对象、由谁或什么检查完成验收、整批处理数量、失败与跳过项,以及仍未覆盖的对象类型。

Files

What ships with it

2 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. 2d ago First seen · 39 lines · 45 tokens per session scan A fedcbd51dfae

Subscribe to this mod's changes

batch-execution is a skill published in the GitHub repository pieable/dragon-ball-agent (10 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 877 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens