
tanstack-router-best-practices
TanStack Router best practices for type-safe routing, data loading
by deckardgerFree
Description
The tanstack-router-best-practices skill gives an AI agent a set of rules for building React applications with TanStack Router. The rules cover type-safe routing, data loading, search parameters, navigation and code organization. The skill applies when the agent sets up application routing, creates new routes and layouts, handles search parameters, configures data loaders, sets up code splitting, integrates the router with TanStack Query, or refactors navigation. The rules are grouped by priority, so the most important ones guide the agent first. TanStack Router keeps route parameters and search parameters typed, so mistakes in links and parameters show up during development rather than in production, and the skill helps the agent use those features correctly. The skill is meant for React developers who use TanStack Router on a project with complex routing and want the agent to follow the library's recommended patterns. It is listed on skills.sh and is published in the deckardger tanstack-agent-skills repository on GitHub, which shows about 224 stars. Its security checks all passed.…
Highlights
- Type-safe routing rules
- Data loading and loader configuration
- Search parameter handling
- Code splitting and TanStack Query integration
- Rules grouped by priority
Ratings & Reviews
No ratings yet
Be the first to rate tanstack-router-best-practices.
People also visit

tanstack-start-best-practices
TanStack Start best practices for full-stack React applications

tanstack-query-best-practices
TanStack Query (React Query) best practices for data fetching, caching

react-router-framework-mode
Build full-stack React applications using React Router's framework mode

react-best-practices
Reading or writing React components (.tsx, .jsx files with React imports)
tanstack-router-best-practices FAQ
What does the skill cover?
TanStack Router best practices for React: type-safe routing, data loaders, search parameters, navigation and code splitting.
How do I install it?
Run: npx skills add https://github.com/deckardger/tanstack-agent-skills --skill tanstack-router-best-practices
When does it apply?
When setting up routing, creating routes and layouts, handling search parameters, configuring loaders, or refactoring navigation.
Does it work with TanStack Query?
Yes. The skill includes guidance for integrating the router with TanStack Query.
What are the security audit results?
Gen Agent Trust Hub Pass, Socket Pass, Snyk Pass.
What are the best tanstack-router-best-practices alternatives?
Popular alternatives to tanstack-router-best-practices include tanstack-router, tanstack-start-best-practices and tanstack-query-best-practices. See all tanstack-router-best-practices alternatives













