What problem does it solve? Large changes submitted as a single pull request are hard to review, and splitting work into dependent branches by hand means constant rebasing, retargeting PR bases, and tracking merge order. This Skill drives the gh-stack GitHub CLI extension so an agent can create, edit, sync, and merge an ordered chain of dependent PRs where each reviewer sees only one layer's diff. ## Core Features & Use Cases - Stack creation and layering: Initialize a stack with gh stack init, add layers bottom to top with gh stack add, and open draft or ready PRs for every branch with gh stack submit --auto. - Non-interactive operation: Explicit guidance on which commands and flags are safe in agent harnesses (e.g. view --json, submit --auto, merge --yes) and which TUI-only commands to avoid, plus a full exit-code table with recovery steps. - Sync, rebase, and merge workflows: Keep stacks current with gh stack sync, recover from rebase conflicts and squash merges, and merge a PR plus everything below it atomically with gh stack merge. - Use Case: You are building a feature spanning models, API routes, and a frontend. The Skill creates three stacked branches, commits each concern into its own layer, submits three chained draft PRs, and later rebases and merges them in order after review. ## Quick Start Ask the agent to split the current feature work into a stack of dependent pull requests using gh stack, with one branch per concern, then submit them as draft PRs.