
gh-stack
Working in a checked-out PR stack, handling dependent PRs or branch layers
by jssblckFree
Description
This skill teaches a coding agent to work with gh stack, a GitHub CLI extension for stacked branches and pull requests. A stack is an ordered chain of branches built on a trunk such as main, where each branch has one pull request based on the branch below it, so reviewers see only that layer's changes. The skill explains how gh stack prints a stack from trunk to top, left to right, as in main, then auth, then api, then frontend: the bottom layer merges first and the top layer last, and moving up means moving away from the trunk. Foundational work goes at the bottom with dependent code above it, and a reference document helps decide how to split layers. Use it when working inside a checked-out stack, handling dependent PRs, or planning to break work into stacked PRs. Install with npx skills add https://github.com/jssblck/agents --skill gh-stack.…
Highlights
- Explains stacked branches and pull requests
- Reading gh stack output from trunk to top
- Navigating up and down a stack
- Guidance on choosing stack layers
- Handling dependent PRs
Ratings & Reviews
No ratings yet
Be the first to rate gh-stack.
People also visit

git-workflow
Guided git workflows: prepare PRs, clean up branches, resolve merge conflicts
gh-stack FAQ
What is a PR stack?
An ordered chain of branches on a trunk where each branch has one PR based on the branch below, so each review shows only that layer's diff.
Which layer merges first?
The bottom layer, the one closest to the trunk. In (main) <- auth <- api <- frontend, auth merges first and frontend last.
What tool does it use?
gh stack, an extension for the GitHub CLI.
How do I install it?
Run: npx skills add https://github.com/jssblck/agents --skill gh-stack
What were the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best gh-stack alternatives?
Popular alternatives to gh-stack include github, callstackincubator/github and graphite. See all gh-stack alternatives


















