tanstack-query-typescript-and-tooling

Installation
SKILL.md

TanStack Query TypeScript and Tooling

Use this skill when the task is about making TanStack Query usage typed, testable, and durable across a codebase.

Scope

  • queryOptions, infiniteQueryOptions, mutationOptions, and related typed helper patterns
  • skipToken for type-safe conditional queries
  • global key registration and module augmentation
  • error typing guidance
  • testing setup and QueryClient test wrappers
  • @tanstack/eslint-plugin-query setup and rule routing

Routing cues

  • queryOptions, infiniteQueryOptions, mutationOptions, skipToken, "why did I lose inference", or "how do I type query keys globally" -> this skill
  • flaky tests, "should retries be disabled in tests", or "how do I isolate QueryClient per test" -> this skill
  • ESLint plugin config or rule names like Stable Query Client or No Unstable Deps -> this skill
  • plain query behavior without typing or tooling concerns -> tanstack-query-fetching-and-cache
Related skills
Installs
3
GitHub Stars
1
First Seen
Mar 24, 2026