
Description
gh-stack is an agent skill from GitHub's gh-stack project, listed on skills.sh. It helps an AI agent manage stacked pull requests and split multi-part work into reviewable branches, using the gh stack GitHub CLI extension. A stack is an ordered chain of branches rooted on a trunk, where each branch has one pull request based on the branch below it, so a reviewer sees only the diff for that layer. The skill explains how gh stack prints a stack, trunk first, with the bottom layer merging first and the top merging last. Its commands cover creating a stack, viewing it, editing it, pushing, submitting, syncing and rebasing, and the up and down commands move through the layers. The skill points the agent to a reference on choosing the layers, so foundational work sits at the bottom and dependent code sits above it. A setup section covers installing the extension. A skill is a SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent loads only when a task calls for it. The skill is listed as free on skills.sh.…
Highlights
- Creates and edits stacked pull requests
- Push, submit, sync and rebase commands
- Splits large work into reviewable branches
- Guidance on choosing stack layers
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 does the gh-stack skill do?
It helps an AI agent create and manage stacked pull requests with the gh stack GitHub CLI extension.
How do I install it?
Run: npx skills add https://github.com/github/gh-stack --skill gh-stack
Is it free?
Yes. The skill is listed as free on skills.sh.
What is a stack?
An ordered chain of branches on a trunk, where each branch has one pull request based on the branch below.
Which commands does it cover?
Stack creation, viewing, edits, push, submit, sync and rebase, plus up and down to move through the layers.
What are the best gh-stack alternatives?
Popular alternatives to gh-stack include github, pr and git-workflow. See all gh-stack alternatives

















