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.
Build React applications using React Router's data mode with createBrowserRouter and RouterProvider.
$ npx skills add halo-dev/upage --skill react-router-data-mode -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install halo-dev/upage react-router-data-mode --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/halo-dev/upage.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/react-router-data-mode .claude/skills/react-router-data-mode && rm -rf skills-srcUse ~/.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/
Install the "react-router-data-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-data-mode into .claude/skills/react-router-data-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-data-mode", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-data-modeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add halo-dev/upage --skill react-router-data-mode -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install halo-dev/upage react-router-data-mode --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/halo-dev/upage.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/react-router-data-mode .agents/skills/react-router-data-mode && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "react-router-data-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-data-mode into .agents/skills/react-router-data-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-data-mode", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add halo-dev/upage --skill react-router-data-mode -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install halo-dev/upage react-router-data-mode --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/halo-dev/upage.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/react-router-data-mode .cursor/skills/react-router-data-mode && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "react-router-data-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-data-mode into .cursor/skills/react-router-data-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-data-mode", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/halo-dev/upage.git --path .agents/skills/react-router-data-mode--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add halo-dev/upage --skill react-router-data-mode -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install halo-dev/upage react-router-data-mode --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/halo-dev/upage.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/react-router-data-mode .gemini/skills/react-router-data-mode && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "react-router-data-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-data-mode into .gemini/skills/react-router-data-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-data-mode", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install halo-dev/upage react-router-data-modeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add halo-dev/upage --skill react-router-data-mode -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/halo-dev/upage.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/react-router-data-mode .github/skills/react-router-data-mode && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "react-router-data-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-data-mode into .github/skills/react-router-data-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-data-mode", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add halo-dev/upage --skill react-router-data-mode -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install halo-dev/upage react-router-data-mode --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/halo-dev/upage.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/react-router-data-mode .opencode/skills/react-router-data-mode && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "react-router-data-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-data-mode into .opencode/skills/react-router-data-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-data-mode", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
react-router-data-modeBuild React applications using React Router's data mode with createBrowserRouter and RouterProvider.
React Router Data Mode is an agent skill from halo-dev/upage. Build React applications using React Router's data mode with createBrowserRouter and RouterProvider. Use when working with route objects, loaders, actions, Form, useFetcher, or pending/optimistic UI without the Vite plugin.
Its SKILL.md is about 930 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/actions.md`, `references/data-loading.md` and `references/navigation.md`).
It works with React Router, Vite, React and DeepSeek. The repository describes itself as: 🔥 一款基于大模型的可视化网页构建平台,Lovable 开源替代。 The licence is MIT.
Read from SKILL.md and the folder at commit f5bb335. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
reactrouter.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
React Router Data Mode loads about 927 tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 213 words of instructions outside code blocks.
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.
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.
The full file from halo-dev/upage at commit f5bb335, republished under its MIT licence (© halo-dev). 213 words, ~927 tokens.
.claude/skills/react-router-data-mode/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.Data mode uses createBrowserRouter and RouterProvider to enable data loading, actions, and pending UI without the framework's Vite plugin. This is ideal for existing React applications that want to add data loading and mutation capabilities.
createBrowserRouter with route objectsloader property on routesaction property<Link>, <NavLink>, <Form>, redirect, and useNavigateuseNavigationuseFetcher for mutations without navigationLoad the relevant reference for detailed guidance on the specific API/concept:
| Reference | Use When |
|---|---|
references/routing.md | Configuring routes, nested routes, layout |
references/route-object.md | Understanding route object properties |
references/data-loading.md | Loading data with loaders |
references/actions.md | Handling forms, mutations, validation |
references/navigation.md | Links, programmatic navigation, redirects |
references/pending-ui.md | Loading states, optimistic UI |
references/ssr.md | Server-side rendering with data mode |
These are the most important patterns to follow. Load the relevant reference for full details.
import { createBrowserRouter, RouterProvider } from "react-router";
const router = createBrowserRouter([
{
path: "/",
Component: Root,
children: [
{ index: true, Component: Home },
{ path: "about", Component: About },
],
},
]);
ReactDOM.createRoot(root).render(<RouterProvider router={router} />);Search forms - use <Form method="get">, NOT onSubmit with setSearchParams:
// ✅ Correct
<Form method="get">
<input name="q" />
</Form>
// ❌ Wrong - don't manually handle search params
<form onSubmit={(e) => { e.preventDefault(); setSearchParams(...) }}>Inline mutations - use useFetcher, NOT <Form> (which causes page navigation):
const fetcher = useFetcher();
const optimistic = fetcher.formData
? fetcher.formData.get("favorite") === "true"
: isFavorite;
<fetcher.Form method="post" action={`/favorites/${id}`}>
<button>{optimistic ? "★" : "☆"}</button>
</fetcher.Form>;See references/actions.md for complete patterns.
Use fetcher.formData to show expected results immediately:
function FavoriteButton({ itemId, isFavorite }) {
const fetcher = useFetcher();
// Optimistic: use pending form data, fallback to server state
const optimistic = fetcher.formData
? fetcher.formData.get("favorite") === "true"
: isFavorite;
return (
<fetcher.Form method="post" action={`/items/${itemId}/favorite`}>
<input type="hidden" name="favorite" value={String(!optimistic)} />
<button>{optimistic ? "★" : "☆"}</button>
</fetcher.Form>
);
}See references/pending-ui.md for complete patterns.
If anything related to React Router is not covered in these references, you can search the official documentation:
© halo-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (references) in .agents/skills/react-router-data-mode of halo-dev/upage.
Open the folder on GitHubat commit f5bb335
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in halo-dev/upage, which our catalogue first saw on October 7, 2026.
React Router Data Mode 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| React Router Data Mode this skillhalo-dev/upage | 555 | 1 repos | ~927 | Automated safety check: Pass | MIT | |
| React Router Developmentremix-run/react-router | 57k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Local Testinglobehub/lobe-ui | 2.2k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Using Docs Kitlobehub/lobe-ui | 2.2k | — | ~2.8k | Automated safety check: Pass | MIT | |
| Clerk React Patternsgeekskai/blog | 103 | 1 repos | ~1k | Automated safety check: Notes | MIT | |
| Workos Widgetsusenotra/notra | 255 | — | ~2k | Automated safety check: Pass | AGPL-3.0 |
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.
lobehub/lobe-ui
Local browser verification for the lobe-ui component library and documentation site.
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).
geekskai/blog
React SPA auth patterns with @clerk/react for Vite/CRA - ClerkProvider setup, useAuth/useUser/useClerk hooks, React Router protected routes, custom sign-in flows.
usenotra/notra
A skill your agent uses when the user is implementing, embedding, or debugging a WorkOS Widget — specifically the User Management, User Profile, Admin Portal SSO Connection, or Admin Portal Domain…
Lomray-Software/vite-ssr-boost
Migrate an existing Vite and React Router SPA to vite-ssr-boost SSR in Data mode, preserving route objects and checking streaming, hydration, bundle size, and deployment readiness.
halo-dev/upage
Build React applications using React Router's declarative mode with BrowserRouter.
Works with
Build React applications using React Router's data mode with createBrowserRouter and RouterProvider. React Router Data Mode is an agent skill from halo-dev/upage. Build React applications using React Router's data mode with createBrowserRouter and RouterProvider.
React Router Data Mode fits situations like: working with route objects; pending/optimistic UI without the Vite plugin.
Run `npx skills add halo-dev/upage --skill react-router-data-mode -a claude-code`. Or copy the skill folder (.agents/skills/react-router-data-mode in halo-dev/upage) into .claude/skills/react-router-data-mode in your project. Claude Code loads it when a task matches its description.
Run `npx skills add halo-dev/upage --skill react-router-data-mode -a codex`. Or copy the skill folder (.agents/skills/react-router-data-mode in halo-dev/upage) into .agents/skills/react-router-data-mode in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add halo-dev/upage --skill react-router-data-mode -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-data-mode, .gemini/skills/react-router-data-mode, .github/skills/react-router-data-mode and .opencode/skills/react-router-data-mode in your project.
SKILL.md names no scripts, command-line tools or credentials: React Router Data Mode is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: reactrouter.com. This is read from the text; nothing was executed.
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.
React Router Data Mode is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 927 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with React Router Data Mode: React Router Development (remix-run/react-router, 57k stars), Local Testing (lobehub/lobe-ui, 2.2k stars), Using Docs Kit (lobehub/lobe-ui, 2.2k stars) and Clerk React Patterns (geekskai/blog, 103 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
halo-dev (a GitHub organization) maintains it in halo-dev/upage, which has 555 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 23, 2026.
Source: halo-dev/upage on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.