tanstack
Installation
SKILL.md
TanStack Developer Guide
This SKILL.md is a dispatcher, not an encyclopedia. The load-bearing detail (code patterns, anti-patterns, edge cases, full checklists) lives in references/*.md. The tripwires below exist so you can detect violations during scanning — they are not the contract.
Required Reading Router
Match the task to the row. Read the listed file(s) in full before producing output. They are not appendices — they are the contract. Inline content in this SKILL.md is a pointer, not a substitute.
| Task | MUST read |
|---|---|
useQuery / useMutation / prefetch / infinite list / SSR hydration / cache config |
references/query-patterns.md |
| Typed collections, live queries, optimistic collection mutations | references/db-patterns.md |
| Forms, field components, validation, async checks | references/form-patterns.md |
| Routes, search params, loaders, navigation, auth-protected layouts, router setup | references/router-patterns.md |
| Server functions, middleware, sessions, SSR streaming, env, deploy adapters | references/start-patterns.md |
| Anything that touches two or more layers (e.g. route loader + server fn + form) | Each file from the relevant rows — read all before designing |