A Claude Code skill for working with
stacked pull requests
via GitHub's official gh stack extension.
It exists to stop the agent from hand-rolling stack management with git rebase --update-refs and
manual gh pr create --base calls when a supported tool already does it — and to make it ask
before stacking PRs that don't actually depend on each other.
Personal (all projects):
git clone https://github.com/nir-mo/gh-stack-pr-skill.git ~/.claude/skills/stacked-prSingle project:
git clone https://github.com/nir-mo/gh-stack-pr-skill.git .claude/skills/stacked-prThen install the extension it drives:
gh extension install github/gh-stackAsk Claude for anything stack-shaped — "stack a PR on top of this", "restack", "split this into a stack" — and the skill loads. See SKILL.md for the full workflow.
The skill is written for a generic repo. If yours has conventions gh stack submit bypasses —
required labels, a title format, a post-PR step — see the Adapt to your repo section of
SKILL.md and edit it in.
MIT