How to build stacked PRs with the gh-stack skill

GitHub shows how to use GitHub Copilot with the gh-stack skill to split large, agent-generated changes into smaller stacked pull requests, making review and merging easier. The video covers installing the gh-stack CLI extension, verifying the skill setup, prompting Copilot to generate a PR stack, and reviewing and merging the stack on GitHub.

Overview

AI coding agents can produce very large changesets that end up as huge pull requests (PRs) that are hard to review. This video demonstrates using the gh-stack skill together with GitHub Copilot to automatically break a large update into a set of stacked PRs.

Why stacked PRs

Install the gh-stack extension and skill

Verify the skill is available in Copilot

Create a stacked PR with a single prompt

Review and merge the PR stack