tanstack-router
Skill4 starsChanged 10 days agoMITView on GitHub
Apply TanStack Router patterns for Query ownership and typed search. Use when changing routes, loaders, navigation, route trees, or search parameters.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- yuan-alex/cedartheir own version, first seen Nov 8, 2026
- louisbrulenaudet/monorepo-templatetheir own version, first seen Oct 29, 2026
- Firzus/agent-skillstheir own version, first seen Oct 23, 2026
- LaoitdevOpen/laoitdev-skillstheir own version, first seen Oct 20, 2026
- itsLeonB/agent-config-managertheir own version, first seen Oct 20, 2026
- rockcookies/skillstheir own version, first seen Oct 13, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- Mindrally/skills★ 275same name
- TangleML/tangle-ui★ 104same name
- louisbrulenaudet/monorepo-template★ 19same name
- Firzus/agent-skills★ 4same name
- dvaJi/argos★ 3same name
- Spardutti/claude-skills★ 3same name
- Aver005/agent-skills★ 2same name
- bm629/agent-skills★ 2same name
- lobomfz/skills★ 2same name
- zkmake/skills★ 2same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- agent-watchdogSkill
- aipSkill
- animateSkill
- animation-performanceSkill
- animation-vocabularySkill
- ask-benSkill
- ask-sonnerSkill
- bazelSkill
- bend-lawsSkill
- blast-radiusSkill
- brain-dumpSkill
- break-uiSkill
- ci-fixesSkill
- codebase-designSkill
- codex-compatSkill
- codexSkill
- commit-push-prSkill
- connect-querySkill
- create-verification-skillSkill
- demoSkill
- development-lifecycleSkill
- diagnosing-bugsSkill
- docsSkill
- dogfoodSkill
- domain-modelingSkill
- e2e-testingSkill
- effect-tsSkill
- effect-v3-to-v4Skill
- efficient-frontierSkill
- eli5Skill
- excalidraw-diagramSkill
- extend-harnessSkill
- frontend-invariantsSkill
- frontend-starter-kitSkill
- full-sendSkill
- gesturesSkill
- golang-reviewSkill
- golangSkill
- goSkill
- grillingSkill
- handoffSkill
- hook-auditSkill
- implement-specSkill
- improve-animationsSkill
- improve-codebase-architectureSkill
- improveSkill
- launchdarklySkill
- lie-detectorSkill
- maintain-verification-skillSkill
- make-pr-easy-to-reviewSkill
- mobile-nativeSkill
- plan-arbiterSkill
- plow-aheadSkill
- postgresqlSkill
- primeSkill
- productSkill
- protobufSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Run /tanstack-intent first for installed Router/Query API syntax.
- Distinctive: line 29
Use Router pending UI/timing, not custom navigation timers.
- Very specific: line 36
Use router navigation, not window.location.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run /tanstack-intent first for installed Router/Query API syntax. This skill owns local URL/data policy. See REFERENCE.md for shapes and SETUP.md for install.
Router + Query
Router loaders start server fetches after navigation intent; Query owns cache/refetch/invalidation/GC; components observe with useQuery/useSuspenseQuery.
Route-known inputs use one pipeline: validateSearch -> loaderDeps -> one queryOptions builder -> loader and observer. Return only query-driving fields. Components use useLoaderDeps, not parallel search reads. Share route-context options only when installed Intent guidance supports it.
- Critical data: await
ensureQueryData, observe withuseSuspenseQuery. - Deferred route data: start in loader, observe with
useQueryplus loading/empty/error. - Interaction-only data may start in components.
- Query loaders use
defaultPreloadStaleTime: 0andcreateRootRouteWithContext.
Navigation lifetimes
- Superseded navigation cannot publish; shared loader/Query work may remain useful.
beforeLoadis replay-safe auth, redirect, or context construction. No observable side effects or ordinary fetches.- Direct loader requests forward
abortController.signal; Query functions forward Query's signal. Never cancel shared work on each navigation. - Throw
redirect(...); never imperatively navigate from guards/loaders. onResolvedowns analytics/non-DOM cleanup;onRenderedowns focus, scroll, measurement after commit.- Use Router pending UI/timing, not custom navigation timers.
Route rules
- Scope
useParams,useSearch,useLoaderData,useRouteContextwith{ from }or route API; rejectstrict: false. - Query-backed components read Query, not
Route.useLoaderData. - Route files export config only; reusable components live elsewhere.
- Use router navigation, not
window.location. react-router-dom,URLSearchParams, and nuqs are migration debt.- Regenerate route tree after changes.
Search
validateSearch owns typing. URL holds shareable tabs/filters/sort/page; storage holds personal density/page size/collapse. Validate enums/dates/bounded numbers; clamp stale pages. Merge prior search and use replace: true within a section so Back exits it.
Done
Types prove scope; loader and observer share options/inputs; Query has an active observer and all visible states; rapid/preloaded navigation cannot publish stale UI or duplicate app work; tests assert rendered landmarks after URL changes; history semantics and malformed/stale/shared URLs pass; route tree, tests, typecheck, lint pass.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

