mirror of
https://github.com/secondsky/claude-skills.git
synced 2026-09-18 19:54:22 +08:00
292c93845e
- Rewrites AI-sounding text to read human; 8 editing passes + review-only mode - Adapted from jpeggdev/humanize-writing (MIT); npm installer scaffolding dropped - Frontmatter condensed to 238 chars (sync enforces 250 max for single-skill plugins) - Lockstep bump 3.8.0 -> 3.9.0: all 145 plugins, both marketplaces, package.json - CHANGELOG entry for 3.9.0
TanStack Router Skill
Type-safe, file-based routing for React applications with Cloudflare Workers integration.
Auto-Trigger Keywords
- "TanStack Router", "type-safe routing", "file-based routing"
- "React routing TypeScript", "route loaders", "data loading routes"
- "Cloudflare Workers routing", "SPA routing"
What This Provides
🎯 Core Features
- Type-safe navigation - Compile-time route validation
- File-based routing - Automatic route generation from file structure
- Route loaders - Data fetching at route level
- TanStack Query integration - Coordinate routing + data fetching
- Cloudflare Workers ready - Deploy SPAs to Workers + Static Assets
📦 Templates (7)
- package.json - Dependencies
- vite.config.ts - Plugin setup
- basic-routes/ - File structure example
- route-with-loader.tsx - Data loading
- query-integration.tsx - TanStack Query
- nested-routes/ - Layouts
- cloudflare-deployment.md - Workers guide
📚 Reference Docs (6)
- File-based routing conventions
- TypeScript type safety patterns
- Data loading with loaders
- Cloudflare Workers deployment
- Common errors (7+)
- Migration from React Router
Quick Example
// src/routes/posts.$postId.tsx
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/posts/$postId')({
loader: async ({ params }) => {
const post = await fetch(`/api/posts/${params.postId}`).then(r => r.json())
return { post }
},
component: function Post() {
const { post } = Route.useLoaderData()
return <h1>{post.title}</h1>
},
})
// Usage: Fully typed!
<Link to="/posts/$postId" params={{ postId: '123' }} />
7 Errors Prevented
- Devtools dependency resolution
- Vite plugin ordering
- Type registration missing
- Loader not running
- Memory leaks (known issue)
- Middleware undefined errors
- API route errors after restart
Installation
npm install @tanstack/react-router @tanstack/router-devtools
npm install -D @tanstack/router-plugin
Latest: v1.170.18
Version: 1.0.0 | Last Updated: 2026-08-03