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 declarative mode with BrowserRouter.
$ npx skills add halo-dev/upage --skill react-router-declarative-mode -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install halo-dev/upage react-router-declarative-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-declarative-mode .claude/skills/react-router-declarative-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-declarative-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-declarative-mode into .claude/skills/react-router-declarative-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-declarative-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-declarative-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-declarative-mode -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install halo-dev/upage react-router-declarative-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-declarative-mode .agents/skills/react-router-declarative-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-declarative-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-declarative-mode into .agents/skills/react-router-declarative-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-declarative-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-declarative-mode -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install halo-dev/upage react-router-declarative-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-declarative-mode .cursor/skills/react-router-declarative-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-declarative-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-declarative-mode into .cursor/skills/react-router-declarative-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-declarative-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-declarative-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-declarative-mode -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install halo-dev/upage react-router-declarative-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-declarative-mode .gemini/skills/react-router-declarative-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-declarative-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-declarative-mode into .gemini/skills/react-router-declarative-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-declarative-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-declarative-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-declarative-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-declarative-mode .github/skills/react-router-declarative-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-declarative-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-declarative-mode into .github/skills/react-router-declarative-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-declarative-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-declarative-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-declarative-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-declarative-mode .opencode/skills/react-router-declarative-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-declarative-mode" agent skill from https://github.com/halo-dev/upage/tree/main/.agents/skills/react-router-declarative-mode into .opencode/skills/react-router-declarative-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-router-declarative-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-declarative-modeBuild React applications using React Router's declarative mode with BrowserRouter.
React Router Declarative Mode is an agent skill from halo-dev/upage. Build React applications using React Router's declarative mode with BrowserRouter. Use when configuring routes with JSX, navigating with Link/NavLink, or reading URL params and search params without data loaders or actions.
Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/navigation.md`, `references/routing.md` and `references/url-values.md`).
It sits in Frontend & Design, covering React components. It works with React Router, 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 Declarative Mode loads about 842 tokens when it runs, and up to ~6.6k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 176 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). 176 words, ~842 tokens.
.claude/skills/react-router-declarative-mode/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Declarative mode is React Router's simplest mode using <BrowserRouter>, <Routes>, and <Route> for basic client-side routing without data loading features like loaders or actions.
<BrowserRouter> for routing<Routes> and <Route><Link>, <NavLink>, or useNavigateuseParamsuseSearchParamsuseLocationLoad the relevant reference for detailed guidance on the specific API/concept:
| Reference | Use When |
|---|---|
references/routing.md | Configuring routes, nested routes, dynamic params |
references/navigation.md | Links, NavLink active states, programmatic nav |
references/url-values.md | Reading params, search params, location |
These are the most important patterns to follow. Load the relevant reference for full details.
Configure routes with JSX using <Routes> and <Route>:
import { BrowserRouter, Routes, Route } from "react-router";
function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="about" element={<About />} />
<Route path="dashboard" element={<Dashboard />}>
<Route index element={<DashboardHome />} />
<Route path="settings" element={<Settings />} />
</Route>
<Route path="users/:userId" element={<User />} />
</Routes>
</BrowserRouter>
);
}Use NavLink for navigation with active styling:
import { NavLink } from "react-router";
function Nav() {
return (
<nav>
<NavLink
to="/"
end
className={({ isActive }) => (isActive ? "active" : "")}
>
Home
</NavLink>
<NavLink
to="/dashboard"
className={({ isActive }) => (isActive ? "active" : "")}
>
Dashboard
</NavLink>
</nav>
);
}Use useParams to read dynamic route segments:
import { useParams } from "react-router";
function User() {
const { userId } = useParams();
return <h1>User {userId}</h1>;
}Use useSearchParams for query string values:
import { useSearchParams } from "react-router";
function SearchResults() {
const [searchParams, setSearchParams] = useSearchParams();
const query = searchParams.get("q");
return (
<div>
<input
value={query || ""}
onChange={(e) => setSearchParams({ q: e.target.value })}
/>
<p>Results for: {query}</p>
</div>
);
}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 3 other files (references) in .agents/skills/react-router-declarative-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 Declarative 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 Declarative Mode this skillhalo-dev/upage | 555 | 1 repos | ~842 | Automated safety check: Pass | MIT | |
| React Router Developmentremix-run/react-router | 57k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Safe Element Comparisonseasonedcc/remix-forms | 514 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Clerk React Patternsgeekskai/blog | 103 | 1 repos | ~1k | Automated safety check: Notes | MIT | |
| React Devdavila7/claude-code-templates | 32k | 2 repos | ~2.6k | Automated safety check: Pass | MIT | |
| Reactmagnus919/agent-skills | 111 | — | ~1.4k | Automated safety check: Pass | MIT |
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.
seasonedcc/remix-forms
Maintain element type comparison safety in remix-forms. An agent skill from seasonedcc/remix-forms.
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.
davila7/claude-code-templates
This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned.
magnus919/agent-skills
Operate React applications as a named tool: inspect and diagnose React/Vite projects, design component boundaries and state flow, implement accessible responsive UI, and verify behavior with the…
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…
halo-dev/upage
Build React applications using React Router's data mode with createBrowserRouter and RouterProvider.
Works with
Categories
Build React applications using React Router's declarative mode with BrowserRouter. React Router Declarative Mode is an agent skill from halo-dev/upage. Build React applications using React Router's declarative mode with BrowserRouter.
React Router Declarative Mode fits situations like: configuring routes with JSX; navigating with Link/NavLink; reading URL params and search params without data loaders.
Run `npx skills add halo-dev/upage --skill react-router-declarative-mode -a claude-code`. Or copy the skill folder (.agents/skills/react-router-declarative-mode in halo-dev/upage) into .claude/skills/react-router-declarative-mode in your project. Claude Code loads it when a task matches its description.
Run `npx skills add halo-dev/upage --skill react-router-declarative-mode -a codex`. Or copy the skill folder (.agents/skills/react-router-declarative-mode in halo-dev/upage) into .agents/skills/react-router-declarative-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-declarative-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-declarative-mode, .gemini/skills/react-router-declarative-mode, .github/skills/react-router-declarative-mode and .opencode/skills/react-router-declarative-mode in your project.
SKILL.md names no scripts, command-line tools or credentials: React Router Declarative 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 Declarative 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 842 tokens (SKILL.md is roughly 3.4k 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 5.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with React Router Declarative Mode: React Router Development (remix-run/react-router, 57k stars), Safe Element Comparison (seasonedcc/remix-forms, 514 stars), Clerk React Patterns (geekskai/blog, 103 stars) and React Dev (davila7/claude-code-templates, 32k 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.