Agent skill

React Router Declarative Mode

by halo-dev in halo-dev/upage

Build React applications using React Router's declarative mode with BrowserRouter.

MITAuto-check passedFrontend & Design

Install React Router Declarative Mode

skills CLI
$ npx skills add halo-dev/upage --skill react-router-declarative-mode -a claude-code

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

GitHub CLI
$ gh skill install halo-dev/upage react-router-declarative-mode --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/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-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-declarative-mode
GitHub stars
555
Used in
1 other repo
Token cost
~842 tokens
SKILL.md length
176 words
Files
4 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Build React applications using React Router's declarative mode with BrowserRouter.

  • Configuring routes with JSX
  • SKILL.md covers When to Apply, References, Critical Patterns and Further Documentation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Navigating with Link/NavLink

What it does

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.

When your agent uses it

  • Configuring routes with JSX
  • Navigating with Link/NavLink
  • Reading URL params and search params without data loaders

Example prompts

  • “/react-router-declarative-mode”

What it can do on your machine

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

    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.

  • Network

    Links to these hosts (documentation or services it may open):

    • reactrouter.com

    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 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.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~842
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.6k

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 halo-dev/upage at commit f5bb335, republished under its MIT licence (© halo-dev). 176 words, ~842 tokens.

Download SKILL.mdSave it as .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.
name
react-router-declarative-mode
description
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.
license
MIT

React Router Declarative Mode

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.

When to Apply

  • Using <BrowserRouter> for routing
  • Configuring routes with <Routes> and <Route>
  • Navigating with <Link>, <NavLink>, or useNavigate
  • Reading URL params with useParams
  • Working with search params using useSearchParams
  • Accessing location with useLocation

References

Load the relevant reference for detailed guidance on the specific API/concept:

ReferenceUse When
references/routing.mdConfiguring routes, nested routes, dynamic params
references/navigation.mdLinks, NavLink active states, programmatic nav
references/url-values.mdReading params, search params, location

Critical Patterns

These are the most important patterns to follow. Load the relevant reference for full details.

Basic Route Setup

Configure routes with JSX using <Routes> and <Route>:

tsx
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:

tsx
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>
  );
}
Reading URL Params

Use useParams to read dynamic route segments:

tsx
import { useParams } from "react-router";

function User() {
  const { userId } = useParams();
  return <h1>User {userId}</h1>;
}
Working with Search Params

Use useSearchParams for query string values:

tsx
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>
  );
}

Further Documentation

If anything related to React Router is not covered in these references, you can search the official documentation:

https://reactrouter.com/docs

© 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

Files

SKILL.md and 3 other files (references) in .agents/skills/react-router-declarative-mode of halo-dev/upage.

  • SKILL.md
  • references/navigation.md
  • references/routing.md
  • references/url-values.md

Open the folder on GitHubat commit f5bb335

Used in 1 other repository

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.

Compare with similar skills

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.

React Router Declarative Mode compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Router Declarative Mode this skillhalo-dev/upage5551 repos~842Automated safety check: PassMIT
React Router Developmentremix-run/react-router57k1 repos~1.5kAutomated safety check: PassMIT
Safe Element Comparisonseasonedcc/remix-forms514—~1.8kAutomated safety check: PassMIT
Clerk React Patternsgeekskai/blog1031 repos~1kAutomated safety check: NotesMIT
React Devdavila7/claude-code-templates32k2 repos~2.6kAutomated safety check: PassMIT
Reactmagnus919/agent-skills111—~1.4kAutomated 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
  • Safe Element Comparison

    seasonedcc/remix-forms

    Maintain element type comparison safety in remix-forms. An agent skill from seasonedcc/remix-forms.

    514 GitHub stars~1.8k tokensUpdated 5 mo ago
    Frontend & DesignAuto-check passed
  • React SPA auth patterns with @clerk/react for Vite/CRA - ClerkProvider setup, useAuth/useUser/useClerk hooks, React Router protected routes, custom sign-in flows.

    103 GitHub starsUsed in 1 repo~1k tokens
    Frontend & DesignAuto-check: notes
  • React Dev

    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.

    32k GitHub starsUsed in 2 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • React

    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…

    111 GitHub stars~1.4k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Workos Widgets

    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…

    255 GitHub stars~2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from halo-dev/upage

  • Build React applications using React Router's data mode with createBrowserRouter and RouterProvider.

    555 GitHub starsUsed in 1 repo~927 tokens
    Auto-check passed

Questions about React Router Declarative Mode

What does React Router Declarative Mode do?

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.

When should I use React Router Declarative Mode?

React Router Declarative Mode fits situations like: configuring routes with JSX; navigating with Link/NavLink; reading URL params and search params without data loaders.

How do I install React Router Declarative Mode in Claude Code?

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.

How do I install React Router Declarative Mode in Codex?

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.

Can I use React Router Declarative Mode 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 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.

What does React Router Declarative Mode need to run?

SKILL.md names no scripts, command-line tools or credentials: React Router Declarative Mode is instructions for the agent only.

Does React Router Declarative Mode access the network?

SKILL.md names 1 domain. As links in the text: reactrouter.com. This is read from the text; nothing was executed.

Is React Router Declarative Mode 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 Declarative Mode use?

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.

How many tokens does React Router Declarative Mode use?

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.

What are the alternatives to React Router Declarative Mode?

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.

Who maintains React Router Declarative Mode?

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.