Claude Code /batch skill

Break a repeatable change across a Git repository into independent Claude Code worktrees, with an approval step before agents begin.

How to use the Claude Code /batch skill in Claude Code

  1. Run inside a Git repository. The command researches and proposes the breakdown before starting work you approve.
  2. Use the example below as a starting point and replace the sample task with your own.
Claude Code prompt · Try this example
/batch Find packages importing legacy/logger. Propose a per-package migration plan before editing.

Split a logger migration by package

List the packages using the legacy import and define one acceptance check for each. In the proposed work, ensure shared configuration has one owner so multiple worktrees do not edit the same file.

Review the result by worktree

Record each worktree or PR and verify that the expected tests ran. Review overlapping changes before merging, especially if a package needed an exception to the standard migration.

Browse Skills