Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

skill_tree.yaml

704 lines31.8 KB

1# skill_tree.yaml
2# Generated by skill-tree-generator
3# Library: TanStack Query
4# Date: 2026-06-03
5# Status: draft
6​
7library:
8 name: 'TanStack Query'
9 version: '5.101.0'
10 repository: 'https://github.com/TanStack/query'
11 description: 'Framework adapters and core utilities for fetching, caching, synchronizing, and updating server state.'
12generated_from:
13 domain_map: '_artifacts/domain_map.yaml'
14 skill_spec: '_artifacts/skill_spec.md'
15generated_at: '2026-06-03T21:41:21Z'
16​
17skills:
18 - name: 'Set up QueryClient and providers'
19 slug: 'setup-query-client-and-providers'
20 type: 'lifecycle'
21 domain: 'bootstrapping-query-clients'
22 path: 'packages/query-intent/skills/lifecycle/setup-query-client-and-providers/SKILL.md'
23 package: 'packages/query-intent'
24 description: 'Create stable QueryClient instances, wire framework providers, and avoid cache leaks across renders or SSR requests.'
25 sources:
26 - 'TanStack/query:docs/framework/react/quick-start.md'
27 - 'TanStack/query:docs/framework/react/reference/QueryClientProvider.md'
28 - 'TanStack/query:docs/eslint/stable-query-client.md'
29 - 'TanStack/query:docs/framework/vue/guides/custom-client.md'
30 - 'TanStack/query:docs/framework/angular/overview.md'
31 - 'TanStack/query:docs/framework/lit/guides/reactive-controllers-vs-hooks.md'
32 subsystems:
33 - 'React'
34 - 'Preact'
35 - 'Vue'
36 - 'Solid'
37 - 'Svelte'
38 - 'Angular'
39 - 'Lit'
40 references:
41 - 'references/providers-by-adapter.md'
42 - 'references/ssr-client-lifecycle.md'
43​
44 - name: 'Design query keys and reusable options'
45 slug: 'design-query-keys-and-options'
46 type: 'core'
47 domain: 'reading-server-state'
48 path: 'packages/query-intent/skills/core/design-query-keys-and-options/SKILL.md'
49 package: 'packages/query-intent'
50 description: 'Design complete query keys and reusable options objects that keep query identity, query functions, and TypeScript inference together.'
51 sources:
52 - 'TanStack/query:docs/framework/react/guides/query-keys.md'
53 - 'TanStack/query:docs/framework/react/guides/query-options.md'
54 - 'TanStack/query:docs/framework/react/typescript.md'
55 - 'TanStack/query:docs/eslint/exhaustive-deps.md'
56 - 'TanStack/query:docs/eslint/prefer-query-options.md'
57 subsystems:
58 - 'queryOptions'
59 - 'infiniteQueryOptions'
60 - 'mutationOptions'
61 - 'skipToken'
62 references:
63 - 'references/options-api-by-adapter.md'
64 - 'references/query-key-factories.md'
65​
66 - name: 'Build Query abstractions'
67 slug: 'build-query-abstractions'
68 type: 'core'
69 domain: 'reading-server-state'
70 path: 'packages/query-intent/skills/core/build-query-abstractions/SKILL.md'
71 package: 'packages/query-intent'
72 description: 'Create queryOptions factories and custom hooks that preserve TypeScript inference and work across hooks, loaders, prefetches, and QueryClient calls.'
73 requires:
74 - 'design-query-keys-and-options'
75 sources:
76 - 'https://tkdodo.eu/blog/creating-query-abstractions'
77 - 'https://tkdodo.eu/blog/the-query-options-api'
78 - 'TanStack/query:docs/framework/react/guides/query-options.md'
79 - 'TanStack/query:docs/framework/react/typescript.md'
80 subsystems:
81 - 'queryOptions'
82 - 'custom hooks'
83 - 'TypeScript inference'
84 references:
85 - 'references/query-abstractions.md'
86​
87 - name: 'Understand Query internals and observers'
88 slug: 'understand-query-internals-and-observers'
89 type: 'core'
90 domain: 'reading-server-state'
91 path: 'packages/query-intent/skills/core/understand-query-internals-and-observers/SKILL.md'
92 package: 'packages/query-intent'
93 description: 'Explain QueryClient, QueryCache, MutationCache, QueryObserver, active and inactive queries, and observer-level option behavior.'
94 requires:
95 - 'fetch-and-observe-queries'
96 sources:
97 - 'https://tkdodo.eu/blog/inside-react-query'
98 - 'https://tkdodo.eu/blog/react-query-selectors-supercharged'
99 - 'TanStack/query:docs/reference/QueryClient.md'
100 - 'TanStack/query:docs/reference/QueryCache.md'
101 - 'TanStack/query:docs/reference/QueryObserver.md'
102 - 'TanStack/query:docs/reference/MutationCache.md'
103 subsystems:
104 - 'QueryClient'
105 - 'QueryCache'
106 - 'QueryObserver'
107 - 'active queries'
108 - 'inactive queries'
109 references:
110 - 'references/query-internals-and-observers.md'
111​
112 - name: 'Fetch and observe queries'
113 slug: 'fetch-and-observe-queries'
114 type: 'core'
115 domain: 'reading-server-state'
116 path: 'packages/query-intent/skills/core/fetch-and-observe-queries/SKILL.md'
117 package: 'packages/query-intent'
118 description: 'Read server state with query hooks, observers, and QueryClient fetch methods while interpreting status and fetchStatus correctly.'
119 requires:
120 - 'setup-query-client-and-providers'
121 - 'design-query-keys-and-options'
122 sources:
123 - 'TanStack/query:docs/framework/react/guides/queries.md'
124 - 'TanStack/query:docs/framework/react/guides/query-functions.md'
125 - 'TanStack/query:docs/reference/QueryObserver.md'
126 - 'TanStack/query:docs/reference/QueryClient.md'
127 - 'TanStack/query:docs/eslint/no-void-query-fn.md'
128 subsystems:
129 - 'useQuery'
130 - 'useQueries'
131 - 'QueryObserver'
132 - 'QueriesObserver'
133 - 'QueryClient'
134 references:
135 - 'references/query-observation-by-adapter.md'
136 - 'references/status-and-fetch-status.md'
137​
138 - name: 'Handle status checks and errors'
139 slug: 'handle-status-and-errors'
140 type: 'framework'
141 domain: 'reading-server-state'
142 path: 'packages/query-intent/skills/framework/handle-status-and-errors/SKILL.md'
143 package: 'packages/query-intent'
144 description: 'Design loading, stale data, background refetch error, throwOnError, Error Boundary, toast, and validation-error flows.'
145 requires:
146 - 'fetch-and-observe-queries'
147 - 'use-suspense-and-error-boundaries'
148 sources:
149 - 'https://tkdodo.eu/blog/status-checks-in-react-query'
150 - 'https://tkdodo.eu/blog/react-query-error-handling'
151 - 'TanStack/query:docs/framework/react/guides/queries.md'
152 - 'TanStack/query:docs/framework/react/reference/QueryErrorResetBoundary.md'
153 subsystems:
154 - 'status'
155 - 'fetchStatus'
156 - 'throwOnError'
157 - 'QueryCache callbacks'
158 references:
159 - 'references/status-and-error-handling.md'
160​
161 - name: 'Tune defaults, freshness, retries, and refetching'
162 slug: 'tune-defaults-freshness-retries-and-refetching'
163 type: 'core'
164 domain: 'coordinating-query-execution'
165 path: 'packages/query-intent/skills/core/tune-defaults-freshness-retries-and-refetching/SKILL.md'
166 package: 'packages/query-intent'
167 description: 'Choose staleTime, gcTime, retries, refetch triggers, network mode, and default options without confusing cache lifetime with freshness.'
168 requires:
169 - 'fetch-and-observe-queries'
170 sources:
171 - 'TanStack/query:docs/framework/react/guides/important-defaults.md'
172 - 'TanStack/query:docs/framework/react/guides/caching.md'
173 - 'TanStack/query:docs/framework/react/guides/query-retries.md'
174 - 'TanStack/query:docs/framework/react/guides/window-focus-refetching.md'
175 - 'TanStack/query:docs/framework/react/guides/network-mode.md'
176 - 'TanStack/query:docs/reference/focusManager.md'
177 - 'TanStack/query:docs/reference/onlineManager.md'
178 - 'TanStack/query:docs/reference/timeoutManager.md'
179 references:
180 - 'references/defaults-and-freshness.md'
181 - 'references/focus-online-timeout-managers.md'
182​
183 - name: 'Coordinate dependent, parallel, disabled, and background queries'
184 slug: 'coordinate-dependent-parallel-disabled-and-background-queries'
185 type: 'core'
186 domain: 'coordinating-query-execution'
187 path: 'packages/query-intent/skills/core/coordinate-query-execution/SKILL.md'
188 package: 'packages/query-intent'
189 description: 'Coordinate query execution with enabled, skipToken, useQueries, background indicators, and dependency-driven keys instead of imperative refetch flows.'
190 requires:
191 - 'fetch-and-observe-queries'
192 - 'tune-defaults-freshness-retries-and-refetching'
193 sources:
194 - 'TanStack/query:docs/framework/react/guides/dependent-queries.md'
195 - 'TanStack/query:docs/framework/react/guides/parallel-queries.md'
196 - 'TanStack/query:docs/framework/react/guides/disabling-queries.md'
197 - 'TanStack/query:docs/framework/react/guides/background-fetching-indicators.md'
198 - 'TanStack/query:docs/framework/react/reference/useQueries.md'
199 references:
200 - 'references/query-coordination-patterns.md'
201​
202 - name: 'Paginate and build infinite queries'
203 slug: 'paginate-and-build-infinite-queries'
204 type: 'core'
205 domain: 'coordinating-query-execution'
206 path: 'packages/query-intent/skills/core/paginate-and-build-infinite-queries/SKILL.md'
207 package: 'packages/query-intent'
208 description: 'Build paginated and infinite query flows with stable keys, initialPageParam, getNextPageParam, maxPages, and preserved pages/pageParams shape.'
209 requires:
210 - 'design-query-keys-and-options'
211 - 'fetch-and-observe-queries'
212 sources:
213 - 'TanStack/query:docs/framework/react/guides/paginated-queries.md'
214 - 'TanStack/query:docs/framework/react/guides/infinite-queries.md'
215 - 'TanStack/query:docs/framework/react/reference/useInfiniteQuery.md'
216 - 'TanStack/query:docs/reference/InfiniteQueryObserver.md'
217 - 'TanStack/query:docs/eslint/infinite-query-property-order.md'
218 references:
219 - 'references/infinite-query-by-adapter.md'
220 - 'references/pagination-and-lagged-data.md'
221​
222 - name: 'Write mutations and invalidate related queries'
223 slug: 'write-mutations-and-invalidate-related-queries'
224 type: 'core'
225 domain: 'writing-server-state'
226 path: 'packages/query-intent/skills/core/write-mutations-and-invalidate-related-queries/SKILL.md'
227 package: 'packages/query-intent'
228 description: 'Write server state with mutations, scoped mutation defaults, mutation state, invalidation, and awaited post-mutation refetching.'
229 requires:
230 - 'design-query-keys-and-options'
231 - 'fetch-and-observe-queries'
232 sources:
233 - 'TanStack/query:docs/framework/react/guides/mutations.md'
234 - 'TanStack/query:docs/framework/react/guides/query-invalidation.md'
235 - 'TanStack/query:docs/framework/react/guides/invalidations-from-mutations.md'
236 - 'TanStack/query:docs/framework/react/guides/updates-from-mutation-responses.md'
237 - 'TanStack/query:docs/framework/react/reference/useMutation.md'
238 - 'TanStack/query:docs/framework/react/reference/useMutationState.md'
239 - 'TanStack/query:docs/reference/MutationCache.md'
240 references:
241 - 'references/mutation-options-by-adapter.md'
242 - 'references/invalidation-patterns.md'
243​
244 - name: 'Automatic invalidation after mutations'
245 slug: 'automatic-invalidation-after-mutations'
246 type: 'composition'
247 domain: 'writing-server-state'
248 path: 'packages/query-intent/skills/compositions/automatic-invalidation-after-mutations/SKILL.md'
249 package: 'packages/query-intent'
250 description: 'Create MutationCache invalidation policies with mutationKey scoping, mutation meta tags, awaited invalidation, and static-data exclusions.'
251 requires:
252 - 'write-mutations-and-invalidate-related-queries'
253 - 'design-query-keys-and-options'
254 sources:
255 - 'https://tkdodo.eu/blog/automatic-query-invalidation-after-mutations'
256 - 'TanStack/query:docs/framework/react/guides/invalidations-from-mutations.md'
257 - 'TanStack/query:docs/reference/MutationCache.md'
258 - 'TanStack/query:docs/reference/QueryClient.md'
259 subsystems:
260 - 'MutationCache'
261 - 'mutationKey'
262 - 'mutation meta'
263 - 'matchQuery'
264 references:
265 - 'references/automatic-mutation-invalidation.md'
266​
267 - name: 'Implement optimistic updates and cache writes'
268 slug: 'implement-optimistic-updates-and-cache-writes'
269 type: 'core'
270 domain: 'writing-server-state'
271 path: 'packages/query-intent/skills/core/implement-optimistic-updates-and-cache-writes/SKILL.md'
272 package: 'packages/query-intent'
273 description: 'Implement optimistic UI and direct cache writes with cancellation, immutable updates, rollback context, invalidation, and offline persistence awareness.'
274 requires:
275 - 'write-mutations-and-invalidate-related-queries'
276 - 'cancel-queries-and-consume-abort-signals'
277 sources:
278 - 'TanStack/query:docs/framework/react/guides/optimistic-updates.md'
279 - 'TanStack/query:docs/framework/react/guides/updates-from-mutation-responses.md'
280 - 'TanStack/query:docs/framework/react/guides/query-cancellation.md'
281 - 'TanStack/query:docs/framework/react/plugins/persistQueryClient.md'
282 references:
283 - 'references/optimistic-updates.md'
284 - 'references/cache-write-invariants.md'
285​
286 - name: 'Concurrent optimistic updates'
287 slug: 'concurrent-optimistic-updates'
288 type: 'core'
289 domain: 'writing-server-state'
290 path: 'packages/query-intent/skills/core/concurrent-optimistic-updates/SKILL.md'
291 package: 'packages/query-intent'
292 description: 'Handle overlapping optimistic mutations with submittedAt identity, scoped mutationKey filters, isMutating guards, cancellation, rollback, and filtered list updates.'
293 requires:
294 - 'implement-optimistic-updates-and-cache-writes'
295 - 'cancel-queries-and-consume-abort-signals'
296 sources:
297 - 'https://tkdodo.eu/blog/concurrent-optimistic-updates-in-react-query'
298 - 'TanStack/query:docs/framework/react/guides/optimistic-updates.md'
299 - 'TanStack/query:docs/framework/react/reference/useMutationState.md'
300 subsystems:
301 - 'useMutationState'
302 - 'submittedAt'
303 - 'queryClient.isMutating'
304 - 'mutationKey filters'
305 references:
306 - 'references/concurrent-optimistic-updates.md'
307​
308 - name: 'Query data and forms'
309 slug: 'query-data-and-forms'
310 type: 'composition'
311 domain: 'writing-server-state'
312 path: 'packages/query-intent/skills/compositions/query-data-and-forms/SKILL.md'
313 package: 'packages/query-intent'
314 description: 'Integrate Query data and mutations with forms, dirty client state, background updates, submit prevention, invalidation, and reset-after-save.'
315 requires:
316 - 'write-mutations-and-invalidate-related-queries'
317 - 'selectors-and-derived-state'
318 sources:
319 - 'https://tkdodo.eu/blog/react-query-and-forms'
320 - 'https://tkdodo.eu/blog/deriving-client-state-from-server-state'
321 - 'TanStack/query:docs/framework/react/guides/mutations.md'
322 - 'TanStack/query:docs/framework/react/guides/invalidations-from-mutations.md'
323 subsystems:
324 - 'form initial values'
325 - 'dirty fields'
326 - 'background updates'
327 - 'mutation submission'
328 references:
329 - 'references/query-data-and-forms.md'
330​
331 - name: 'Cancel queries and consume AbortSignals'
332 slug: 'cancel-queries-and-consume-abort-signals'
333 type: 'core'
334 domain: 'writing-server-state'
335 path: 'packages/query-intent/skills/core/cancel-queries-and-consume-abort-signals/SKILL.md'
336 package: 'packages/query-intent'
337 description: 'Use AbortSignal-aware query functions, cancelQueries, CancelledError, and rollback behavior without assuming unmount cancels fetches.'
338 requires:
339 - 'fetch-and-observe-queries'
340 sources:
341 - 'TanStack/query:docs/framework/react/guides/query-cancellation.md'
342 - 'TanStack/query:docs/reference/QueryClient.md'
343 - 'TanStack/query:packages/query-core/src/retryer.ts'
344 references:
345 - 'references/cancellation-and-abort.md'
346​
347 - name: 'Seed, placeholder, select, and transform data'
348 slug: 'seed-placeholder-select-and-transform-data'
349 type: 'core'
350 domain: 'shaping-cache-and-render-behavior'
351 path: 'packages/query-intent/skills/core/seed-placeholder-select-and-transform-data/SKILL.md'
352 package: 'packages/query-intent'
353 description: 'Choose initialData, placeholderData, select, and transformation points without corrupting cache semantics or hiding errors.'
354 requires:
355 - 'design-query-keys-and-options'
356 - 'fetch-and-observe-queries'
357 sources:
358 - 'TanStack/query:docs/framework/react/guides/initial-query-data.md'
359 - 'TanStack/query:docs/framework/react/guides/placeholder-query-data.md'
360 - 'TanStack/query:docs/framework/react/guides/render-optimizations.md'
361 - 'TanStack/query:docs/framework/react/reference/queryOptions.md'
362 references:
363 - 'references/initial-placeholder-select.md'
364 - 'references/data-transformation-choices.md'
365​
366 - name: 'Selectors and derived state'
367 slug: 'selectors-and-derived-state'
368 type: 'core'
369 domain: 'shaping-cache-and-render-behavior'
370 path: 'packages/query-intent/skills/core/selectors-and-derived-state/SKILL.md'
371 package: 'packages/query-intent'
372 description: 'Use select, stable selector identities, structural sharing, usage-site queryOptions composition, and render-time derivation instead of effect-based state syncing.'
373 requires:
374 - 'seed-placeholder-select-and-transform-data'
375 - 'shape-data-and-render-efficiently'
376 sources:
377 - 'https://tkdodo.eu/blog/react-query-selectors-supercharged'
378 - 'https://tkdodo.eu/blog/deriving-client-state-from-server-state'
379 - 'TanStack/query:docs/framework/react/guides/render-optimizations.md'
380 - 'TanStack/query:docs/framework/react/reference/queryOptions.md'
381 subsystems:
382 - 'select'
383 - 'selector identity'
384 - 'structural sharing'
385 - 'derived client state'
386 references:
387 - 'references/selectors-and-derived-state.md'
388​
389 - name: 'Shape data and render efficiently'
390 slug: 'shape-data-and-render-efficiently'
391 type: 'framework'
392 domain: 'shaping-cache-and-render-behavior'
393 path: 'packages/query-intent/skills/framework/shape-data-and-render-efficiently/SKILL.md'
394 package: 'packages/query-intent'
395 description: 'Preserve structural sharing, tracked properties, stable hook deps, and adapter-specific immutability so Query changes do not cause noisy renders.'
396 requires:
397 - 'fetch-and-observe-queries'
398 - 'seed-placeholder-select-and-transform-data'
399 sources:
400 - 'TanStack/query:docs/framework/react/guides/render-optimizations.md'
401 - 'TanStack/query:docs/eslint/no-rest-destructuring.md'
402 - 'TanStack/query:docs/eslint/no-unstable-deps.md'
403 - 'TanStack/query:docs/framework/vue/reactivity.md'
404 subsystems:
405 - 'React tracked properties'
406 - 'Preact tracked properties'
407 - 'Vue immutable results'
408 references:
409 - 'references/render-optimization-by-adapter.md'
410​
411 - name: 'Prefetch and remove request waterfalls'
412 slug: 'prefetch-and-remove-request-waterfalls'
413 type: 'lifecycle'
414 domain: 'rendering-across-environments'
415 path: 'packages/query-intent/skills/lifecycle/prefetch-and-remove-request-waterfalls/SKILL.md'
416 package: 'packages/query-intent'
417 description: 'Flatten request waterfalls with prefetchQuery, prefetchInfiniteQuery, ensureQueryData, router loaders, and render-before-suspense prefetching.'
418 requires:
419 - 'design-query-keys-and-options'
420 - 'fetch-and-observe-queries'
421 - 'tune-defaults-freshness-retries-and-refetching'
422 sources:
423 - 'TanStack/query:docs/framework/react/guides/prefetching.md'
424 - 'TanStack/query:docs/framework/react/guides/request-waterfalls.md'
425 - 'TanStack/query:docs/framework/react/reference/usePrefetchQuery.md'
426 - 'TanStack/query:docs/framework/react/reference/usePrefetchInfiniteQuery.md'
427 - 'TanStack/query:docs/reference/QueryClient.md'
428 - 'TanStack/query:examples/react/react-router/src/routes/root.tsx'
429 - 'TanStack/query:examples/react/react-router/src/routes/contact.tsx'
430 subsystems:
431 - 'event prefetch'
432 - 'route prefetch'
433 - 'render prefetch'
434 - 'query function prefetch'
435 references:
436 - 'references/prefetching-and-waterfalls.md'
437 - 'references/router-loader-prefetch.md'
438​
439 - name: 'Compose TanStack Query with TanStack Router and Start'
440 slug: 'compose-query-with-tanstack-router-and-start'
441 type: 'composition'
442 domain: 'rendering-across-environments'
443 path: 'packages/query-intent/skills/compositions/compose-query-with-tanstack-router-and-start/SKILL.md'
444 package: 'packages/query-intent'
445 description: 'Use Query with TanStack Router loaders, router context, @tanstack/react-router-ssr-query, Start routes, SSR hydration, streaming, and redirects.'
446 requires:
447 - 'setup-query-client-and-providers'
448 - 'design-query-keys-and-options'
449 - 'prefetch-and-remove-request-waterfalls'
450 sources:
451 - 'https://tkdodo.eu/blog/tan-stack-router-and-query'
452 - 'TanStack/router:https://tanstack.com/router/latest/docs/integrations/query'
453 - 'TanStack/router:https://tanstack.com/router/latest/docs/how-to/setup-ssr'
454 - 'TanStack/start:https://tanstack.com/start/latest/docs/framework/react/overview'
455 - 'TanStack/query:docs/framework/react/guides/prefetching.md'
456 - 'TanStack/query:docs/framework/react/guides/ssr.md'
457 subsystems:
458 - 'TanStack Router'
459 - 'TanStack Start'
460 - '@tanstack/react-router-ssr-query'
461 - 'route loaders'
462 - 'server functions'
463 references:
464 - 'references/tanstack-router-start-query.md'
465 - 'references/router-ssr-query-integration.md'
466​
467 - name: 'SSR, hydration, and streaming'
468 slug: 'ssr-hydration-and-streaming'
469 type: 'lifecycle'
470 domain: 'rendering-across-environments'
471 path: 'packages/query-intent/skills/lifecycle/ssr-hydration-and-streaming/SKILL.md'
472 package: 'packages/query-intent'
473 description: 'Use per-request clients, dehydrate/hydrate, HydrationBoundary, TanStack Start, Router SSR Query, Next.js, Nuxt, SvelteKit, SolidStart, Lit SSR, and streamed hydration safely.'
474 requires:
475 - 'setup-query-client-and-providers'
476 - 'prefetch-and-remove-request-waterfalls'
477 sources:
478 - 'TanStack/query:docs/framework/react/guides/ssr.md'
479 - 'TanStack/query:docs/framework/react/guides/advanced-ssr.md'
480 - 'TanStack/query:docs/framework/react/reference/hydration.md'
481 - 'TanStack/query:docs/reference/environmentManager.md'
482 - 'TanStack/query:docs/reference/streamedQuery.md'
483 - 'TanStack/query:docs/framework/vue/guides/ssr.md'
484 - 'TanStack/query:docs/framework/svelte/ssr.md'
485 - 'TanStack/query:docs/framework/solid/guides/ssr.md'
486 - 'TanStack/query:docs/framework/lit/guides/ssr.md'
487 subsystems:
488 - 'TanStack Start'
489 - 'TanStack Router SSR Query'
490 - 'Next.js pages router'
491 - 'Next.js app router'
492 - 'Nuxt'
493 - 'SvelteKit'
494 - 'SolidStart'
495 - 'Lit SSR'
496 references:
497 - 'references/ssr-recipes-by-framework.md'
498 - 'references/streaming-and-experimental-apis.md'
499​
500 - name: 'Use Suspense and error boundaries'
501 slug: 'use-suspense-and-error-boundaries'
502 type: 'framework'
503 domain: 'rendering-across-environments'
504 path: 'packages/query-intent/skills/framework/use-suspense-and-error-boundaries/SKILL.md'
505 package: 'packages/query-intent'
506 description: 'Use suspense query hooks, QueryErrorResetBoundary, throwOnError, React.use query promises, and streamed hydration with the right framework constraints.'
507 requires:
508 - 'fetch-and-observe-queries'
509 - 'prefetch-and-remove-request-waterfalls'
510 sources:
511 - 'TanStack/query:docs/framework/react/guides/suspense.md'
512 - 'TanStack/query:docs/framework/react/reference/QueryErrorResetBoundary.md'
513 - 'TanStack/query:docs/framework/react/reference/useSuspenseQuery.md'
514 - 'TanStack/query:docs/framework/react/reference/useSuspenseQueries.md'
515 - 'TanStack/query:docs/framework/react/reference/useSuspenseInfiniteQuery.md'
516 - 'TanStack/query:docs/framework/solid/guides/suspense.md'
517 - 'TanStack/query:docs/framework/vue/guides/suspense.md'
518 subsystems:
519 - 'React suspense'
520 - 'Solid suspense'
521 - 'Vue suspense'
522 - 'streamed hydration'
523 references:
524 - 'references/suspense-by-framework.md'
525​
526 - name: 'Persist offline and restore caches'
527 slug: 'persist-offline-and-restore-caches'
528 type: 'composition'
529 domain: 'persisting-and-synchronizing-caches'
530 path: 'packages/query-intent/skills/compositions/persist-offline-and-restore-caches/SKILL.md'
531 package: 'packages/query-intent'
532 description: 'Persist Query and mutation caches through sync, async, and fine-grained persisters while avoiding restore races, gcTime loss, and offline mutation failures.'
533 requires:
534 - 'setup-query-client-and-providers'
535 - 'tune-defaults-freshness-retries-and-refetching'
536 - 'write-mutations-and-invalidate-related-queries'
537 sources:
538 - 'TanStack/query:docs/framework/react/plugins/persistQueryClient.md'
539 - 'TanStack/query:docs/framework/react/plugins/createSyncStoragePersister.md'
540 - 'TanStack/query:docs/framework/react/plugins/createAsyncStoragePersister.md'
541 - 'TanStack/query:docs/framework/react/plugins/createPersister.md'
542 - 'TanStack/query:docs/framework/react/guides/network-mode.md'
543 subsystems:
544 - 'persistQueryClient'
545 - 'sync storage persister'
546 - 'async storage persister'
547 - 'fine-grained persister'
548 - 'offline mutations'
549 references:
550 - 'references/persistence-recipes.md'
551 - 'references/offline-mutations.md'
552​
553 - name: 'Broadcast, realtime, and multi-tab synchronization'
554 slug: 'broadcast-realtime-and-multi-tab-synchronization'
555 type: 'composition'
556 domain: 'persisting-and-synchronizing-caches'
557 path: 'packages/query-intent/skills/compositions/broadcast-realtime-and-multi-tab-synchronization/SKILL.md'
558 package: 'packages/query-intent'
559 description: 'Synchronize Query caches across tabs and realtime transports with broadcastQueryClient, targeted invalidation, and safe server/browser boundaries.'
560 requires:
561 - 'setup-query-client-and-providers'
562 - 'write-mutations-and-invalidate-related-queries'
563 - 'persist-offline-and-restore-caches'
564 sources:
565 - 'TanStack/query:docs/framework/react/plugins/broadcastQueryClient.md'
566 - 'TanStack/query:docs/framework/react/guides/query-invalidation.md'
567 - 'TanStack/query:examples/react/chat/package.json'
568 subsystems:
569 - 'broadcastQueryClient'
570 - 'BroadcastChannel'
571 - 'WebSocket invalidation'
572 - 'multi-tab cache sync'
573 references:
574 - 'references/broadcast-and-realtime.md'
575​
576 - name: 'Use framework adapter reactivity'
577 slug: 'use-framework-adapter-reactivity'
578 type: 'framework'
579 domain: 'framework-adapter-idioms'
580 path: 'packages/query-intent/skills/framework/use-framework-adapter-reactivity/SKILL.md'
581 package: 'packages/query-intent'
582 description: "Apply Query through each adapter's reactivity model, including Vue refs/getters, Solid signals, Svelte stores and runes, Angular signals, Lit controllers, React, and Preact hooks."
583 requires:
584 - 'setup-query-client-and-providers'
585 - 'design-query-keys-and-options'
586 sources:
587 - 'TanStack/query:docs/framework/vue/reactivity.md'
588 - 'TanStack/query:docs/framework/vue/guides/query-options.md'
589 - 'TanStack/query:docs/framework/solid/guides/query-options.md'
590 - 'TanStack/query:docs/framework/svelte/overview.md'
591 - 'TanStack/query:docs/framework/svelte/migrate-from-v5-to-v6.md'
592 - 'TanStack/query:docs/framework/angular/overview.md'
593 - 'TanStack/query:docs/framework/angular/zoneless.md'
594 - 'TanStack/query:docs/framework/lit/guides/reactive-controllers-vs-hooks.md'
595 subsystems:
596 - 'React'
597 - 'Preact'
598 - 'Vue'
599 - 'Solid'
600 - 'Svelte'
601 - 'Angular'
602 - 'Lit'
603 references:
604 - 'references/adapter-reactivity.md'
605 - 'references/framework-api-mapping.md'
606​
607 - name: 'Debug with devtools'
608 slug: 'debug-with-devtools'
609 type: 'framework'
610 domain: 'operational-quality'
611 path: 'packages/query-intent/skills/framework/debug-with-devtools/SKILL.md'
612 package: 'packages/query-intent'
613 description: 'Install and load Query devtools per adapter, embed panels when needed, avoid production bundles, and understand what devtools can and cannot simulate.'
614 requires:
615 - 'setup-query-client-and-providers'
616 sources:
617 - 'TanStack/query:docs/framework/react/devtools.md'
618 - 'TanStack/query:docs/framework/preact/devtools.md'
619 - 'TanStack/query:docs/framework/vue/devtools.md'
620 - 'TanStack/query:docs/framework/solid/devtools.md'
621 - 'TanStack/query:docs/framework/svelte/devtools.md'
622 - 'TanStack/query:docs/framework/angular/devtools.md'
623 subsystems:
624 - 'React Devtools'
625 - 'Preact Devtools'
626 - 'Vue Devtools'
627 - 'Solid Devtools'
628 - 'Svelte Devtools'
629 - 'Angular Devtools'
630 references:
631 - 'references/devtools-by-adapter.md'
632​
633 - name: 'Test query code'
634 slug: 'test-query-code'
635 type: 'lifecycle'
636 domain: 'operational-quality'
637 path: 'packages/query-intent/skills/lifecycle/test-query-code/SKILL.md'
638 package: 'packages/query-intent'
639 description: 'Test Query code with isolated clients, disabled retries, async assertions, cache cleanup, and framework-specific render harnesses.'
640 requires:
641 - 'setup-query-client-and-providers'
642 - 'tune-defaults-freshness-retries-and-refetching'
643 sources:
644 - 'TanStack/query:docs/framework/react/guides/testing.md'
645 - 'TanStack/query:docs/framework/solid/guides/testing.md'
646 - 'TanStack/query:docs/framework/vue/guides/testing.md'
647 - 'TanStack/query:docs/framework/angular/guides/testing.md'
648 - 'TanStack/query:packages/query-core/src/__tests__/queryClient.test.tsx'
649 - 'TanStack/query:packages/react-query/src/__tests__/useQuery.test.tsx'
650 references:
651 - 'references/testing-query.md'
652​
653 - name: 'Migrate major versions and codemods'
654 slug: 'migrate-major-versions-and-codemods'
655 type: 'lifecycle'
656 domain: 'operational-quality'
657 path: 'packages/query-intent/skills/lifecycle/migrate-major-versions-and-codemods/SKILL.md'
658 package: 'packages/query-intent'
659 description: 'Migrate Query code across v3, v4, v5, Svelte Query v6, and codemod constraints without reintroducing removed overloads or renamed options.'
660 sources:
661 - 'TanStack/query:docs/framework/react/guides/migrating-to-react-query-3.md'
662 - 'TanStack/query:docs/framework/react/guides/migrating-to-react-query-4.md'
663 - 'TanStack/query:docs/framework/react/guides/migrating-to-v5.md'
664 - 'TanStack/query:docs/framework/vue/guides/migrating-to-v5.md'
665 - 'TanStack/query:docs/framework/svelte/migrate-from-v5-to-v6.md'
666 - 'TanStack/query:packages/query-codemods/package.json'
667 subsystems:
668 - 'v3 migration'
669 - 'v4 migration'
670 - 'v5 migration'
671 - 'Svelte v6 migration'
672 - 'codemods'
673 references:
674 - 'references/migration-v3-v4-v5.md'
675 - 'references/svelte-v6-migration.md'
676​
677 - name: 'Enforce Query best practices with ESLint'
678 slug: 'enforce-query-best-practices-with-eslint'
679 type: 'composition'
680 domain: 'operational-quality'
681 path: 'packages/query-intent/skills/compositions/enforce-query-best-practices-with-eslint/SKILL.md'
682 package: 'packages/query-intent'
683 description: 'Configure @tanstack/eslint-plugin-query recommended or strict rules and use rule-specific fixes for Query keys, options, deps, and infinite or mutation option ordering.'
684 requires:
685 - 'design-query-keys-and-options'
686 - 'fetch-and-observe-queries'
687 - 'shape-data-and-render-efficiently'
688 sources:
689 - 'TanStack/query:docs/eslint/eslint-plugin-query.md'
690 - 'TanStack/query:docs/eslint/exhaustive-deps.md'
691 - 'TanStack/query:docs/eslint/no-rest-destructuring.md'
692 - 'TanStack/query:docs/eslint/no-unstable-deps.md'
693 - 'TanStack/query:docs/eslint/no-void-query-fn.md'
694 - 'TanStack/query:docs/eslint/prefer-query-options.md'
695 - 'TanStack/query:docs/eslint/stable-query-client.md'
696 - 'TanStack/query:docs/eslint/infinite-query-property-order.md'
697 - 'TanStack/query:docs/eslint/mutation-property-order.md'
698 subsystems:
699 - 'recommended'
700 - 'recommended-strict'
701 - 'flat config'
702 - 'rule fixers'
703 references:
704 - 'references/eslint-rules.md'