Skill Detail

Manage native GitHub stacked pull requests with gh-stack

<p>Teach coding agents to split large changes into native GitHub stacked pull requests, keep branch layers rebased, and submit focused reviewable PR chains with the gh stack CLI.</p>

Templates & WorkflowsMulti-Framework
Templates & Workflows Multi-Framework Security Reviewed
⭐ 401 GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill manage-native-github-stacked-pull-requests-with-gh-stack Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
GitHub CLI 2.0+, gh-stack extension, a GitHub repository with Stacked PRs enabled, and an AI coding agent that can use repository Git commands
Install & setup
Install GitHub CLI 2.0+ and run gh extension install github/gh-stack. For agent-aware setup, run gh skill install github/gh-stack in environments that support GitHub CLI skills. Use only on repositories where GitHub Stacked PRs has been enabled.
Author
GitHub
Publisher
First Party Open Source
Last updated
May 15, 2026
Quick brief

Use gh-stack when an agent needs to turn one large development task into a chain of focused GitHub pull requests that build on each other. The operator workflow is to install the GitHub CLI extension, initialize or adopt a stack, add branch layers for separate implementation steps, push the stack, and submit linked pull requests whose base branches preserve the intended review order.

How it works

What this skill actually does

Invoke this instead of normal pull-request creation when review quality depends on keeping a large diff split into ordered layers, or when an AI coding agent must maintain stack metadata, perform cascading rebases, and submit the right PR bases without improvising raw Git and GitHub commands. Scope boundary: this is for repositories with GitHub Stacked PRs enabled and the gh-stack extension available; it is not a generic Git workflow card, a Git Town duplicate, or a substitute for human review of merge order, CI, and branch protection.