一键导入
batch-run
Apply the same prompt or operation to a list of items in turn, collecting results. Useful for "do X to each of these files / PRs / records" tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply the same prompt or operation to a list of items in turn, collecting results. Useful for "do X to each of these files / PRs / records" tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
How to build a NEW tool of your own by writing its code in your sandbox, testing it, and forging it into a live, callable tool with `env(action="forge_tool")`. Use when no existing tool does what you need and you can implement it as a small script. Multiple tools + skills can be saved together as one reusable Sandbox Tool Pack.
How to inspect and edit your OWN operating environment at runtime — system prompt, active tools, and skills — using the `env` tool. Use when you need to change your own capabilities (turn a tool on/off, rewrite your instructions, author a new skill) or save them for this session.
Run the same task on a recurring cron schedule. Parses interval syntax (5m, 2h, 1d, "*/15 * * * *"), records the schedule, and acknowledges back to the user.
Review code in the current working tree across three independent dimensions (reuse, quality, efficiency) and synthesise a small punch-list of high-value cleanups.
Interview the user about a workflow they keep repeating, then generate a reusable SKILL.md and write it to disk so the next session starts with the skill already loaded.
Capture the host's environment, working directory, recent git activity, and pipeline-relevant state so you can diagnose "what's actually happening on the machine".
| name | Batch Run |
| description | Apply the same prompt or operation to a list of items in turn, collecting results. Useful for "do X to each of these files / PRs / records" tasks. |
| category | workflow |
| effort | medium |
| when_to_use | When the user gives you a list and asks you to do the same thing to every entry — "review each of these PRs", "summarise each file in this dir", "rename every constant matching this pattern". Don't use for tasks that need per-item planning; use for genuinely uniform operations. |
| arguments | ["items","operation"] |
| argument_hint | items=<comma-separated list> operation=<verb phrase> |
| examples | ["items=\"src/auth.ts, src/db.ts, src/api.ts\" operation=\"summarise the file\"","items=\"#101, #103, #107\" operation=\"check if it's ready to merge\"","items=\"users, orders, payments\" operation=\"describe the table's purpose\""] |
| version | 1.0.0 |
You're applying one operation across a list. Be uniform: every item should get the same depth and same output shape. The caller's downstream pipeline almost certainly expects regular output.
${items} — the list. Comma-separated by default; if entries
contain commas, the caller may have used newlines instead. Trim
whitespace and drop empty entries.${operation} — what to do for each item. A short verb phrase
("summarise", "check status", "lint and report"). If missing,
ask the user once — don't guess.items. Confirm count back to the user one time at the
start: "I'll run operation on N items: ..." (no need to list
all if N is large; show first 3 + "...and M more").## <item>
<findings — 1–3 sentences>
**Status**: ok | warning | error | n/a
error / n/a with a one-line reason. Do not abort the
whole batch.If items differ enough that the same operation produces wildly different outputs (e.g. "review this codebase" vs "review this README"), bail out early: tell the user the items aren't uniform and ask whether to split into per-type batches. A consistent shape matters more than processing every item.