.agents/skills/supersede-pr/SKILL.md
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.
npx skillsauth add remix-run/remix supersede-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
old_pr (the superseded PR) and new_pr (the replacement PR).gh repo view --json nameWithOwner -q .nameWithOwner when not provided.Supersedes #<old_pr>.scripts/close_superseded_pr.ts <old_pr> <new_pr>
Superseded by #<new_pr>.) and closes the old PR.gh pr view <old_pr> --json state,url
gh pr checks <new_pr>
Closes #<old_pr> when <old_pr> is a pull request.Closes/Fixes only for issues.Supersedes #<old_pr> or Refs #<old_pr> for PR-to-PR linkage.gh pr view <old_pr> returns CLOSED.Use the bundled script for deterministic closure:
scripts/close_superseded_pr.tstools
Build the UI of a Remix app. Use when creating pages, layouts, client entries, interactions, stateful UI, navigation, hydration, styling, animations, reusable mixins, or UI tests.
development
Describe the ideal layout of a Remix application, including canonical directories, route ownership, naming conventions, and file locations on disk. When asked to bootstrap that layout in a new directory, run the bundled TypeScript script.
documentation
Write or rewrite package README files in the style used by the Remix repository. Use when drafting a new package README, revising an existing README, or reviewing README structure, examples, installation instructions, and section ordering for Remix packages.
development
Write or audit public API docs for Remix packages. Use when adding or tightening JSDoc on exported functions, classes, interfaces, type aliases, or option objects.