Skip to content
Back to skills

Tanstack

ASecurity

Use for TanStack Query, Router, Table, Virtual, Form, Store, Pacer, Hotkeys, Charts and DB.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add mblauberg/provenant --skill tanstack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tanstack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tanstack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mblauberg-tanstack/badge)](https://www.skillsdirectory.com/skills/mblauberg-tanstack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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](references/releases-2026.md) and
[version-matched documentation](references/version-matched.md). Flag unrelated
migration sites for `deliver`.

## Where agents slip

- **Incomplete keys:** the key holds every value the `queryFn` reads.
- **Duplicated query contracts:** one `queryOptions` factory per resource,
  reused by hook, loader, prefetch and cache reads.
- **Failed requests that resolve:** `fetch` resolves on 4xx and 5xx. The
  `queryFn` throws for them and forwards `signal`.
- **Status:** `isPending` means 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 `staleTime` from 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 `variables` before editing the cache; money is
  never optimistic. See [references/mutations.md](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 `enabled` or `placeholderData`.

## Routing by library

- Imperative Query migration: [query methods](references/imperative-queries.md).
- Form and Store API migrations: [form](references/form.md) and [store](references/store.md).
- Router loaders with Query: [router integration](references/router.md).
- Tables and virtual rows: [table](references/table.md). 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](references/pacer.md) (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](references/db.md) (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](references/verification.md).

Files in this skill

  • SKILL.md3.1 KB
  • agents/openai.yaml241 B
  • references/db.md605 B
  • references/form.md1.3 KB
  • references/imperative-queries.md946 B
  • references/mutations.md861 B
  • references/pacer.md1 KB
  • references/releases-2026.md418 B
  • references/router.md1.3 KB
  • references/store.md1.1 KB
  • references/table.md4 KB
  • references/verification.md548 B
  • references/version-matched.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.