What problem does it solve? Maintaining a stack of dependent GitHub pull requests is error-prone: when a parent PR merges, is rewritten, or is abandoned, every child PR must be retargeted and rebased without losing commits, racing other writers, or deleting branches still in use. This Skill provides a disciplined procedure for doing that safely with only the gh CLI and git. ## Core Features & Use Cases - Stack creation with recorded boundaries: Create layered PRs with explicit --base fields and save PR number, branch, base/head names, and exact remote OIDs before every mutation. - Parent merge and retargeting: After a parent merges or is renamed, re-query open PRs, retarget each immediate child with gh pr edit --base, and cascade bottom-up rebases with git rebase --onto so only the child's own commits are replayed. - Lease-protected rewrites and deletion: Push rewritten branches and delete branches only with --force-with-lease pinned to the saved remote OID, after a final race check of PR state, required checks, and governance evidence. - Use Case: You have PRs feat-a → feat-b → feat-c stacked on main. When feat-a merges, this Skill walks you through retargeting feat-b to main, rebasing feat-c onto the new feat-b, re-running gates, and force-pushing each layer with an exact-OID lease. ## Quick Start Ask the agent to restack my dependent GitHub pull requests after the parent PR merged, retargeting each child and force-pushing with a saved-OID lease.