parallel-branches
Installation
SKILL.md
Parallel branches
Use when dispatching 2+ subagents to edit disjoint files in the same checkout and each slice must become its own stacked PR.
Before dispatch
- Push the base branch (for example
feature/helper-base) and note its SHA asBASE. - Give every agent a distinct branch name and an explicit, disjoint file list. Name the shared files nobody may touch.
- Tell them up front, before any collision report: never run
git checkout,switch,stashorresetin the shared worktree, and commit only their own paths.
Commit without moving HEAD (plumbing)
HEAD will be on whichever branch someone checked out first. Agents whose branch is not HEAD build their commit directly on BASE: