supersede-pr
Installation
SKILL.md
Supersede PR
Overview
Use this skill to handle PR supersession end-to-end. Do not rely on Closes #<number> to close another PR. GitHub closing keywords close issues, not pull requests.
Workflow
- Identify PR numbers and target repo.
- Capture
old_pr(the superseded PR) andnew_pr(the replacement PR). - Resolve the repo with
gh repo view --json nameWithOwner -q .nameWithOwnerwhen not provided.
- Create or update the replacement PR first.
- Open/push the replacement branch.
- Open the new PR.
- Include a traceable link in the PR body such as
Supersedes #<old_pr>.