Skip to content

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
View on GitHub

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 Link navigation 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 -y

Installs 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

Similar to Tanstack Router

More Frontend & UI Code