Agent skill

Tanstack Query

by aiskillstore in aiskillstore/marketplace

Manage server state in React with TanStack Query v5. An agent skill from aiskillstore/marketplace.

No licenceAuto-check passedDevelopment

Install Tanstack Query

skills CLI
$ npx skills add aiskillstore/marketplace --skill tanstack-query -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace tanstack-query --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/jezweb/tanstack-query .claude/skills/tanstack-query && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tanstack-query
GitHub stars
430
Token cost
~7.8k tokens
SKILL.md length
1,383 words
Files
23 (incl. scripts, references, assets)
Skills in repo
1,108
Repo updated
First seen
Licence
None found

At a glance

Manage server state in React with TanStack Query v5. An agent skill from aiskillstore/marketplace.

  • Works in 2 steps: Provider + Config → Query + Mutation Hooks
  • Setting up data fetching
  • SKILL.md covers v5 New Features, Quick Setup, Critical Rules and Known Issues Prevention
  • Runs Shell scripts from its folder; calls npm

What it does

Tanstack Query is an agent skill from aiskillstore/marketplace. Manage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.

Its SKILL.md is about 7.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 27 other files, including scripts, reference files and assets (for example `README.md`, `references/best-practices.md` and `references/common-patterns.md`).

It sits in Development. It works with TanStack and React. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

When your agent uses it

  • Setting up data fetching
  • Fixing v4→v5 migration errors (object syntax
  • KeepPreviousData)
  • Debugging SSR/hydration issues with streaming server components

Example prompts

  • “/tanstack-query”

Requirements

  • Node.js
  • A Bash shell

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Provider + Config
  2. Query + Mutation Hooks

What it can do on your machine

Read from SKILL.md and the folder at commit ad8daf7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • tanstack.com
    • tkdodo.eu
    • buncolak.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tanstack Query loads about 7.8k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 1,383 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~7.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,383 words (~7,796 tokens).

“Last Updated: 2026-01-20 Versions: @tanstack/react-query@5.90.19, @tanstack/react-query-devtools@5.91.2 Requires: React 18.0+ (useSyncExternalStore), TypeScript 4.7+ (recommended)”

— opening of SKILL.md by aiskillstore
name
tanstack-query
user-invocable
true

Read the full SKILL.md on GitHub

Files

SKILL.md and 22 other files (scripts, references, assets) in skills/jezweb/tanstack-query of aiskillstore/marketplace.

  • SKILL.md
  • README.md
  • assets/example-template.txt
  • references/best-practices.md
  • references/common-patterns.md
  • references/example-reference.md
  • references/testing.md
  • references/top-errors.md
  • references/typescript-patterns.md
  • references/v4-to-v5-migration.md
  • rules/tanstack-query.md
  • scripts/example-script.sh
  • skill-report.json
  • templates/custom-hooks-pattern.tsx
  • templates/devtools-setup.tsx
  • templates/error-boundary.tsx
  • … and 7 more

Open the folder on GitHubat commit ad8daf7

Compare with similar skills

Tanstack Query next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tanstack Query compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tanstack Query this skillaiskillstore/marketplace430—~7.8kAutomated safety check: PassNone
Wagmi Feature Developmentwevm/wagmi6.8k—~3.8kAutomated safety check: PassMIT
Cleanup Specialistahaodev/shadmin174—~1.3kAutomated safety check: PassMIT
Tanstack Router Best PracticesDeckardGer/tanstack-agent-skills222—~1.1kAutomated safety check: PassMIT
Tanstack Routerbskimball/tanstack-hono119—~4.4kAutomated safety check: PassMIT
Getting Startedoctanejs/octane1.4k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.

    6.8k GitHub stars~3.8k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Cleanup Specialist

    ahaodev/shadmin

    Safe cleanup of Shadmin's Go backend, React frontend, Go CLI, and docs — remove dead code, consolidate duplication, and improve maintainability without changing behavior or adding features.

    174 GitHub stars~1.3k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Tanstack Router Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Router best practices for type-safe routing, data loading, search params, and navigation.

    222 GitHub stars~1.1k tokensUpdated 28 days ago
    DevelopmentAuto-check passed
  • Tanstack Router

    bskimball/tanstack-hono

    Type-safe routing for React and Solid applications with first-class search params, data loading, and seamless integration with the React ecosystem.

    119 GitHub stars~4.4k tokensUpdated 26 days ago
    DevelopmentAuto-check passed
  • Getting Started

    octanejs/octane

    Create and render a TanStack React Table v9 table with useTable, tableFeatures, stable data and columns, row/header models, and table.FlexRender.

    1.4k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Table State

    octanejs/octane

    Read, select, subscribe to, and control React Table V9 state with useTable selectors, table.state, table.Subscribe, table.atoms, table.store, and external TanStack Store atoms.

    1.4k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed

More from aiskillstore/marketplace

All 1,108 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 2 repos~598 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Works with

Categories

Questions about Tanstack Query

What does Tanstack Query do?

Manage server state in React with TanStack Query v5. An agent skill from aiskillstore/marketplace. Tanstack Query is an agent skill from aiskillstore/marketplace. Manage server state in React with TanStack Query v5.

When should I use Tanstack Query?

Tanstack Query fits situations like: setting up data fetching; fixing v4→v5 migration errors (object syntax; keepPreviousData); debugging SSR/hydration issues with streaming server components.

How do I install Tanstack Query in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill tanstack-query -a claude-code`. Or copy the skill folder (skills/jezweb/tanstack-query in aiskillstore/marketplace) into .claude/skills/tanstack-query in your project. Claude Code loads it when a task matches its description.

How do I install Tanstack Query in Codex?

Run `npx skills add aiskillstore/marketplace --skill tanstack-query -a codex`. Or copy the skill folder (skills/jezweb/tanstack-query in aiskillstore/marketplace) into .agents/skills/tanstack-query in your project. Codex loads it when a task matches its description.

Can I use Tanstack Query in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill tanstack-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tanstack-query, .gemini/skills/tanstack-query, .github/skills/tanstack-query and .opencode/skills/tanstack-query in your project.

What does Tanstack Query need to run?

Going by SKILL.md and its folder, Tanstack Query needs a shell for the scripts in its folder and the command-line tools its instructions call (npm). Our summary lists: Node.js; A Bash shell.

Does Tanstack Query access the network?

SKILL.md names 4 domains. As links in the text: github.com, tanstack.com, tkdodo.eu and buncolak.com. This is read from the text; nothing was executed.

Is Tanstack Query safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Tanstack Query use?

No licence was found for Tanstack Query or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Tanstack Query use?

About 7.8k tokens (SKILL.md is roughly 31k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.8k tokens, read only when the agent opens those files.

What are the alternatives to Tanstack Query?

Skills that share tags, products or a category with Tanstack Query: Wagmi Feature Development (wevm/wagmi, 6.8k stars), Cleanup Specialist (ahaodev/shadmin, 174 stars), Tanstack Router Best Practices (DeckardGer/tanstack-agent-skills, 222 stars) and Tanstack Router (bskimball/tanstack-hono, 119 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tanstack Query?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,108 skills in this directory. The repository was last updated on October 7, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.