Trpc Patterns
FranciscoMoretti/chat-js
Implement ChatJS tRPC routers, TanStack Query hooks, mutations, and cache invalidation.
Best practices for integrating TanStack Query with TanStack Router and TanStack Start.
$ npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-integration-best-practices -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-integration-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-integration .claude/skills/tanstack-integration-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-integration-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-integration into .claude/skills/tanstack-integration-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-integration-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-integrationType 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-integration-best-practices -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-integration-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-integration .agents/skills/tanstack-integration-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-integration-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-integration into .agents/skills/tanstack-integration-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-integration-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-integration-best-practices -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-integration-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-integration .cursor/skills/tanstack-integration-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-integration-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-integration into .cursor/skills/tanstack-integration-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-integration-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-integration--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-integration-best-practices -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install DeckardGer/tanstack-agent-skills tanstack-integration-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-integration .gemini/skills/tanstack-integration-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-integration-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-integration into .gemini/skills/tanstack-integration-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-integration-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-integration-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-integration-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-integration .github/skills/tanstack-integration-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-integration-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-integration into .github/skills/tanstack-integration-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-integration-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-integration-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-integration-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-integration .opencode/skills/tanstack-integration-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-integration-best-practices" agent skill from https://github.com/DeckardGer/tanstack-agent-skills/tree/main/skills/tanstack-integration into .opencode/skills/tanstack-integration-best-practices/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tanstack-integration-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-integration-best-practicesBest practices for integrating TanStack Query with TanStack Router and TanStack Start.
Tanstack Integration Best Practices is an agent skill from DeckardGer/tanstack-agent-skills. Best practices for integrating TanStack Query with TanStack Router and TanStack Start. Patterns for full-stack data flow, SSR, and caching coordination.
Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `rules/cache-single-source.md`, `rules/flow-loader-query-pattern.md` and `rules/setup-query-client-context.md`).
It sits in Backend & APIs, covering Caching. It works with TanStack. 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 Integration Best Practices loads about 644 tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 252 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). 252 words, ~644 tokens.
.claude/skills/tanstack-integration-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Guidelines for integrating TanStack Query, Router, and Start together effectively. These patterns ensure optimal data flow, caching coordination, and type safety across the stack.
| Priority | Category | Rules | Impact |
|---|---|---|---|
| CRITICAL | Setup | 3 rules | Foundational configuration |
| CRITICAL | SSR Integration | 1 rule | Router + Query SSR setup |
| HIGH | Data Flow | 4 rules | Correct data fetching patterns |
| MEDIUM | Caching | 3 rules | Performance optimization |
| MEDIUM | SSR | 2 rules | Additional SSR patterns |
setup-)setup-query-client-context — Pass QueryClient through router contextsetup-provider-wrapping — Correctly wrap with QueryClientProvidersetup-stale-time-coordination — Coordinate staleTime between router and queryflow-)flow-loader-query-pattern — Use loaders with ensureQueryDataflow-suspense-query-component — Use useSuspenseQuery in componentsflow-mutations-invalidation — Coordinate mutations with query invalidationflow-server-functions-queries — Use server functions for query functionscache-)cache-single-source — Let TanStack Query manage cachingcache-preload-coordination — Coordinate preloading between router and querycache-invalidation-patterns — Unified invalidation patternsssr-)ssr-dehydrate-hydrate — Use setupRouterSsrQueryIntegration for automatic SSRssr-)ssr-per-request-client — Create QueryClient per requestssr-streaming-queries — Handle streaming with queriesEach 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 4 other files in skills/tanstack-integration of DeckardGer/tanstack-agent-skills.
Open the folder on GitHubat commit b2fc14c
Tanstack Integration 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 Integration Best Practices this skillDeckardGer/tanstack-agent-skills | 222 | — | ~644 | Automated safety check: Pass | MIT | |
| Trpc PatternsFranciscoMoretti/chat-js | 1.2k | — | ~288 | Automated safety check: Pass | Apache-2.0 | |
| Nextjs Data Fetchinggiuseppe-trisciuoglio/developer-kit | 355 | — | ~2.2k | Automated safety check: Notes | MIT | |
| Tanstack AI Core Middlewaremajiayu000/claude-skill-registry | 666 | 1 repos | ~9.9k | Automated safety check: Notes | MIT | |
| Public QA Chatbotswyxio/skills | 172 | — | ~9.8k | Automated safety check: Pass | MIT | |
| Olore Tanstack Query 4olorehq/olore | 103 | — | ~583 | Automated safety check: Pass | MIT |
FranciscoMoretti/chat-js
Implement ChatJS tRPC routers, TanStack Query hooks, mutations, and cache invalidation.
giuseppe-trisciuoglio/developer-kit
Provides Next.js App Router data fetching patterns including SWR and React Query integration, parallel data fetching, Incremental Static Regeneration (ISR), revalidation strategies, and error…
majiayu000/claude-skill-registry
Chat lifecycle middleware hooks: onConfig, onStart, onChunk, onBeforeToolCall, onAfterToolCall, onUsage, onFinish, onAbort, onError.
swyxio/skills
Best practices for building an unauthenticated public Q&A chatbot widget.
olorehq/olore
Local TanStack Query documentation reference (v4). An agent skill from olorehq/olore.
CherryHQ/cherry-studio-app
A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.
DeckardGer/tanstack-agent-skills
TanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management.
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.
Works with
Categories
Best practices for integrating TanStack Query with TanStack Router and TanStack Start. Tanstack Integration Best Practices is an agent skill from DeckardGer/tanstack-agent-skills. Best practices for integrating TanStack Query with TanStack Router and TanStack Start.
Tanstack Integration Best Practices fits situations like: tasks that involve Caching.
Run `npx skills add DeckardGer/tanstack-agent-skills --skill tanstack-integration-best-practices -a claude-code`. Or copy the skill folder (skills/tanstack-integration in DeckardGer/tanstack-agent-skills) into .claude/skills/tanstack-integration-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-integration-best-practices -a codex`. Or copy the skill folder (skills/tanstack-integration in DeckardGer/tanstack-agent-skills) into .agents/skills/tanstack-integration-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-integration-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-integration-best-practices, .gemini/skills/tanstack-integration-best-practices, .github/skills/tanstack-integration-best-practices and .opencode/skills/tanstack-integration-best-practices in your project.
SKILL.md names no scripts, command-line tools or credentials: Tanstack Integration 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 Integration 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 644 tokens (SKILL.md is roughly 2.6k 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 Integration Best Practices: Trpc Patterns (FranciscoMoretti/chat-js, 1.2k stars), Nextjs Data Fetching (giuseppe-trisciuoglio/developer-kit, 355 stars), Tanstack AI Core Middleware (majiayu000/claude-skill-registry, 666 stars) and Public QA Chatbot (swyxio/skills, 172 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.