Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

manage-server-data/adopt-rtk-query

Skill by reduxjs

Adopt RTK Query as the default server-data and document-cache layer in a Redux app. It covers createApi, store setup, hooks, tag invalidation and optimistic updates. It is for developers using @reduxjs/toolkit.

  • Score 94
  • 11k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install manage-server-data/adopt-rtk-query

Built from the published package, never by AI.

git clone --depth 1 https://github.com/reduxjs/redux-toolkit /tmp/redux-toolkit && mkdir -p ~/.claude/skills && cp -r /tmp/redux-toolkit/packages/toolkit/skills/manage-server-data/adopt-rtk-query ~/.claude/skills/manage-server-data-adopt-rtk-query

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install manage-server-data/adopt-rtk-query in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an AI assistant through adding RTK Query, the data-fetching and caching tool in Redux Toolkit, to an application. It shows how to create an API slice with createApi and fetchBaseQuery, register its reducer and middleware in configureStore, and use the generated React hooks. It also covers when RTK Query is the right cache model.

The skill sets out core patterns. These include keeping one API slice per base URL and extending it with injectEndpoints, using tags for cache invalidation, and doing optimistic updates inside endpoint lifecycle handlers. It lists common mistakes, such as patching the cache from components and persisting the browser API cache by default. It is written for developers who are adding RTK Query to a Redux Toolkit project.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create an API sliceSets up createApi with fetchBaseQuery, query and mutation endpoints, and generated hooks.
  • Integrate with the storeAdds the API reducer and middleware to configureStore so the hooks can manage cache state.
  • Split endpoints across filesUses injectEndpoints to extend one API slice instead of creating multiple roots for one backend.
  • Tag-based invalidationExplains providesTags and invalidatesTags as the normal way to refresh cached data.
  • Optimistic updatesShows updateQueryData inside onQueryStarted with an undo on failed requests.
  • Common mistakes reviewLists pitfalls such as missing reducer or middleware, component cache patches and unsubscribed refetches.

What you need

  • @reduxjs/toolkit 2.11.2
  • The build-modern-redux-apps/modern-redux skill

Try asking

  • Add RTK Query to my Redux store with a posts API slice
  • Set up tag invalidation so adding a post refreshes the list
  • Add an optimistic update for editing a post title with RTK Query

Good to know

  • Invalidation only refetches queries that components are subscribed to.
  • Persisting the RTK Query cache in the browser can keep stale data longer than expected.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/toolkit/skills/manage-server-data/adopt-rtk-query/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB
  • references/endpoint-lifecycle.md1 KB

Alternatives to manage-server-data/adopt-rtk-query

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

manage-server-data/adopt-rtk-query: common questions

When should I use RTK Query as my cache layer?

The skill is meant for cases where RTK Query is the default server-data and document-cache layer. It includes guidance on deciding when RTK Query is the right cache model.

Should I create one API slice per backend?

No. The skill says to keep one API slice per base URL and add endpoints with injectEndpoints. Multiple createApi roots for the same backend are listed as a critical mistake.

Does RTK Query refetch data that no component is using?

No. The skill states that invalidation only refetches actively subscribed queries. Unused cache entries are dropped and fetched again when needed.

How do I install manage-server-data/adopt-rtk-query?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is manage-server-data/adopt-rtk-query free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is manage-server-data/adopt-rtk-query safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to manage-server-data/adopt-rtk-query?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

manage-server-data/adopt-rtk-query Install

Add to stack

Loading.