What problem does it solve?
Large or dependent code changes are hard to review as one giant pull request, and splitting work across branches without a clear topology leads to broken intermediate states, lost tests, and merge chaos. This Skill decides whether planned vertical implementation work should ship as independent PRs or as an ordered stack, then governs the stack's design, verification, review, and merge.
Core Features & Use Cases
- Stack vs. independent PR decision: Applies explicit gates and two counterfactual tests (trunk and flow lineage) to choose between single PRs, independent PRs, intra-slice stacks, and cross-slice stacks.
- Delivery planning: Produces a Delivery Shape table mapping each PR boundary to its base branch, owned scope, verification route, and release state, with a whole-stack gate checklist.
- Safe execution workflow: Guides bottom-up building, per-boundary TDD and mutation-evidence gates, bottom-up review, cascading rebases for lower-branch fixes, and all-or-nothing merges via GitHub's native
gh stack tooling or unlinked dependent chains.
- Use Case: A developer has a plan with three dependent vertical slices (sign-in, rejection handling, account lockout). The Skill determines a three-PR flow-lineage stack is justified, writes the delivery plan, and drives each PR from branch creation through
gh stack merge.
Quick Start
Use the stack-pull-requests skill to decide whether my planned implementation slices should ship as independent PRs or a stacked PR chain, and write the delivery plan.