remix-run/remix

supersede-pr

Safely replace one GitHub pull request with another.

First seen Mar 13, 2026

Installation

$ npx skills add remix-run/remix --skill supersede-pr

Summary

  • Safely replace one GitHub pull request with another.
  • Use when a user says a PR supersedes/replaces an older PR, asks to auto-close a superseded PR, or needs guaranteed closure behavior after merge.
  • This skill explicitly closes the superseded PR with gh CLI and verifies final PR states instead of relying on closing keywords.

Also in this package

Other skills from remix-run/remix · top by installs.

npx skills add remix-run/remix

Browse all from remix-run/remix

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 33.4K
License LICENSE
Default branch main
Open issues 20
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,824 B
  • docs SUMMARY.md 345 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 14 installs

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

  1. Identify PR numbers and target repo.
  • Capture oldpr (the superseded PR) and newpr (the replacement PR).
  • Resolve the repo with gh repo view --json nameWithOwner -q .nameWithOwner when not provided.
  1. 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>.
  1. Close the superseded PR explicitly.
  • Run:
scripts/close_superseded_pr.ts <old_pr> <new_pr>
  • This adds a comment (Superseded by #<new_pr>.) and closes the old PR.
  1. Verify states.
  • Confirm the superseded PR is closed:
gh pr view <old_pr> --json state,url
  • Confirm the replacement PR status/checks:
gh pr checks <new_pr>

Rules

  1. Do not use Closes #<oldpr> when <oldpr> is a pull request.
  • Use Closes/Fixes only for issues.
  • Use Supersedes #<oldpr> or Refs #<oldpr> for PR-to-PR linkage.
  1. Prefer explicit closure over implied automation.
  • Always run the close command when the user asks to supersede a PR.
  • Treat closure as incomplete until gh pr view <old_pr> returns CLOSED.

Script

Use the bundled script for deterministic closure:

  • scripts/closesupersededpr.ts