Tanstack Router
Type-safe file-based routing for React SPAs with route loaders, TanStack Query integration, and Workers deployment.
- CCM score
- 48 of 100
- skills.sh installs
- 472
- GitHub stars
- 257
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers Vite setup, file-based route structure, route loaders, and TanStack Query integration for React SPAs
- Includes templates for basic routes, loaders, query integration, and nested layouts, plus Cloudflare Workers setup
- Enforces type-safe
Linknavigation and flags Vite plugin ordering and missing route type registration as common errors - Designed for React teams on Vite that want stronger TypeScript routing than React Router and deploy to Cloudflare Workers
Install
$ npx -y skills add secondsky/claude-skills --skill tanstack-router -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
TanStack Router Skill
Build type-safe, file-based routing for React SPAs with TanStack Router, optimized for Cloudflare Workers deployment.
When to Use This Skill
Auto-triggers when you mention:
- "TanStack Router" or "type-safe routing"
- "file-based routing" or "route configuration"
- "React routing" with TypeScript emphasis
- "route loaders" or "data loading in routes"
- "Cloudflare Workers routing"
Use this skill when:
- Building SPAs with type-safe navigation
- Implementing file-based routing (like Next.js)
- Need route-level data loading
- Integrating routing with TanStack Query
- Deploying to Cloudflare Workers
- Want better TypeScript support than React Router
Quick Start
Installation
bun add @tanstack/react-router @tanstack/router-devtools
bun add -d @tanstack/router-plugin
Latest version: v1.170.18 (verified 2026-08-03)
Vite Configuration
// vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'
Details
- Repository
- github.com/secondsky/claude-skills
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the tanstack-router skill do?
The tanstack-router skill helps a developer build type-safe, file-based routing for React single-page apps with TanStack Router. It covers route loaders for data loading, TanStack Query integration, and deployment to Cloudflare Workers.
How do I install the tanstack-router skill?
Run npx -y skills add secondsky/claude-skills --skill tanstack-router -y in your project. After that, the tanstack-router skill gives your agent guidance on Vite setup, route files and common routing errors.
Which tools and packages does tanstack-router need?
The tanstack-router skill expects a Vite project with React, plus the @tanstack/react-router and @tanstack/router-devtools packages, and the @tanstack/router-plugin dev dependency. It is tested with React 19.2, Vite 7.3 and TypeScript 5.9.
Where does tanstack-router stand among frontend skills?
The tanstack-router skill sits in the Frontend and UI Code category, next to vercel-react-best-practices, web-design-guidelines and design-taste-frontend. Its focus on TanStack Router routing and loaders sets it apart from the general React and design guidance those skills give.
More from secondsky/claude-skills
All 116- Internationalization I18n469
- Seo Optimizer469
- Systematic Debugging469
- Bun Package Manager466
- Interaction Design466
- Api Error Handling465
- Sequential Thinking461
- Bun Nextjs453
- Websocket Implementation452
- Root Cause Tracing450
- Seo Keyword Cluster Builder450
- Mobile App Debugging449
- Recommendation Engine449
- App Store Deployment448
- Push Notification Setup447
- Api Response Optimization445
- Drizzle Orm D1445
- Api Pagination444
- Api Filtering Sorting442
- Bun Drizzle Integration441
- Session Management441
- Defense In Depth Validation440
- Bun Runtime438
- Nuxt Production435
Similar to Tanstack Router
More Frontend & UI Codebun-tanstack-startsecondsky/claude-skills434 installsTanStack Start full-stack React framework on Bun, covering routing, server functions, and Bun deployment.
vite-react-best-practicesclaudiocebpaz/vite-react-best-practices686 installsComprehensive guidelines for building, deploying, and refactoring React 19 and Vite 8 single-page applications.
tanstack-starttanstack-skills/tanstack-skills4.1K installsFull-stack React framework on TanStack Router with SSR, streaming, and typed server functions for any host.
tanstackpedronauck/skills406 installsTanStack Query, Router, Start, and Form patterns for React, routed to the reference that matches each change.
sveltekitmindrally/skills773 installsExpert SvelteKit guidance covering routing, SSR/SSG, form actions, and Tailwind styling for TypeScript projects.
react-router-v7existential-birds/beagle581 installsPractical React Router v7 guidance covering data-driven routing, loaders, actions, and mutation choices.