githubgithubOfficialยท1 Agent Skills Included

gh-stack

Manage stacked branches and pull requests from the terminal

Automates stacked pull request workflows by splitting large changes into small, reviewable branch layers. Handles branch creation, cascading rebases, PR base assignment, and stack navigation without manual git juggling. Keeps local branches and GitHub PRs in sync so reviewers see only one clean diff per layer.
npx skills add github/gh-stack --all -g -y
Available:

Gives AI agents the build, test, and project structure rules needed to work on this Go-based GitHub CLI extension safely and consistently.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install gh-stack?โ–ผ

Run `npx skills add github/gh-stack --all -g -y` in your terminal to install all tools in this suite globally.

What are stacked pull requests?โ–ผ

Stacked PRs break a large change into a chain of small branches where each PR builds on the one below it, so reviewers only see one layer's diff at a time.

How does gh-stack automate git workflows?โ–ผ

It automates branch creation, cascading rebases, PR base assignment, and stack navigation with single commands like `gh stack init`, `add`, `submit`, and `sync`.

Does gh-stack work with AI coding agents?โ–ผ

Yes. It ships a SKILL.md that teaches AI agents the non-interactive flags, exit codes, and recovery steps needed to manage stacks without human input.

Do I need to know git internals to use gh-stack?โ–ผ

No. Simple commands handle the complex rebasing and syncing for you, and your AI agent can drive the whole workflow from plain-English requests.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’