Skip to content
AI & Agents
Skill

/tanstack

Implement React data, routes, or forms with TanStack. Covers Query, Router, and Form; excludes Start, DB, and unrelated state or routing libraries.

BOOST
From plugin
pedronauck-skills
63787 skills1 command
Install
$ npx -y skills add pedronauck/skills --skill tanstack --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/tanstack

Context preview

The summary Claude sees to decide when to auto-load this skill.

Implement React data, routes, or forms with TanStack. Covers Query, Router, and Form; excludes Start, DB, and unrelated state or routing libraries.

SKILL.md

tanstack.SKILL.md
name: tanstack
description: "Implement React data, routes, or forms with TanStack. Covers Query, Router, and Form; excludes Start, DB, and unrelated state or routing libraries."

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 / factories | `references/query-keys.md` | | Setting staleTime, gcTime, invalidation, placeholder/initial data | `references/query-caching.md` | | Writing mutations, optimistic updates, or mutation state | `references/query-mutations.md` | | Prefetching, parallel queries, infinite queries, or cancellation | `references/query-fetch-patterns.md` | | SSR dehydrate/hydrate, offline networkMode, or query persistence | `references/query-ssr-offline.md` | | Query error boundaries or select/performance | `references/query-errors-performance.md` | | Registering the router, `from` typing, virtual routes, or router defaults | `references/router-type-and-org.md` | | Route loaders, ensureQueryData, or parallel route loading | `references/router-data-loading.md` | | Search params, Link/navigate, route masks, or preload | `references/router-search-nav.md` | | Lazy routes, not-found, route context, or auth beforeLoad | `references/router-split-errors-context.md` | | TanStack Form hooks, Zod validators, or field components | `references/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.

Read more
Ships withpedronauck-skills

A curated collection of 87 agent skills for Claude Code and compatible AI coding assistants — 40 original (⭐️), 34 hand-picked (💎), and 13 marketing & business (📣).

Get the whole plugin
Stats
637
Stars
89
Forks
Maintained
Maintenance
Python
Language
1mo ago
Last commit
7mo ago
Created
4h ago
Added

Repo: pedronauck/skills

Other skills on pedronauck-skills.