tanstack-router
OfficialType-safe, file-based routing for React apps.
AuthorMadAppGang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Managing routing in complex React applications can lead to untyped parameters, manual route definitions, and difficult navigation. This Skill provides patterns for type-safe, file-based routing with TanStack Router.
Core Features & Use Cases
- File-Based Routing: Define routes automatically by file structure, simplifying route management.
- Type Safety: Get full TypeScript inference for route parameters, search parameters, and loader data.
- Route Loaders: Prefetch data before navigation completes, ensuring instant perceived performance.
- Layouts & Guards: Implement shared UI layouts and authentication guards easily.
- Use Case: Set up a
/users/:userIdroute that automatically infers theuserIdparameter type, prefetches user data using a loader, and displays a loading spinner during data fetch.
Quick Start
Use the tanstack-router skill to set up a new file-based route for /users/$userId.
Dependency Matrix
Required Modules
@tanstack/react-router@tanstack/router-plugin
Components
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: tanstack-router Download link: https://github.com/MadAppGang/claude-code/archive/main.zip#tanstack-router Please download this .zip file, extract it, and install it in the .claude/skills/ directory.