A comprehensive compilation of React Query v4 best practices drawn from TkDodo's blog series, organized into 24 rules across categories like query keys, mutations, caching, and WebSocket integration. The skill covers critical patterns like query key factories, mutation invalidation strategies, and optimistic updates, plus it includes a detailed migration guide to v5 with all the breaking changes. Each rule follows a consistent format with wrong and right code examples. This is genuinely useful if you're past the basics and need to standardize patterns across a team or debug why your queries are refetching too often. The WebSocket integration rules alone are worth having on hand since that's rarely covered well in official docs.
npx skills add https://github.com/arraydude/agent-skills --skill react-query-best-practices