What problem does it solve?
Large features often require breaking a single change into multiple dependent pull requests, but managing the chain of branches, rebases, and PR bases manually is error-prone and tedious. This Skill automates the lifecycle of stacked branches so each layer remains independently reviewable.
Core Features & Use Cases
- Stack Initialization and Branching: Create ordered stacks of branches rooted on a trunk, adopt existing branches, or add new layers on top of the current stack.
- Push, Submit, and Sync: Push branches, auto-generate PR titles, create draft or ready PRs, and run fetch-rebase-push synchronization in a single command.
- Navigation and Restructuring: Move up, down, top, or bottom through the stack, check out by PR number, and tear down stacks to remove, reorder, or rename branches.
- Use Case: Break a full-stack feature into data-models, api-endpoints, and frontend-ui branches, push them as a connected stack of PRs, and rebase the upper layers automatically when the API layer changes.
Quick Start
Use the gh-stack skill to create a new stack with branches auth, api-routes, and frontend, push them, and submit draft pull requests.