Manage native GitHub stacked pull requests with gh-stack
Installation
SKILL.md
Manage native GitHub stacked pull requests with gh-stack
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.
Prerequisites
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
Installation
Requirements and caveats from upstream:
- Requires the GitHub CLI (gh) v2.0+.
- | -n, --numbered | Use auto-incrementing numbered branch names (requires --prefix) |
- Creates a new branch at the current HEAD, adds it to the top of the stack, and checks it out. Must be run while on the topmost branch of a stack. If no branch name is given, prompts for one.
Basic usage or getting-started notes:
- sh
- gh extension install github/gh-stack
-
AI agent integration