Stacked pr

From OutThisLife/brooklyn-skills · View interactive version

Stacked pr is an AI agent skill from the GitHub repository OutThisLife/brooklyn-skills. Handle dependent/stacked PRs and same-code-on-multiple-bases correctly. Use for a PR stacked on another, or when the same change must land on the default branch plus a release/production branch.

How to use this skill

Skill file

Stacked & Multi-base PRs

Stacked (dependent) PRs

A child PR builds on a parent PR's branch. Update the stack bottom-up:

  1. Update the parent branch/PR first.
  2. Rebase the child onto the updated parent — not onto the default branch, and

never "merge main into the leaf" as the only step.

  1. Push each level; keep each PR's base pointing at the one below it.

Multi-base (release + default)

Some orgs require the same change on the default branch AND a release/production

branch:

  1. Confirm the required target branches from the repo's rules.
  2. Land the change once, then cherry-pick/port the identical code to the other

base as a second PR.

  1. Keep the two PRs' code identical; note the sibling in each description.
  2. Treat the duplicate as a fresh review target. Request the original developer

reviewer/team and use the repo's pending human/code-review labels. Do not

copy QA approval or claim a developer checkmark from the sibling; the

release PR needs its own explicit developer approval. Verify assignees,

review requests, and labels after updating them.

Estimate an integration before changing branches

MR additive-repair safeguards

Don't

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.