setup-tanstack-router
CommunityEnforce TanStack Router patterns and auto routes.
Software Engineering#automation#routing#hooks#code-quality#type-safety#tanstack-router#route-generation
Authormalinskibeniamin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automatically enforce TanStack Router usage patterns and prevent common routing mistakes by auto-generating and validating route trees during development.
Core Features & Use Cases
- Ban react-router-dom imports within route files to promote TanStack Router usage.
- Block window.location navigation and hard reloads, guiding developers toward router-based navigation and invalidate/query-based approaches.
- Auto-regenerate the route tree on route file changes to maintain routing accuracy and reduce manual sync.
- Enforce typed route params with explicit from-based references and require validateSearch where useSearch is used.
- Guard against anti-patterns like strict: false and untyped hooks, and encourage type-safe, component-scoped routing.
Quick Start
Configure your project to manage routes with TanStack Router and enable the auto-generation hooks to keep the route tree up to date.
Dependency Matrix
Required Modules
bun
Components
scripts
💻 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: setup-tanstack-router Download link: https://github.com/malinskibeniamin/skills/archive/main.zip#setup-tanstack-router Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.