360 Secure SkillHub
360 安全技能中心

Batch Migration Orchestrator

核心功能是将大型代码变更拆为独立单元,在无重叠写入范围的前提下并行执行,每个单元自带验证,自动跟踪进度、收集PR或补丁并总结失败。适用于大范围重构、技术迁移、批量重命名等重复性代码库编辑场景,输入需提供迁移目标、范围边界、验证方法及分支/PR预期。

wimi321
wimi321
热度 37.91
最近更新 2026-05-11 17:39:12
分类:开发依赖:代码执行 / MCP 服务应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add claude-code-batch-migration-orchestrator
Metadata
name
batch_migration_orchestrator
description
Use when the user wants a large, mechanical change split into many independent units and executed in parallel with isolated workers and PRs.

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.
  2. Split the change into independent units by module, directory, or subsystem.
  3. Define an end-to-end verification recipe for each unit.
  4. Launch workers in parallel only when their write scopes do not overlap.
  5. 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

Source Provenance

Derived from Claude Code bundled skill logic in src/skills/bundled/batch.ts.