manage-stacked-branches
Installation
SKILL.md
Manage Stacked Branches
Objective
Move a dependency graph of review branches to new bases while preserving the intended per-layer changes, review boundaries, and protected remote work.
Use When
- Branches form a chain such as
main <- A <- B <- Cand a lower layer or base changed. - A parent pull request merged, rebased, or squash-merged and descendants must be restacked.
- Each branch must continue to show an isolated review diff against its intended parent.
- Several rewritten stack refs may need coordinated, lease-protected publication.