360 Secure SkillHub
360 安全技能中心

Batch Migration Orchestrator

面向大规模重构、迁移、批量重命名等代码库级编辑,先检查仓库并拆分独立单元,定义验证方式;在写入范围不重叠时并行启动 worker,跟踪状态并汇总 PR 或补丁;要求避免并行强耦合工作与文件写入冲突。

分类:开发
wimi321
wimi321
热度 21.88
最近更新 2026-05-11 17:39:34

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wimi321/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

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.