一键导入
batch
Research and plan a large-scale mechanical change, then execute it in parallel across independent work units
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Research and plan a large-scale mechanical change, then execute it in parallel across independent work units
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | batch |
| description | Research and plan a large-scale mechanical change, then execute it in parallel across independent work units |
| when_to_use | Use when the user wants to make a sweeping, mechanical change across many files (migrations, refactors, bulk renames, mass updates) that can be decomposed into independent parallel units of work. |
| argument-hint | <instruction describing the change to make> |
| context | inline |
| disable-model-invocation | true |
Execute a large-scale change by researching, planning, then parallelising the work.
$ARGUMENTS
Before making any changes:
Understand the scope. Search the codebase to identify all affected files, packages, or modules. Use glob, grep_file, and bash to build a complete picture.
Decompose into independent units. Break the work into 5–30 units where each unit can be completed without depending on another unit's output. Prefer per-package or per-directory decomposition.
Define the validation recipe. Determine how to verify each unit after the change:
go test ./... or equivalentgo build ./...golangci-lint run or equivalentWrite the plan. Include:
Present the plan and ask for approval before proceeding to Phase 2.
For each work unit, launch a background agent with these instructions:
Goal: [paste work unit description]
Validation recipe: [paste validation commands]
Worker instructions:
1. Make the required change for this unit only. Do not touch other units.
2. Run the validation recipe. Fix any failures before proceeding.
3. Invoke /simplify on the changed files.
4. Create a git commit with a clear message: "batch: [unit description]"
5. Report back: "DONE: [unit title]" or "FAILED: [unit title] — [reason]"
Track the status of each unit in a table:
| # | Unit | Status | Notes |
|---|---|---|---|
| 1 | ... | running | |
| 2 | ... | done |
Once all units complete, report:
Review staged changes and create a conventional git commit
Diagnose agent session issues — show recent logs, tool errors, and configuration problems
Review auto-memory entries and promote useful ones to CLAUDE.md or project memory files
Review changed code for reuse, quality, and efficiency, then fix any issues found
Capture the current session's repeatable process into a reusable SKILL.md file
Diagnose a frozen, slow, or stuck agent session by inspecting running processes and recent logs