RE

Assistance for building and configuring applications with React Router across different modes.

Install

mkdir -p .claude/skills/react-router && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15477" && unzip -o skill.zip -d .claude/skills/react-router && rm skill.zip

Installs to .claude/skills/react-router

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Build applications with React Router in Framework, Data, Declarative, and unstable RSC modes. Use when configuring routes, route modules, loaders, actions, forms, fetchers, navigation, pending UI, SSR/SPA/pre-rendering, middleware, URL params/search params, or React Router upgrades.
283 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Identify the React Router mode (Framework, Data, Declarative, RSC)
  • Configure routes and route modules
  • Implement loaders and actions for data fetching
  • Manage navigation and pending UI
  • Handle URL parameters and search parameters
  • Guide through React Router upgrades and migrations

How it works

The skill identifies the React Router mode by examining dependencies and file structures, then provides guidance based on the identified mode and relevant documentation. It can also guide through mode migrations.

Inputs & outputs

You give it
React Router application code or user request for routing configuration
You get back
Guidance on React Router mode, configuration, or migration steps

When to use react-router

  • Configure React Router loaders
  • Migrate to Framework mode
  • Set up route navigation
  • Define route actions

About react-router

Identifies router mode (Framework, Data, Declarative). Configures route modules, loaders, actions, and pending UI.

Build applications with React Router in Framework, Data, Declarative, and unstable RSC modes. Use when configuring routes, route modules, loaders, actions, forms, fetchers, navigation, pending UI, SSR/SPA/pre-rendering, middleware, URL params/search params, or React Router upgrades.

When not to use it

  • When working with routing solutions other than React Router
  • When the application does not involve React components

Limitations

  • React Server Components support is unstable
  • Requires access to node_modules/react-router/docs/ for installed version documentation
  • Only applies a document when its mode marker matches the app mode

How it compares

This skill provides mode-specific guidance for React Router, ensuring that patterns and documentation match the application's current routing setup, unlike a generic approach that might apply incorrect patterns.

Compared to similar skills

react-router side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
react-router (this skill)01moNo flagsAdvanced
nextjs-best-practices316moNo flagsIntermediate
web-component-design55moNo flagsIntermediate
react-component-patterns31moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry