react-router-file-routes
CommunityNavigate React Router v7 file routes with ease.
System Documentation
What problem does it solve?
This Skill provides a concise reference guide for React Router v7 file-based routing conventions, helping developers understand how file names map to routes, how to define dynamic and nested routes, and how to implement special routing patterns in app/routes.
Core Features & Use Cases
- File naming conventions map to URL paths in app/routes, including index, nested, and dynamic routes.
- Support for dynamic segments using $param, optional segments with ?, pathless layouts using _ prefix, and splat routes with $. Also escaping special characters with bracket notation.
- Use Case: When starting a new React Router v7 project, organize route files to automatically create routes, including dynamic segments like /concerts/:city and /settings/profile.
Quick Start
Open your app's routes directory and apply the naming patterns shown in this guide. For example, create _index.tsx for the root, about.tsx for /about, concerts.tsx for the layout, concerts._index.tsx for /concerts, and concerts.$city.tsx for /concerts/:city.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: react-router-file-routes Download link: https://github.com/atman-33/skills/archive/main.zip#react-router-file-routes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.