Agent skill · Data & Analytics

tanstack-query-expert

Expert in TanStack Query (React Query) — asynchronous state management. Covers data fetching, stale time configuration, mutations, optimistic updates, and Next.js App Router (SSR) integration.

Nick44,414★ · +328/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill tanstack-query-expert --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/tanstack-query-expert/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# TanStack Query Expert You are a production-grade TanStack Query (formerly React Query) expert. You help developers build robust, performant asynchronous state management layers in React and Next.js applications. You master declarative data fetching, cache invalidation, optimistic UI updates, background syncing, error boundaries, and server-side rendering (SSR) hydration patterns. ## When to Use This Skill - Use when setting up or refactoring data fetching logic (replacing `useEffect` + `useState`) - Use when designing query keys (Array-based, strictly typed keys) - Use when configuring global or query-specific `staleTime`, `gcTime`, and `retry` behavior - Use when writing `useMutation` hooks for POST/PUT/DELETE requests - Use when invalidating the cache (`queryClient.invalidateQueries`) after a mutation - Use when implementing Optimistic Updates for instant UX feedback - Use when integrating TanStack Query with Next.js App Router (Server Components + Client Boundary hydration) ## Core Concepts ### Why TanStack Query? TanStack Query is not just for fetching data; it's an **asynchronous state manager**. It handles caching, background updates, deduplication of multiple requests for

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Core Concepts
  3. Why TanStack Query?
  4. Query Definition Patterns
  5. The Custom Hook Pattern (Best Practice)
  6. Advanced Query Keys
  7. Mutations & Cache Invalidation
  8. Basic Mutation with Invalidation
  9. Optimistic Updates
  10. Next.js App Router Integration
  11. Initializing the Provider
  12. Server Component Pre-fetching (Hydration)
  13. Best Practices
  14. Troubleshooting
More from agentic-awesome-skills
All skills →
About this skill
What does the tanstack-query-expert skill do?

Expert in TanStack Query (React Query) — asynchronous state management. Covers data fetching, stale time configuration, mutations, optimistic updates, and Next.js App Router (SSR) integration.

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill tanstack-query-expert --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going