How to use the Claude Code /batch skill in Claude Code
- Run inside a Git repository. The command researches and proposes the breakdown before starting work you approve.
- Use the example below as a starting point and replace the sample task with your own.
/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.