gh-stack
GitHub PR stacks
Use this skill for dependent pull requests. Read maintenance and recovery before changing an existing published stack or operating its CI/review queue. Use the pull-request skill for labels, signing, descriptions, and release documentation.
Discover the tool and the actual stack
Start with gh stack --help and the relevant subcommand's --help; commands and supported flags
can change. If the extension is missing, identify github/gh-stack as the required extension
(gh extension install github/gh-stack). Follow the environment's installation permissions;
do not silently replace native stacks with an unregistered branch chain.
A feature branch based on another feature branch is only a dependency chain. GitHub's native
stack is a separate object. Creating PRs with gh pr create --base <parent> alone does not register
that object. Check both the configured base branches and native stack membership. A bottom PR may
target main and still belong to a stack; also look for open PRs based on its head branch.