Skip to content
Kitbay
Submit
Skill

gh-stack

MITUpdated on Nov 11, 2026143,470GitHub stars

A skill for working with stacked pull requests through gh stack, a GitHub CLI extension.

What the skill teaches

A skill for working with stacked pull requests through gh stack, a GitHub CLI extension. A stack is an ordered chain of branches that starts from a trunk such as main, where each branch has one pull request based on the branch below, so reviewers see only that layer's changes. The skill shows an agent how to split multi-part work into such branches and run the gh stack commands without interactive prompts, with guidance on recovering from errors by exit code and three reference files on stack design, commands and troubleshooting. Its frontmatter names GitHub as the author; this copy sits in the Next.js repository but contains nothing specific to Next.js.

Capabilities

  • Split multi-part work into stacked branches and pull requests
  • Run gh stack commands non-interactively
  • Recover from gh stack errors by exit code