Skip to main content
ZICQ

Skills ZICQ category:Agent Workflows react-router-declarative-mode

React Router Declarative Mode

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.

637 installs

Official URL:skills.sh

What this skill does

Intro in this page language first. The official description stays in its original wording; we do not rewrite SKILL.md.

What it does

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

When to use it

|

How agents load it

Per Agent Skills progressive disclosure: name and description load at startup (~100 tokens); the full SKILL.md body loads when the skill activates; scripts/, references/, and assets/ load only as needed. This file's sections: React Router Declarative Mode; When to Apply; References; Critical Patterns; Basic Route Setup; NavLink Active States.

File analysis

File analysis: besides SKILL.md, the body references references/routing.md, references/navigation.md, references/url-values.md. Those resources load on demand.

React Router Declarative ModeWhen to ApplyReferencesCritical PatternsBasic Route SetupNavLink Active StatesReading URL ParamsWorking with Search ParamsFurther Documentation

· License:MIT

Source category:skills.sh agent-skill

SKILL.md & Agent activation

Official spec ↗
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
  1. DiscoverThe client exposes names and descriptions to the agent.
  2. ActivateYour request or the task context selects the skill and loads its instructions.
  3. Load resourcesReferenced scripts, documentation and assets are used when needed.
Files referenced by the instructions · 3
  • references/routing.md
  • references/navigation.md
  • references/url-values.md

These paths are extracted from the text. Check the upstream package to verify the files exist.

Invocation syntax and available tools depend on your Agent client. Client integration guide ↗

Install this skill

Skills CLI ↗

Choose the target agent and installation scope, keep referenced package files, then verify the skill appears in the client's catalog.

This skill references supporting files. Retrieve the complete directory from the source; copying SKILL.md alone may leave missing dependencies.

Ask your Agent to install

Copy these instructions to a compatible agent and confirm the target directory matches your client.

Install the agent skill "react-router-declarative-mode" into my project. The full SKILL.md and official description are at https://zicq.com/en/skills/skl-443983675c08b304-React-Router-Declarative-Mode.html
Save it as .cursor/skills/react-router-declarative-mode/SKILL.md or .claude/skills/react-router-declarative-mode/SKILL.md and keep the frontmatter name and description exactly as-is.
This skill also ships scripts/, references/, or assets/ — fetch the whole folder from https://github.com/remix-run/agent-skills instead of creating only a SKILL.md.

Full package on GitHub ↗

Install from the terminal · Skills CLI

Requires Node.js and npx. First inspect the repository's skill list to confirm the name.

npx skills add 'https://github.com/remix-run/agent-skills' --list

npx skills add 'https://github.com/remix-run/agent-skills' --skill 'react-router-declarative-mode'

The CLI lets you choose the agent interactively. The default scope is the project; use -g for user scope. Confirm package availability with the discovery command, then use npx skills list to inspect installed skills.

Readable layout
--- 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 ``, ``, and `` for basic client-side routing without data loading features like loaders or actions. ## When to Apply - Using `` for routing - Configuring routes with `` and `` - Navigating with ``, ``, 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: | 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 | ## 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 `` and ``: ```tsx import { BrowserRouter, Routes, Route } from "react-router"; function App() { return ( } /> } /> }> } /> } /> } /> ); } ``` ### NavLink Active States Use `NavLink` for navigation with active styling: ```tsx import { NavLink } from "react-router"; function Nav() { return ( (isActive ? "active" : "")} > Home (isActive ? "active" : "")} > Dashboard ); } ``` ### Reading URL Params Use `useParams` to read dynamic route segments: ```tsx import { useParams } from "react-router"; function User() { const { userId } = useParams(); return

User {userId}

; } ``` ### 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 (
setSearchParams({ q: e.target.value })} />

Results for: {query}

); } ``` ## Further Documentation If anything related to React Router is not covered in these references, you can search the official documentation: https://reactrouter.com/docs

Related skills

Agent Workflows

Skill Creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that exte…

Agent Workflows

Clawdhub

Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fl…

Agent Workflows

Agent Team Orchestration

Orchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team …

Agent Workflows

Superpowers

Spec-first, TDD, subagent-driven software development workflow. Use when: (1) building any new feature or app — triggers brainstorm → plan →…