skills/smithery.ai/tanstack-router-migration

tanstack-router-migration

Installation
SKILL.md

React Router to TanStack Router Migration

Migrate React applications from React Router to TanStack Router with file-based routing. This skill provides a structured approach for both incremental and clean migrations.

Critical Rules

ALWAYS:

  • Use file-based routing with routes in src/routes/ directory
  • Use from parameter in all hooks for type safety (useParams({ from: '/path' }))
  • Validate search params with Zod schemas using @tanstack/zod-adapter
  • Configure build tool plugin before creating routes
  • Register router type for full TypeScript inference
  • Use fallback() wrapper for optional search params

NEVER:

Installs
2
First Seen
Mar 25, 2026
tanstack-router-migration from smithery.ai