stacking-prs
/stacking-prs
Use when work ships as several dependent pull requests that reach main one by one: when asked to build stacked PRs or a stack, or when sizing a change splits it into more than one PR. Sets the plan's shape, the self-reviewing skill as the gate between PRs, and the restack after a squash merge, with or without the gh-stack extension.
- Author
- pvliesdonk ↗
- Repository
- markdown-vault-mcp ↗
- Licence
- MIT
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 1
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
What it does and when to use it
Use when work ships as several dependent pull requests that reach main one by one: when asked to build stacked PRs or a stack, or when sizing a change splits it into more than one PR. Sets the plan's shape, the self-reviewing skill as the gate between PRs, and the restack after a squash merge, with or without the gh-stack extension.
Original author description
Use when work ships as several dependent pull requests that reach main one by one: when asked to build stacked PRs or a stack, or when sizing a change splits it into more than one PR. Sets the plan's shape, the self-reviewing skill as the gate between PRs, and the restack after a squash merge, with or without the gh-stack extension.
How it works
- 1. Plan the stack before the first edit
- 2. Build one PR at a time
- 3. Restack
- 4. Merge
SKILL.md preview
--- name: stacking-prs description: >- Use when work ships as several dependent pull requests that reach main one by one: when asked to build stacked PRs or a stack, or when sizing a change splits it into more than one PR. Sets the plan's shape, the self-reviewing skill as the gate between PRs, and the restack after a squash merge, with or without the gh-stack extension. --- <!-- ===== TEMPLATE-OWNED — re-rendered on template updates. ===== --> # Stacking pull requests A stack is a chain of dependent pull requests, each based on the branch of the one below it, that reach `main` one by one. When the PRs must reach `main` together, run them on an integration branch instead (`docs/contribute/integration-branches.md`). ## 1. Plan the stack before the first edit - Write the implementation plan with one section per PR, bottom first. Head each section with the PR's title, its branch, and its base: `main` for the bottom PR, the branch below for every other. - Size each PR by the `authoring-issues-prs` skill's "Size the change before coding" step. - End every PR's section with this task: pass the gates in `AGENTS.md`, run the `self-reviewing` skill against the PR's base, fix or justify every finding, push, and open the PR as a draft with `--base <base>`. - Mark a section done in the plan once its PR is pushed. After a compaction, re-read the plan and resume at the first section not done. ## 2. Build one PR at a time - Create a PR's branch only after the PR below has passed the `self-reviewing` skill and been pushed, and branch it from that pushed branch. - Run the `self-reviewing` skill on each PR against its own base. A plan executor's own review step does not replace it, and one review over the whole stack is not a review of any PR in it. - Write `Stacked on #<PR below>` in each PR body. Close each issue from the PR that completes it, and write `Refs #<issue>` in the PRs before that one. - When a lower PR needs a change, commit it on that PR's branch, restack (step 3), and run `self-reviewing` again on each PR above before you push it: the `self-review` hook keys its record by commit, and a restack rewrites every commit above. - Push one branch per `git push`: the `self-review` hook checks only the first branch of a push that sends several, so `gh stack push`, `sync` and `submit` bypass it for the rest. ## 3. Restack With the `gh-stack` extension (`gh extension list` names it), restack with `gh stack rebase` and follow the `gh-stack` skill's non-interactive rules where your agent has it. After a squash merge, confirm with `gh stack view --json` that the merged branch left the stack; if it did not, restack with the git commands below. Without the extension, run `gh extension install github/gh-stack` if the environment allows installing it; otherwise use git, from the top branch of the stack: - A lower PR's branch gained commits: `git rebase --update-refs <that branch>`. - `main` moved: `git fetch origin main && git rebase --update-refs origin/main`. - The bottom PR was squash-merged: ```bash git fetch origin git rebase --update-refs --onto origin/main origin/<merged-branch> gh pr edit <PR above it> --base main ``` `--update-refs` moves every branch in between along with the top one. After a squash merge, never rebase onto `main` without `--onto`: git replays the merged commits and conflicts with their squash. If `origin/<merged-branch>` is gone or no longer at the merged tip, pass the merged PR's last commit instead: `gh pr view <merged PR> --json headRefOid --jq .headRefOid`. Then push each restacked branch with `git push --force-with-lease origin <branch>`, bottom first, each after its `self-reviewing` run. ## 4. Merge Merge the bottom PR first. After it lands, restack and retarget (step 3) before you merge the next one.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · pvliesdonk/markdown-vault-mcp | 100 | MIT |
| PostHog/posthog | 100 | MIT |
| zpyoung/quirk | 100 | MIT |
Database snapshot: 13.11.2026 · package version 8d839878f5bb (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100stacked-prs
Break a large change into a chain of small, dependent pull requests using GitHub stacked pull requests and the gh stack CLI extension. Use this skill whenever the user mentions stacked PRs, stacked pull requests, a PR stack, stacking branches or commits, gh stack, splitting a… - 100stacked-prs
GitHub's native stacked pull requests and the `gh stack` CLI. Covers creating a stack, editing a layer, restacking after a merge, and merging part or all of a stack. Use whenever the user mentions stacked PRs, a PR stack, GitHub stacks, dependent PRs, or `gh stack`, when… - 100merging-pr-stack
Use when merging a stack of stacked PRs with jj. Triggered by phrases like "merge the PR stack", "merge the stacked PRs", "land these PRs", or "merge the stack into main". - 100jabr
Structure a feature as a stack of small, dependent pull requests and manage it end-to-end with plain git + the GitHub gh CLI. Use when the user wants to break a large feature or change into stacked / chained PRs, create or manage a PR stack, restack (rebase) dependent branches… - 100stacked-prs
Open, update and merge pull requests that depend on each other as a GitHub stack, with the gh stack extension. Use whenever a change builds on another pull request that hasn't merged yet, when splitting a large change into reviewable layers, when a stacked PR needs rebasing… - 100stacking-pull-requests
Operates a stack of dependent pull requests in the whiteboard repo with the gh-stack extension — creating a stack across architecture layers, keeping it rebased as main moves, and landing it. Use when a change spans several layers that must merge in order (a shared package under…