
tanstack-query-best-practices
TanStack Query (React Query) best practices for data fetching, caching
by deckardgerFree
Description
tanstack-query-best-practices is an agent skill that gives an AI coding assistant guidance for TanStack Query, the React library for data fetching, caching and server state. It is meant to be used when building data-driven React screens, and the skill sets out the situations in which it applies: creating new data fetching logic, setting up query configurations, implementing mutations and optimistic updates, configuring caching strategies, integrating with server-side rendering or static generation, and refactoring existing fetching code. The rules are grouped by priority, so the assistant can follow the most important patterns first. The skill aims to help generated code use query keys, caching and mutation handling in the way the library expects, rather than relying on ad hoc fetch calls. It is published in the tanstack-agent-skills repository on GitHub.…
Highlights
- TanStack Query rules for React
- Queries, mutations and optimistic updates
- Caching and server rendering guidance
- Rules grouped by priority
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate tanstack-query-best-practices.
People also visit
tanstack-query-best-practices FAQ
What does this skill cover?
Best practices for TanStack Query in React, including data fetching, caching, mutations and server state.
When does it apply?
When creating fetching logic, configuring queries, handling mutations, setting up caching, working with SSR or SSG, or refactoring.
How do I install it?
Run npx skills add https://github.com/deckardger/tanstack-agent-skills --skill tanstack-query-best-practices.
What do the security audits say?
The skill page lists Gen Agent Trust Hub as Pass, Socket as Pass and Snyk as Pass.
What are the best tanstack-query-best-practices alternatives?
Popular alternatives to tanstack-query-best-practices include tanstack-query, tanstack-start-best-practices and tanstack-router-best-practices. See all tanstack-query-best-practices alternatives















