Olore Tanstack Query 4
olorehq/olore
Local TanStack Query documentation reference (v4). An agent skill from olorehq/olore.
TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management.
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-query-best-practices --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/DeckardGer/tanstack-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/tanstack-query .claude/skills/tanstack-query-best-practices && rm -rf skills-srcUse ~/.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/
Install the "tanstack-query-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-query into .claude/skills/tanstack-query-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-query-best-practices", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-queryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-query-best-practices --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DeckardGer/tanstack-agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/tanstack-query .agents/skills/tanstack-query-best-practices && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tanstack-query-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-query into .agents/skills/tanstack-query-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-query-best-practices", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-query-best-practices --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DeckardGer/tanstack-agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/tanstack-query .cursor/skills/tanstack-query-best-practices && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tanstack-query-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-query into .cursor/skills/tanstack-query-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-query-best-practices", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/DeckardGer/tanstack-agent-skills.git --path skills/tanstack-query--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-query-best-practices --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DeckardGer/tanstack-agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/tanstack-query .gemini/skills/tanstack-query-best-practices && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tanstack-query-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-query into .gemini/skills/tanstack-query-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-query-best-practices", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-query-best-practicesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/DeckardGer/tanstack-agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/tanstack-query .github/skills/tanstack-query-best-practices && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tanstack-query-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-query into .github/skills/tanstack-query-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-query-best-practices", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-query-best-practices --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DeckardGer/tanstack-agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/tanstack-query .opencode/skills/tanstack-query-best-practices && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tanstack-query-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-query into .opencode/skills/tanstack-query-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-query-best-practices", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tanstack-query-best-practicesTanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management.
Tanstack Query Best Practices is an agent skill from DeckardGer/tanstack-agent-skills. TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management. Activate when building data-driven React applications with server state.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 39 other files (for example `rules/cache-defaults.md`, `rules/cache-gc-time.md` and `rules/cache-invalidation.md`).
It sits in Backend & APIs, covering Caching and State management. It works with TanStack and React. The repository describes itself as: TanStack Agent Skills: Best practices for TanStack Query, Router, and Start for AI coding agents. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b2fc14c. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Tanstack Query Best Practices loads about 1.2k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 475 words of instructions outside code blocks.
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.
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); files beside SKILL.md are not scanned.
The full file from DeckardGer/tanstack-agent-skills at commit b2fc14c, republished under its MIT licence (© DeckardGer). 475 words, ~1,210 tokens.
.claude/skills/tanstack-query-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 38 other files; get the full folder from GitHub.Comprehensive guidelines for implementing TanStack Query (React Query) patterns in React applications. These rules optimize data fetching, caching, mutations, and server state synchronization.
| Priority | Category | Rules | Impact |
|---|---|---|---|
| CRITICAL | Query Keys | 5 rules | Prevents cache bugs and data inconsistencies |
| CRITICAL | Caching | 5 rules | Optimizes performance and data freshness |
| HIGH | Mutations | 6 rules | Ensures data integrity and UI consistency |
| HIGH | Error Handling | 3 rules | Prevents poor user experiences |
| MEDIUM | Prefetching | 4 rules | Improves perceived performance |
| MEDIUM | Parallel Queries | 2 rules | Enables dynamic parallel fetching |
| MEDIUM | Infinite Queries | 3 rules | Prevents pagination bugs |
| MEDIUM | SSR Integration | 4 rules | Enables proper hydration |
| LOW | Performance | 4 rules | Reduces unnecessary re-renders |
| LOW | Offline Support | 2 rules | Enables offline-first patterns |
qk-)qk-array-structure — Always use arrays for query keysqk-include-dependencies — Include all variables the query depends onqk-hierarchical-organization — Organize keys hierarchically (entity → id → filters)qk-factory-pattern — Use query key factories for complex applicationsqk-serializable — Ensure all key parts are JSON-serializablecache-)cache-stale-time — Set appropriate staleTime based on data volatilitycache-gc-time — Configure gcTime for inactive query retentioncache-defaults — Set sensible defaults at QueryClient levelcache-invalidation — Use targeted invalidation over broad patternscache-placeholder-vs-initial — Understand placeholder vs initial data differencesmut-)mut-invalidate-queries — Always invalidate related queries after mutationsmut-optimistic-updates — Implement optimistic updates for responsive UImut-rollback-context — Provide rollback context from onMutatemut-error-handling — Handle mutation errors gracefullymut-loading-states — Use isPending for mutation loading statesmut-mutation-state — Use useMutationState for cross-component trackingerr-)err-error-boundaries — Use error boundaries with useQueryErrorResetBoundaryerr-retry-config — Configure retry logic appropriatelyerr-fallback-data — Provide fallback data when appropriatepf-)pf-intent-prefetch — Prefetch on user intent (hover, focus)pf-route-prefetch — Prefetch data during route transitionspf-stale-time-config — Set staleTime when prefetchingpf-ensure-query-data — Use ensureQueryData for conditional prefetchinginf-)inf-page-params — Always provide getNextPageParaminf-loading-guards — Check isFetchingNextPage before fetching moreinf-max-pages — Consider maxPages for large datasetsssr-)ssr-dehydration — Use dehydrate/hydrate pattern for SSRssr-client-per-request — Create QueryClient per requestssr-stale-time-server — Set higher staleTime on serverssr-hydration-boundary — Wrap with HydrationBoundaryparallel-)parallel-use-queries — Use useQueries for dynamic parallel queriesquery-cancellation — Implement query cancellation properlyperf-)perf-select-transform — Use select to transform/filter dataperf-structural-sharing — Leverage structural sharingperf-notify-change-props — Limit re-renders with notifyOnChangePropsperf-placeholder-data — Use placeholderData for instant UIoffline-)network-mode — Configure network mode for offline supportpersist-queries — Configure query persistence for offline supportEach rule file in the rules/ directory contains:
See individual rule files in rules/ directory for detailed guidance and code examples.
© DeckardGer, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 38 other files in skills/tanstack-query of DeckardGer/tanstack-agent-skills.
Open the folder on GitHubat commit b2fc14c
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in DeckardGer/tanstack-agent-skills, which our catalogue first saw on October 7, 2026.
Tanstack Query Best Practices 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Tanstack Query Best Practices this skillDeckardGer/tanstack-agent-skills | 222 | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Olore Tanstack Query 4olorehq/olore | 103 | — | ~583 | Automated safety check: Pass | MIT | |
| Tanstack Querysecondsky/claude-skills | 227 | — | ~7.9k | Automated safety check: Pass | MIT | |
| Tanstack QueryMindrally/skills | 267 | — | ~3.6k | Automated safety check: Pass | Apache-2.0 | |
| Olore Tanstack Query 3olorehq/olore | 103 | — | ~700 | Automated safety check: Pass | MIT | |
| Olore Tanstack Query Latestolorehq/olore | 103 | — | ~487 | Automated safety check: Pass | MIT |
olorehq/olore
Local TanStack Query documentation reference (v4). An agent skill from olorehq/olore.
secondsky/claude-skills
TanStack Query v5 (React Query) server state management. An agent skill from secondsky/claude-skills.
Mindrally/skills
Best practices for TanStack Query v5 (React Query) server state management, including query key factories, the queryOptions helper, mutations, optimistic updates, infinite queries, and Suspense mode.
olorehq/olore
Local TanStack Query v3 (React Query) documentation reference.
olorehq/olore
Local TanStack Query documentation reference (latest). An agent skill from olorehq/olore.
FranciscoMoretti/chat-js
Implement ChatJS tRPC routers, TanStack Query hooks, mutations, and cache invalidation.
DeckardGer/tanstack-agent-skills
TanStack Router best practices for type-safe routing, data loading, search params, and navigation.
DeckardGer/tanstack-agent-skills
TanStack Start best practices for full-stack React applications.
DeckardGer/tanstack-agent-skills
Best practices for integrating TanStack Query with TanStack Router and TanStack Start.
Categories
TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management. Tanstack Query Best Practices is an agent skill from DeckardGer/tanstack-agent-skills. TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management.
Tanstack Query Best Practices fits situations like: tasks that involve Caching; tasks that involve State management.
Run `npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a claude-code`. Or copy the skill folder (skills/tanstack-query in DeckardGer/tanstack-agent-skills) into .claude/skills/tanstack-query-best-practices in your project. Claude Code loads it when a task matches its description.
Run `npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -a codex`. Or copy the skill folder (skills/tanstack-query in DeckardGer/tanstack-agent-skills) into .agents/skills/tanstack-query-best-practices in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-query-best-practices -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-best-practices, .gemini/skills/tanstack-query-best-practices, .github/skills/tanstack-query-best-practices and .opencode/skills/tanstack-query-best-practices in your project.
SKILL.md names no scripts, command-line tools or credentials: Tanstack Query Best Practices is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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. Review the folder before installing.
Tanstack Query Best Practices is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Tanstack Query Best Practices: Olore Tanstack Query 4 (olorehq/olore, 103 stars), Tanstack Query (secondsky/claude-skills, 227 stars), Tanstack Query (Mindrally/skills, 267 stars) and Olore Tanstack Query 3 (olorehq/olore, 103 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
DeckardGer (a GitHub user) maintains it in DeckardGer/tanstack-agent-skills, which has 222 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 9, 2026.
Source: DeckardGer/tanstack-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.