Agent skill

React Router Upstream Tests

by rstackjs in rstackjs/rsbuild-plugin-react-router

Audit upstream React Router framework test changes and manually select tests to adapt into this repository without overwriting the checked-in Rsbuild corpus.

MITAuto-check passed

Install React Router Upstream Tests

skills CLI
$ npx skills add rstackjs/rsbuild-plugin-react-router --skill react-router-upstream-tests -a claude-code

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

GitHub CLI
$ gh skill install rstackjs/rsbuild-plugin-react-router react-router-upstream-tests --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/rstackjs/rsbuild-plugin-react-router.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/react-router-upstream-tests .claude/skills/react-router-upstream-tests && 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
react-router-upstream-tests
GitHub stars
144
Token cost
~719 tokens
SKILL.md length
263 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Audit upstream React Router framework test changes and manually select tests to adapt into this repository without overwriting the checked-in Rsbuild corpus.

  • Works in 6 steps: Inspect the current checkpoint and… → Compare the reviewed commit with the… → Review every reported directory… → …
  • SKILL.md covers Source of truth, Workflow and Guardrails
  • Calls pnpm and git

What it does

React Router Upstream Tests is an agent skill from rstackjs/rsbuild-plugin-react-router. Audit upstream React Router framework test changes and manually select tests to adapt into this repository without overwriting the checked-in Rsbuild corpus.

Its SKILL.md is about 720 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with React Router and React. The repository describes itself as: React Router Framework Mode adapter for Rsbuild. The licence is MIT.

Example prompts

  • “/react-router-upstream-tests”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Inspect the current checkpoint and confirm the local React Router clone
  2. Compare the reviewed commit with the desired upstream target
  3. Review every reported directory containing added files and every added,
  4. Copy selected tests manually and adapt them to the existing Rsbuild harness
  5. Run the narrow imported tests first, then the relevant framework gate
  6. After review and validation, update lastReviewedRef and reviewedAt in

What it can do on your machine

Read from SKILL.md and the folder at commit a09dd6a. 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

    Shell commands in SKILL.md call:

    • pnpm
    • git

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

  • Network

    No URLs in SKILL.md. Its commands use pnpm and git, 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

React Router Upstream Tests loads about 719 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 263 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from rstackjs/rsbuild-plugin-react-router at commit a09dd6a, republished under its MIT licence (© rstackjs). 263 words, ~719 tokens.

Download SKILL.mdSave it as .claude/skills/react-router-upstream-tests/SKILL.md (or your agent's skills folder).
name
react-router-upstream-tests
description
Audit upstream React Router framework test changes and manually select tests to adapt into this repository without overwriting the checked-in Rsbuild corpus.

React Router Upstream Tests

Use this skill when checking for new or changed upstream React Router framework tests, reviewing the corpus checkpoint, or manually importing test coverage.

Source of truth

  • tests/react-router-framework/UPSTREAM.json records the upstream repository, last reviewed commit, review time, and relevant source directories.
  • tests/react-router-framework/ is repository-owned and authoritative. It is intentionally adapted for Rsbuild and must never be overwritten wholesale.
  • scripts/check-react-router-framework-upstream.mjs is a read-only audit. It reports upstream changes but never copies files or updates the checkpoint.

Workflow

  1. Inspect the current checkpoint and confirm the local React Router clone:

    sh
    cat tests/react-router-framework/UPSTREAM.json
    git -C /path/to/react-router status --short --branch
  2. Compare the reviewed commit with the desired upstream target:

    sh
    pnpm check:react-router-framework-upstream -- \
      --source=/path/to/react-router \
      --target=HEAD
  3. Review every reported directory containing added files and every added, modified, deleted, or renamed file. Select only tests that add relevant compatibility coverage.

  4. Copy selected tests manually and adapt them to the existing Rsbuild harness:

    • use rsbuild.config.ts, not Vite configuration;
    • reuse helpers under tests/react-router-framework/integration/helpers;
    • preserve intentional Rsbuild/Rspack divergences;
    • do not add inert Vite dependencies, fixtures, or skipped suites;
    • keep resource-guard and process-cleanup behavior intact.
  5. Run the narrow imported tests first, then the relevant framework gate:

    sh
    pnpm build
    RR_FRAMEWORK_MAX_WORKERS=2 pnpm exec playwright test \
      --config tests/react-router-framework/integration/playwright.config.ts \
      path/to/imported-test.ts --workers=2 --max-failures=1 --retries=0
    pnpm test:react-router-framework:failfast
  6. After review and validation, update lastReviewedRef and reviewedAt in UPSTREAM.json in the same commit as the selected test adaptations.

Guardrails

  • Never add an automatic sync, overlay restoration, or corpus rewrite step.
  • Never update the checkpoint merely because the audit command ran.
  • Never claim the corpus matches upstream; record only the revision reviewed.
  • Do not copy upstream package manifests without adapting workspace/catalog dependencies to this repository deliberately.
  • Keep the working tree reviewable and commit only selected tests, adaptations, checkpoint metadata, and directly related documentation.

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

Files

Just SKILL.md in .codex/skills/react-router-upstream-tests of rstackjs/rsbuild-plugin-react-router.

Open the folder on GitHubat commit a09dd6a

Compare with similar skills

React Router Upstream Tests 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.

React Router Upstream Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Router Upstream Tests this skillrstackjs/rsbuild-plugin-react-router144—~719Automated safety check: PassMIT
React Router Developmentremix-run/react-router57k1 repos~1.5kAutomated safety check: PassMIT
React Router Data Modehalo-dev/upage5551 repos~927Automated safety check: PassMIT
React Router Declarative Modehalo-dev/upage5551 repos~842Automated safety check: PassMIT
React Router Framework Modecurvenote/curvenote1694 repos~1.1kAutomated safety check: PassMIT
Local Testinglobehub/lobe-ui2.2k—~2.1kAutomated safety check: PassMIT

Similar skills

  • React Router Development

    remix-run/react-router

    Guides work on React Router apps by first identifying whether the app uses Framework, Data or Declarative mode, then loading the matching reference and the installed package docs.

    57k GitHub starsUsed in 1 repo~1.5k tokens
    Frontend & DesignAuto-check passed
  • Build React applications using React Router's data mode with createBrowserRouter and RouterProvider.

    555 GitHub starsUsed in 1 repo~927 tokens
    Auto-check passed
  • Build React applications using React Router's declarative mode with BrowserRouter.

    555 GitHub starsUsed in 1 repo~842 tokens
    Frontend & DesignAuto-check passed
  • React Router Framework Mode

    curvenote/curvenote

    Build full-stack React applications using React Router's framework mode.

    169 GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Local Testing

    lobehub/lobe-ui

    Local browser verification for the lobe-ui component library and documentation site.

    2.2k GitHub stars~2.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Using Docs Kit

    lobehub/lobe-ui

    Set up and author a documentation site with @lobehub/docs-kit (the lobedocs CLI, React Router + Vite static docs used by ui.lobehub.com).

    2.2k GitHub stars~2.8k tokensUpdated today
    Frontend & DesignAuto-check passed

Questions about React Router Upstream Tests

What does React Router Upstream Tests do?

Audit upstream React Router framework test changes and manually select tests to adapt into this repository without overwriting the checked-in Rsbuild corpus. React Router Upstream Tests is an agent skill from rstackjs/rsbuild-plugin-react-router. Audit upstream React Router framework test changes and manually select tests to adapt into this repository without overwriting the checked-in Rsbuild corpus.

How do I install React Router Upstream Tests in Claude Code?

Run `npx skills add rstackjs/rsbuild-plugin-react-router --skill react-router-upstream-tests -a claude-code`. Or copy the skill folder (.codex/skills/react-router-upstream-tests in rstackjs/rsbuild-plugin-react-router) into .claude/skills/react-router-upstream-tests in your project. Claude Code loads it when a task matches its description.

How do I install React Router Upstream Tests in Codex?

Run `npx skills add rstackjs/rsbuild-plugin-react-router --skill react-router-upstream-tests -a codex`. Or copy the skill folder (.codex/skills/react-router-upstream-tests in rstackjs/rsbuild-plugin-react-router) into .agents/skills/react-router-upstream-tests in your project. Codex loads it when a task matches its description.

Can I use React Router Upstream Tests 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 rstackjs/rsbuild-plugin-react-router --skill react-router-upstream-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-router-upstream-tests, .gemini/skills/react-router-upstream-tests, .github/skills/react-router-upstream-tests and .opencode/skills/react-router-upstream-tests in your project.

What does React Router Upstream Tests need to run?

Going by SKILL.md and its folder, React Router Upstream Tests needs the command-line tools its instructions call (pnpm and git).

Does React Router Upstream Tests access the network?

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

Is React Router Upstream Tests 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. Review the folder before installing.

What licence does React Router Upstream Tests use?

React Router Upstream Tests 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 React Router Upstream Tests use?

About 719 tokens (SKILL.md is roughly 2.9k 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 React Router Upstream Tests?

Skills that share tags, products or a category with React Router Upstream Tests: React Router Development (remix-run/react-router, 57k stars), React Router Data Mode (halo-dev/upage, 555 stars), React Router Declarative Mode (halo-dev/upage, 555 stars) and React Router Framework Mode (curvenote/curvenote, 169 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Router Upstream Tests?

rstackjs (a GitHub organization) maintains it in rstackjs/rsbuild-plugin-react-router, which has 144 GitHub stars. The repository was last updated on October 6, 2026.

Source: rstackjs/rsbuild-plugin-react-router on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.