mcpField
T
tanstack

tanstack

github.com/pedronauckDevelopment644363 installsUpdated 1w ago
Repository

About tanstack

A skill for applying TanStack guidance when changing Query, Router, or Form behavior. It directs developers and coding agents to the relevant reference and highlights key implementation pitfalls.

Key features

  1. 01Topic-based reference selection
  2. 02Query key and cache guidance
  3. 03Mutation and fetch pattern guidance
  4. 04Router typing and data-loading guidance
  5. 05Form validation and submission guidance

Use cases

  1. 01Changing Query caching or mutation behavior
  2. 02Adding route loaders with Query data
  3. 03Updating router search parameters or navigation
  4. 04Building forms with Zod validation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pedronauck/skills --skill tanstack

After installing, type/tanstackin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
form.md
query-caching.md
query-errors-performance.md
query-fetch-patterns.md
query-keys.md
query-mutations.md
query-ssr-offline.md
router-data-loading.md
router-search-nav.md
router-split-errors-context.md
router-type-and-org.md

Details

From the project README

TanStack

Read the reference matched by the API or behavior being changed. Load adjacent references only for concerns the change crosses; reuse relevant context already read.

Branches

When you are…Reference
Defining or changing query keys / factoriesreferences/query-keys.md
Setting staleTime, gcTime, invalidation, placeholder/initial datareferences/query-caching.md
Writing mutations, optimistic updates, or mutation statereferences/query-mutations.md
Prefetching, parallel queries, infinite queries, or cancellationreferences/query-fetch-patterns.md
SSR dehydrate/hydrate, offline networkMode, or query persistencereferences/query-ssr-offline.md
Query error boundaries or select/performancereferences/query-errors-performance.md
Registering the router, from typing, virtual routes, or router defaultsreferences/router-type-and-org.md
Route loaders, ensureQueryData, or parallel route loadingreferences/router-data-loading.md
Search params, Link/navigate, route masks, or preloadreferences/router-search-nav.md
Lazy routes, not-found, route context, or auth beforeLoadreferences/router-split-errors-context.md
TanStack Form hooks, Zod validators, or field componentsreferences/form.md

Apply the technical rules relevant to the changed behavior.

Tripwires

Query — array keys that include every dependency; reconcile mutations through canonical keys: update from authoritative responses or invalidate when the owning read model requires a server reread; optimistic cache writes need rollback; never put non-serializable values in keys.

Router — register the router type; validate search with defaults (.catch()); use ensureQueryData in loaders when pairing with Query; throw redirect(...) not return.

Form — complete defaultValues for inference; Zod at form/field level; debounce async validators to fit endpoint cost and interaction needs; role="alert" on field errors; preventDefault on submit.

Comments

Markdown supported