Catalogue / tanstack
tanstack
MITSignedUse for TanStack Query, Router, Table, Virtual, Form, Store, Pacer, Hotkeys, Charts and DB.--- name: tanstack description: "Use for TanStack Query, Router, Table, Virtual, Form, Store, Pacer, Hotkeys, Charts and DB." ---
TanStack ecosystem: judgement layer
This skill holds cross-library rules and pitfalls. API detail comes from the installed versions, so confirm them first. Project conventions win over this file.
Version-matched API first
Read the lockfile and installed declarations before using an API. Consult the version notes and version-matched documentation. Flag unrelated migration sites for deliver.
Where agents slip
- Incomplete keys: the key holds every value the
queryFnreads. - Duplicated query contracts: one
queryOptionsfactory per resource,
reused by hook, loader, prefetch and cache reads.
- Failed requests that resolve:
fetchresolves on 4xx and 5xx. The
queryFn throws for them and forwards signal.
- Status:
isPendingmeans no data and no error yet (a failed first fetch is
not pending); isFetching is a running request. List key changes use placeholderData: keepPreviousData.
- Freshness: choose
staleTimefrom the data; never disable focus
refetching to hide a bad value. In Query versions supporting static, static observers do not refetch on invalidation; verify with a trace.
- Tracked results: destructure only fields read; no rest-spread.
- Optimistic updates: show
variablesbefore editing the cache; money is
never optimistic. See references/mutations.md.
- Query data is not component state: derive or use
select, never copy to
useState.
- `skipToken`:
refetch()cannot run that query. - `useSuspenseQuery`: no
enabledorplaceholderData.
Routing by library
- Imperative Query migration: query methods.
- Form and Store API migrations: form and store.
- Router loaders with Query: router integration.
- Tables and virtual rows: table. Never ship
stockFeatures. Server tables set the manual* options and hold state in the query key. Virtualise only hundreds of rendered rows.
- Debounce, throttle, queue: pacer (beta).
- File routes, router-plugin, Hotkeys and Devtools: load the Intent skills
shipped with the installed packages (router-core children, router-plugin, hotkeys-core, devtools-production). Keep devtools dev-only and tree-shaken from production; check the bundle only if that lane may run the project's own build. Devtools packages need compatible versions, per their peer ranges.
- Collections and live queries: db (experimental).
Charts: use version-matched docs; no reference here.
Verification
Support cache freshness and invalidation claims with a request trace or a focused component test. Record the evidence path.
Test public hooks/components with a fresh QueryClient and retry: false. Suggest missing Query ESLint rules; never add them unasked. See verification.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 3.2 kB | 91806d2d6483 |
| SKILVAULT_SOURCE.json | 2.4 kB | f08ff482d8f1 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | 2dfb9c8683dc |
| agents/openai.yaml | 241 B | b0951c4e30b9 |
| references/db.md | 605 B | c76fe18e326c |
| references/form.md | 1.3 kB | bdddba2d84da |
| references/imperative-queries.md | 946 B | 7d42bf797eff |
| references/mutations.md | 861 B | 4026f2d4351f |
| references/pacer.md | 1.0 kB | b417c44fa80f |
| references/releases-2026.md | 418 B | 98b5185a966e |
| references/router.md | 1.3 kB | 6d1df5e33f11 |
| references/store.md | 1.1 kB | 93af726b6e5e |
| references/table.md | 4.1 kB | b2937d25d93d |
| references/verification.md | 548 B | 6699d250dfcb |
| references/version-matched.md | 2.2 kB | 6806bea6c3d0 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | b003cc433603 | 29 Nov 2026 |
Locking a skill to one version needs Pro.