Batch Migration Orchestrator
Use this skill for sweeping refactors, migrations, bulk renames, or repetitive codebase-wide edits.
Goal
Turn one large request into a safe parallel rollout with independent units, validation, and mergeable outputs.
Workflow
- 1. Inspect the repo to find every affected area, convention, and dependency.
- Split the change into independent units by module, directory, or subsystem.
- Define an end-to-end verification recipe for each unit.
- Launch workers in parallel only when their write scopes do not overlap.
- Track completion, collect PRs or patches, and summarize failures.
Guardrails
- - Do not parallelize tightly coupled work.
- Do not let workers edit the same files.
- Require each worker to validate its own unit.
- Prefer worktree or isolated branch execution when git is available.
Inputs
- - Migration target
- Scope boundaries
- Verification method
- Branch/PR expectations
Example Requests
- - Migrate this monorepo from Jest to Vitest in parallel.
- Split this bulk API rename into independently shippable work units.
Inputs
- - Migration goal
- Affected modules or directories
- Verification expectations
- Branch or PR policy
Outputs
- - Work decomposition plan
- Parallel worker prompts
- Status tracking summary
- PR or patch rollup
Success Criteria
- - Every unit has a clear scope.
- No worker write conflicts exist.
- Each unit includes verification.
Non-Goals
- - One-off tiny edits
- Tightly coupled refactors that must land as one patch
Source Provenance
Derived from Claude Code bundled skill logic in
src/skills/bundled/batch.ts.
批量迁移编排器
使用此技能进行大规模重构、迁移、批量重命名或代码库范围的重复性编辑。
目标
将一个大请求转化为安全的并行部署方案,包含独立单元、验证机制和可合并的输出。
工作流程
- 1. 检查仓库,找出所有受影响区域、约定和依赖关系。
- 按模块、目录或子系统将变更拆分为独立单元。
- 为每个单元定义端到端的验证方案。
- 仅当写入范围不重叠时,并行启动工作进程。
- 跟踪完成进度,收集PR或补丁,并汇总失败情况。
安全护栏
- - 不要并行化紧密耦合的工作。
- 不要让工作进程编辑相同的文件。
- 要求每个工作进程验证自己的单元。
- 当git可用时,优先使用工作树或隔离分支执行。
输入
示例请求
- - 将此单体仓库从Jest并行迁移到Vitest。
- 将此批量API重命名拆分为可独立交付的工作单元。
输入
- - 迁移目标
- 受影响的模块或目录
- 验证预期
- 分支或PR策略
输出
- - 工作分解计划
- 并行工作进程提示
- 状态跟踪摘要
- PR或补丁汇总
成功标准
- - 每个单元都有明确的范围。
- 不存在工作进程写入冲突。
- 每个单元都包含验证。
非目标
- - 一次性小编辑
- 必须作为一个补丁提交的紧密耦合重构
来源出处
源自src/skills/bundled/batch.ts中的Claude Code捆绑技能逻辑。