Batch Large-Scale Changes
Claude Code's official bundled skill /batch automates large-scale code changes. It researches the codebase to understand change scope, decomposes work into 5-30 independent units, processes each in a separate git worktree with an independent agent, and automatically creates PRs upon completion.
/batchTeam needing API migration across hundreds of files? Use /batch to auto-decompose and parallelize changes
Tech lead enforcing code standards across the codebase? Run /batch to split by module and generate PRs at once
How It Works
Skill Code
Copy and paste into your CLAUDE.md to start using immediately.
How Batch Large-Scale Changes Works
Batch scans the codebase to map change scope, decomposes work into 5-30 independent units, processes each in a separate git worktree, and auto-generates PRs after tests pass.
When to Use Batch Large-Scale Changes
Ideal for API migrations, code standard enforcement, framework upgrades, and other changes spanning hundreds of files.
Key Strengths
- Auto-decomposition splits large tasks into manageable units
- Git worktree-based parallel execution prevents conflicts
- Per-unit PR creation simplifies code review
- Failed units can be retried independently