Agent skill

Supersede PR

by remix-run in remix-run/remix

Safely replace one GitHub pull request with another. An agent skill from remix-run/remix.

MITAuto-check passedDevelopment

Install Supersede PR

skills CLI
$ npx skills add remix-run/remix --skill supersede-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install remix-run/remix supersede-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/remix-run/remix.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/supersede-pr .claude/skills/supersede-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
supersede-pr
GitHub stars
33k
Token cost
~456 tokens
SKILL.md length
189 words
Files
4 (incl. scripts)
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

Safely replace one GitHub pull request with another. An agent skill from remix-run/remix.

  • A user says a PR supersedes/replaces an older PR
  • SKILL.md covers Overview, Workflow, Rules and Script
  • Runs TypeScript scripts from its folder; calls gh
  • Asks to auto-close a superseded PR

What it does

Supersede PR is an agent skill from remix-run/remix. 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.

Its SKILL.md is about 460 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts (for example `agents/openai.yaml`, `scripts/close_superseded_pr.ts` and `tsconfig.json`).

It sits in Development. It works with GitHub. The repository describes itself as: The fully-stacked web framework. The licence is MIT.

When your agent uses it

  • A user says a PR supersedes/replaces an older PR
  • Asks to auto-close a superseded PR
  • Needs guaranteed closure behavior after merge

Example prompts

  • “/supersede-pr”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 3c25f7a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (TypeScript), which the agent can run.

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Supersede PR loads about 456 tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 189 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~456

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from remix-run/remix at commit 3c25f7a, republished under its MIT licence (© remix-run). 189 words, ~456 tokens.

Download SKILL.mdSave it as .claude/skills/supersede-pr/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
supersede-pr
description
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.

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 old_pr (the superseded PR) and new_pr (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:
bash
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:
bash
gh pr view <old_pr> --json state,url
  • Confirm the replacement PR status/checks:
bash
gh pr checks <new_pr>

Rules

  1. Do not use Closes #<old_pr> when <old_pr> is a pull request.
  • Use Closes/Fixes only for issues.
  • Use Supersedes #<old_pr> or Refs #<old_pr> 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/close_superseded_pr.ts

© remix-run, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in .agents/skills/supersede-pr of remix-run/remix.

  • SKILL.md
  • agents/openai.yaml
  • scripts/close_superseded_pr.ts
  • tsconfig.json

Open the folder on GitHubat commit 3c25f7a

Compare with similar skills

Supersede PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Supersede PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Supersede PR this skillremix-run/remix33k—~456Automated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Greplooponyx-dot-app/onyx32k4 repos~3.3kAutomated safety check: PassMIT
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Setup Matt Pocock Skillsbestofjs/bestofjs3.1k20 repos~1.7kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Setup Matt Pocock Skills

    bestofjs/bestofjs

    Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout.

    3.1k GitHub starsUsed in 20 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed

More from remix-run/remix

All 19 skills in this repo
  • Add Package

    remix-run/remix

    Create or align a package in the Remix monorepo to match existing package conventions.

    33k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Author UI Primitives

    remix-run/remix

    Build idiomatic headless primitives in packages/ui for Remix.

    33k GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Fix Issue

    remix-run/remix

    Fix a reported issue in Remix from a GitHub issue. An agent skill from remix-run/remix.

    33k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Make Demo

    remix-run/remix

    Create or revise demos in the Remix repository. An agent skill from remix-run/remix.

    33k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Make PR

    remix-run/remix

    Create GitHub pull requests with clear, reviewer-friendly descriptions.

    33k GitHub stars~847 tokensUpdated yesterday
    Auto-check passed
  • Make Tracking Issue

    remix-run/remix

    Create or revise a GitHub tracking issue for a Remix change, including the target outcome, implementor context, a concise checkbox plan, compatibility concerns, and required gates.

    33k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Supersede PR

What does Supersede PR do?

Safely replace one GitHub pull request with another. An agent skill from remix-run/remix. Supersede PR is an agent skill from remix-run/remix. Safely replace one GitHub pull request with another.

When should I use Supersede PR?

Supersede PR fits situations like: A user says a PR supersedes/replaces an older PR; asks to auto-close a superseded PR; needs guaranteed closure behavior after merge.

How do I install Supersede PR in Claude Code?

Run `npx skills add remix-run/remix --skill supersede-pr -a claude-code`. Or copy the skill folder (.agents/skills/supersede-pr in remix-run/remix) into .claude/skills/supersede-pr in your project. Claude Code loads it when a task matches its description.

How do I install Supersede PR in Codex?

Run `npx skills add remix-run/remix --skill supersede-pr -a codex`. Or copy the skill folder (.agents/skills/supersede-pr in remix-run/remix) into .agents/skills/supersede-pr in your project. Codex loads it when a task matches its description.

Can I use Supersede PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add remix-run/remix --skill supersede-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/supersede-pr, .gemini/skills/supersede-pr, .github/skills/supersede-pr and .opencode/skills/supersede-pr in your project.

What does Supersede PR need to run?

Going by SKILL.md and its folder, Supersede PR needs TypeScript for the scripts in its folder and the command-line tools its instructions call (gh). Our summary lists: Node.js.

Does Supersede PR access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Supersede PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Supersede PR use?

Supersede PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Supersede PR use?

About 456 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Supersede PR?

Skills that share tags, products or a category with Supersede PR: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Greploop (onyx-dot-app/onyx, 32k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Setup Matt Pocock Skills (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Supersede PR?

remix-run (a GitHub organization) maintains it in remix-run/remix, which has 33,404 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 9, 2026.

Source: remix-run/remix on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.