[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79N69XFSWC9NA319Y21DSVM":3,"skill-same:01M79N69XFSWC9NA319Y21DSVM":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":14,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M79N69XFSWC9NA319Y21DSVM","redux-toolkit",null,"Redux Toolkit and RTK Query patterns for state management and API data fetching. Use when setting up Redux store, creating slices, implementing API calls, building optimistic updates, managing cache, or handling real-time data. Covers store setup, RTK Query endpoints, cache strategies, and advanced patterns.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: redux-toolkit\ndescription: Redux Toolkit and RTK Query patterns for state management and API data fetching. Use when setting up Redux store, creating slices, implementing API calls, building optimistic updates, managing cache, or handling real-time data. Covers store setup, RTK Query endpoints, cache strategies, and advanced patterns.\nlicense: MIT\ntags: [react, redux, redux-toolkit, rtk-query, state-management, api, typescript]\nmetadata:\n  author: redux-toolkit\n  version: '2.0.0'\n---\n\n# Redux Toolkit & RTK Query\n\nComprehensive Redux Toolkit and RTK Query guide for React Native\u002FExpo applications. Contains patterns for state management, API data fetching, cache management, and advanced features like optimistic updates and streaming.\n\n## When to Apply\n\nReference these guidelines when:\n\n- Setting up Redux store in React Native\u002FExpo app\n- Creating feature slices with actions and reducers\n- Implementing API data fetching and caching\n- Building optimistic updates for instant UI feedback\n- Managing normalized cache with entity adapters\n- Implementing real-time streaming updates\n- Handling pagination or infinite scroll\n- Testing Redux code\n\n## Rule Categories by Priority\n\n| Priority | Category            | Impact   | Prefix        |\n| -------- | ------------------- | -------- | ------------- |\n| 1        | Store Setup         | CRITICAL | `store-`      |\n| 2        | State Management    | HIGH     | `slice-`      |\n| 3        | API Integration     | HIGH     | `api-`        |\n| 4        | Cache Management    | MEDIUM   | `cache-`      |\n| 5        | Advanced Patterns   | MEDIUM   | `advanced-`   |\n| 6        | Testing             | MEDIUM   | `testing-`    |\n\n## Quick Reference\n\n### 1. Store Setup (CRITICAL)\n\n- `store-configure` - Configure Redux store with reducers and middleware\n- `store-provider` - Wrap app with Redux Provider\n- `store-typed-hooks` - Create typed hooks for dispatch and selector\n- `store-types` - Export RootState and AppDispatch types\n\n### 2. State Management (HIGH)\n\n- `slice-create-basic` - Create basic slice with reducers\n- `slice-with-payload` - Handle actions with payloads\n- `slice-async-thunk` - Create async thunks for side effects\n- `slice-selectors` - Build memoized selectors\n- `slice-feature-structure` - Organize code by features\n\n### 3. API Integration (HIGH)\n\n- `api-base-setup` - Configure base API with fetchBaseQuery\n- `api-query-endpoints` - Create query endpoints for GET requests\n- `api-mutation-endpoints` - Create mutation endpoints for POST\u002FPUT\u002FDELETE\n- `api-tags-system` - Implement tag-based cache invalidation\n- `api-error-handling` - Handle API errors and loading states\n\n### 4. Cache Management (MEDIUM)\n\n- `cache-invalidation-selective` - Use specific tag invalidation\n- `cache-prefetching` - Prefetch data before navigation\n- `cache-polling` - Implement polling for real-time updates\n- `cache-conditional-fetch` - Skip queries conditionally\n- `cache-manual-update` - Manually update cache entries\n\n### 5. Advanced Patterns (MEDIUM)\n\n- `advanced-optimistic-updates` - Implement optimistic UI updates\n- `advanced-entity-adapters` - Use entity adapters for normalized cache\n- `advanced-streaming` - Implement WebSocket streaming\n- `advanced-pagination` - Handle infinite scroll pagination\n- `advanced-code-splitting` - Lazy load API slices\n\n### 6. Testing (MEDIUM)\n\n- `testing-slices` - Test Redux slices and reducers\n- `testing-selectors` - Test memoized selectors\n- `testing-async-thunks` - Test async thunks\n- `testing-api-endpoints` - Test RTK Query endpoints\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Fstore-configure.md\nrules\u002Fapi-base-setup.md\nrules\u002Fadvanced-optimistic-updates.md\n```\n\nEach rule file contains:\n\n- Impact explanation and when to apply\n- Bad example with explanation\n- Good example with explanation\n- Additional context and best practices\n\n## Full Compiled Document\n\nFor the complete guide with all patterns expanded: `AGENTS.md`\n\n## Quick Patterns (Most Common)\n\n## Quick Patterns (Most Common)\n\n### Store Setup\n```typescript\nimport { configureStore } from '@reduxjs\u002Ftoolkit';\nimport counterReducer from '..\u002Ffeatures\u002Fcounter\u002Fcounter.slice';\nimport { baseApi } from '..\u002Ffeatures\u002Fapi\u002FbaseApi';\n\nexport const store = configureStore({\n  reducer: {\n    counter: counterReducer,\n    [baseApi.reducerPath]: baseApi.reducer,\n  },\n  middleware: (getDefaultMiddleware) =>\n    getDefaultMiddleware().concat(baseApi.middleware),\n});\n\nexport type RootState = ReturnType\u003Ctypeof store.getState>;\nexport type AppDispatch = typeof store.dispatch;\n```\n\n### Pattern 2: Create Slice\n```typescript\nimport { createSlice, PayloadAction } from '@reduxjs\u002Ftoolkit';\n\nconst counterSlice = createSlice({\n  name: 'counter',\n  initialState: { value: 0, loading: false },\n  reducers: {\n    increment: (state) => {\n      state.value += 1; \u002F\u002F Immer allows \"mutation\"\n    },\n    incrementByAmount: (state, action: PayloadAction\u003Cnumber>) => {\n      state.value += action.payload;\n    },\n  },\n});\n\nexport const { increment, incrementByAmount } = counterSlice.actions;\nexport default counterSlice.reducer;\n```\n\n### Typed Hooks\n```typescript\n\u002F\u002F src\u002Fstore\u002Fhooks.ts\nimport { useDispatch, useSelector, TypedUseSelectorHook } from 'react-redux';\nimport type { RootState, AppDispatch } from '.\u002Fstore';\n\nexport const useAppDispatch = () => useDispatch\u003CAppDispatch>();\nexport const useAppSelector: TypedUseSelectorHook\u003CRootState> = useSelector;\n```\n\n### RTK Query Base API\n```typescript\nimport { createApi, fetchBaseQuery } from '@reduxjs\u002Ftoolkit\u002Fquery\u002Freact';\n\nexport const baseApi = createApi({\n  reducerPath: 'api',\n  baseQuery: fetchBaseQuery({\n    baseUrl: 'https:\u002F\u002Fapi.example.com',\n    prepareHeaders: (headers, { getState }) => {\n      const token = (getState() as RootState).auth.token;\n      if (token) headers.set('authorization', `Bearer ${token}`);\n      return headers;\n    },\n  }),\n  tagTypes: ['User', 'Post', 'Comment'],\n  endpoints: () => ({}), \u002F\u002F Defined in feature files\n});\n```\n\n### Query Endpoint\n```typescript\nexport const userApi = baseApi.injectEndpoints({\n  endpoints: (builder) => ({\n    getUsers: builder.query\u003CUser[], void>({\n      query: () => '\u002Fusers',\n      providesTags: ['User'],\n    }),\n    getUserById: builder.query\u003CUser, string>({\n      query: (id) => `\u002Fusers\u002F${id}`,\n      providesTags: (result, error, id) => [{ type: 'User', id }],\n    }),\n  }),\n});\n\nexport const { useGetUsersQuery, useGetUserByIdQuery } = userApi;\n```\n\n### Mutation Endpoint\n```typescript\nexport const userApi = baseApi.injectEndpoints({\n  endpoints: (builder) => ({\n    updateUser: builder.mutation\u003CUser, { id: string; data: UpdateUserRequest }>({\n      query: ({ id, data }) => ({\n        url: `\u002Fusers\u002F${id}`,\n        method: 'PUT',\n        body: data,\n      }),\n      invalidatesTags: (result, error, { id }) => [{ type: 'User', id }],\n    }),\n  }),\n});\n\nexport const { useUpdateUserMutation } = userApi;\n```\n\n### Using in Component\n```typescript\nimport { useAppDispatch, useAppSelector } from '@\u002Fstore\u002Fhooks';\nimport { increment } from '@\u002Ffeatures\u002Fcounter';\nimport { useGetUsersQuery } from '@\u002Ffeatures\u002Fuser';\n\nexport const MyScreen: React.FC = () => {\n  const dispatch = useAppDispatch();\n  const count = useAppSelector(state => state.counter.value);\n  const { data: users, isLoading } = useGetUsersQuery();\n\n  return (\n    \u003CView>\n      \u003CText>Count: {count}\u003C\u002FText>\n      \u003CButton title=\"+\" onPress={() => dispatch(increment())} \u002F>\n      {isLoading ? \u003CActivityIndicator \u002F> : \u003CUserList users={users} \u002F>}\n    \u003C\u002FView>\n  );\n};\n```\n\n### Memoized Selectors\n```typescript\nimport { createSelector } from '@reduxjs\u002Ftoolkit';\nimport { RootState } from '@\u002Fstore\u002Fstore';\n\nconst selectCounterValue = (state: RootState) => state.counter.value;\nconst selectCounterHistory = (state: RootState) => state.counter.history;\n\nexport const selectHistorySummary = createSelector(\n  [selectCounterHistory],\n  (history) => ({\n    total: history.length,\n    increments: history.filter(h => h.action === 'increment').length,\n    decrements: history.filter(h => h.action === 'decrement').length,\n  })\n);\n```\n\n### Async Thunk\n```typescript\nimport { createAsyncThunk } from '@reduxjs\u002Ftoolkit';\n\nexport const fetchUser = createAsyncThunk(\n  'user\u002FfetchUser',\n  async (userId: string, { rejectWithValue }) => {\n    try {\n      const response = await userApi.getUser(userId);\n      return response.data;\n    } catch (error: any) {\n      return rejectWithValue(error.response?.data || 'Failed to fetch');\n    }\n  }\n);\n\n\u002F\u002F Handle in slice\nextraReducers: (builder) => {\n  builder\n    .addCase(fetchUser.pending, (state) => { state.loading = true; })\n    .addCase(fetchUser.fulfilled, (state, action) => {\n      state.loading = false;\n      state.currentUser = action.payload;\n    })\n    .addCase(fetchUser.rejected, (state, action) => {\n      state.loading = false;\n      state.error = action.payload as string;\n    });\n}\n```\n\n### Optimistic Update\n```typescript\naddReaction: builder.mutation\u003CPost, { postId: string; reaction: string }>({\n  query: ({ postId, reaction }) => ({\n    url: `\u002Fposts\u002F${postId}\u002Freactions`,\n    method: 'POST',\n    body: { reaction },\n  }),\n  async onQueryStarted({ postId, reaction }, { dispatch, queryFulfilled }) {\n    \u002F\u002F Optimistic update\n    const patchResult = dispatch(\n      postsApi.util.updateQueryData('getPosts', undefined, (draft) => {\n        const post = draft.entities[postId];\n        if (post) post.reactions[reaction]++;\n      })\n    );\n\n    try {\n      await queryFulfilled;\n    } catch {\n      patchResult.undo(); \u002F\u002F Rollback on error\n    }\n  },\n}),\n```\n\n## Common Anti-Patterns\n\n❌ Never mutate state outside `createSlice` reducers\n❌ Don't store non-serializable data (functions, promises, class instances)\n❌ Avoid putting UI-only state in Redux (use local state instead)\n❌ Don't over-invalidate cache (use specific tags)\n❌ Never skip loading\u002Ferror state handling in components\n\n## Requirements\n\n- **React Native\u002FExpo**: Any version\n- **Redux Toolkit**: ^2.0.0 or ^1.9.0\n- **React Redux**: ^8.0.0 or ^9.0.0\n- **TypeScript**: ^5.0.0 (recommended)\n\n## Resources\n\n- [Redux Toolkit Documentation](https:\u002F\u002Fredux-toolkit.js.org\u002F)\n- [RTK Query Documentation](https:\u002F\u002Fredux-toolkit.js.org\u002Frtk-query\u002Foverview)\n- [Redux Essentials Tutorial](https:\u002F\u002Fredux.js.org\u002Ftutorials\u002Fessentials\u002Fpart-1-overview-concepts)","# Redux Toolkit & RTK Query\n\nComprehensive Redux Toolkit and RTK Query guide for React Native\u002FExpo applications. Contains patterns for state management, API data fetching, cache management, and advanced features like optimistic updates and streaming.\n\n## When to Apply\n\nReference these guidelines when:\n\n- Setting up Redux store in React Native\u002FExpo app\n- Creating feature slices with actions and reducers\n- Implementing API data fetching and caching\n- Building optimistic updates for instant UI feedback\n- Managing normalized cache with entity adapters\n- Implementing real-time streaming updates\n- Handling pagination or infinite scroll\n- Testing Redux code\n\n## Rule Categories by Priority\n\n| Priority | Category            | Impact   | Prefix        |\n| -------- | ------------------- | -------- | ------------- |\n| 1        | Store Setup         | CRITICAL | `store-`      |\n| 2        | State Management    | HIGH     | `slice-`      |\n| 3        | API Integration     | HIGH     | `api-`        |\n| 4        | Cache Management    | MEDIUM   | `cache-`      |\n| 5        | Advanced Patterns   | MEDIUM   | `advanced-`   |\n| 6        | Testing             | MEDIUM   | `testing-`    |\n\n## Quick Reference\n\n### 1. Store Setup (CRITICAL)\n\n- `store-configure` - Configure Redux store with reducers and middleware\n- `store-provider` - Wrap app with Redux Provider\n- `store-typed-hooks` - Create typed hooks for dispatch and selector\n- `store-types` - Export RootState and AppDispatch types\n\n### 2. State Management (HIGH)\n\n- `slice-create-basic` - Create basic slice with reducers\n- `slice-with-payload` - Handle actions with payloads\n- `slice-async-thunk` - Create async thunks for side effects\n- `slice-selectors` - Build memoized selectors\n- `slice-feature-structure` - Organize code by features\n\n### 3. API Integration (HIGH)\n\n- `api-base-setup` - Configure base API with fetchBaseQuery\n- `api-query-endpoints` - Create query endpoints for GET requests\n- `api-mutation-endpoints` - Create mutation endpoints for POST\u002FPUT\u002FDELETE\n- `api-tags-system` - Implement tag-based cache invalidation\n- `api-error-handling` - Handle API errors and loading states\n\n### 4. Cache Management (MEDIUM)\n\n- `cache-invalidation-selective` - Use specific tag invalidation\n- `cache-prefetching` - Prefetch data before navigation\n- `cache-polling` - Implement polling for real-time updates\n- `cache-conditional-fetch` - Skip queries conditionally\n- `cache-manual-update` - Manually update cache entries\n\n### 5. Advanced Patterns (MEDIUM)\n\n- `advanced-optimistic-updates` - Implement optimistic UI updates\n- `advanced-entity-adapters` - Use entity adapters for normalized cache\n- `advanced-streaming` - Implement WebSocket streaming\n- `advanced-pagination` - Handle infinite scroll pagination\n- `advanced-code-splitting` - Lazy load API slices\n\n### 6. Testing (MEDIUM)\n\n- `testing-slices` - Test Redux slices and reducers\n- `testing-selectors` - Test memoized selectors\n- `testing-async-thunks` - Test async thunks\n- `testing-api-endpoints` - Test RTK Query endpoints\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Fstore-configure.md\nrules\u002Fapi-base-setup.md\nrules\u002Fadvanced-optimistic-updates.md\n```\n\nEach rule file contains:\n\n- Impact explanation and when to apply\n- Bad example with explanation\n- Good example with explanation\n- Additional context and best practices\n\n## Full Compiled Document\n\nFor the complete guide with all patterns expanded: `AGENTS.md`\n\n## Quick Patterns (Most Common)\n\n## Quick Patterns (Most Common)\n\n### Store Setup\n```typescript\nimport { configureStore } from '@reduxjs\u002Ftoolkit';\nimport counterReducer from '..\u002Ffeatures\u002Fcounter\u002Fcounter.slice';\nimport { baseApi } from '..\u002Ffeatures\u002Fapi\u002FbaseApi';\n\nexport const store = configureStore({\n  reducer: {\n    counter: counterReducer,\n    [baseApi.reducerPath]: baseApi.reducer,\n  },\n  middleware: (getDefaultMiddleware) =>\n    getDefaultMiddleware().concat(baseApi.middleware),\n});\n\nexport type RootState = ReturnType\u003Ctypeof store.getState>;\nexport type AppDispatch = typeof store.dispatch;\n```\n\n### Pattern 2: Create Slice\n```typescript\nimport { createSlice, PayloadAction } from '@reduxjs\u002Ftoolkit';\n\nconst counterSlice = createSlice({\n  name: 'counter',\n  initialState: { value: 0, loading: false },\n  reducers: {\n    increment: (state) => {\n      state.value += 1; \u002F\u002F Immer allows \"mutation\"\n    },\n    incrementByAmount: (state, action: PayloadAction\u003Cnumber>) => {\n      state.value += action.payload;\n    },\n  },\n});\n\nexport const { increment, incrementByAmount } = counterSlice.actions;\nexport default counterSlice.reducer;\n```\n\n### Typed Hooks\n```typescript\n\u002F\u002F src\u002Fstore\u002Fhooks.ts\nimport { useDispatch, useSelector, TypedUseSelectorHook } from 'react-redux';\nimport type { RootState, AppDispatch } from '.\u002Fstore';\n\nexport const useAppDispatch = () => useDispatch\u003CAppDispatch>();\nexport const useAppSelector: TypedUseSelectorHook\u003CRootState> = useSelector;\n```\n\n### RTK Query Base API\n```typescript\nimport { createApi, fetchBaseQuery } from '@reduxjs\u002Ftoolkit\u002Fquery\u002Freact';\n\nexport const baseApi = createApi({\n  reducerPath: 'api',\n  baseQuery: fetchBaseQuery({\n    baseUrl: 'https:\u002F\u002Fapi.example.com',\n    prepareHeaders: (headers, { getState }) => {\n      const token = (getState() as RootState).auth.token;\n      if (token) headers.set('authorization', `Bearer ${token}`);\n      return headers;\n    },\n  }),\n  tagTypes: ['User', 'Post', 'Comment'],\n  endpoints: () => ({}), \u002F\u002F Defined in feature files\n});\n```\n\n### Query Endpoint\n```typescript\nexport const userApi = baseApi.injectEndpoints({\n  endpoints: (builder) => ({\n    getUsers: builder.query\u003CUser[], void>({\n      query: () => '\u002Fusers',\n      providesTags: ['User'],\n    }),\n    getUserById: builder.query\u003CUser, string>({\n      query: (id) => `\u002Fusers\u002F${id}`,\n      providesTags: (result, error, id) => [{ type: 'User', id }],\n    }),\n  }),\n});\n\nexport const { useGetUsersQuery, useGetUserByIdQuery } = userApi;\n```\n\n### Mutation Endpoint\n```typescript\nexport const userApi = baseApi.injectEndpoints({\n  endpoints: (builder) => ({\n    updateUser: builder.mutation\u003CUser, { id: string; data: UpdateUserRequest }>({\n      query: ({ id, data }) => ({\n        url: `\u002Fusers\u002F${id}`,\n        method: 'PUT',\n        body: data,\n      }),\n      invalidatesTags: (result, error, { id }) => [{ type: 'User', id }],\n    }),\n  }),\n});\n\nexport const { useUpdateUserMutation } = userApi;\n```\n\n### Using in Component\n```typescript\nimport { useAppDispatch, useAppSelector } from '@\u002Fstore\u002Fhooks';\nimport { increment } from '@\u002Ffeatures\u002Fcounter';\nimport { useGetUsersQuery } from '@\u002Ffeatures\u002Fuser';\n\nexport const MyScreen: React.FC = () => {\n  const dispatch = useAppDispatch();\n  const count = useAppSelector(state => state.counter.value);\n  const { data: users, isLoading } = useGetUsersQuery();\n\n  return (\n    \u003CView>\n      \u003CText>Count: {count}\u003C\u002FText>\n      \u003CButton title=\"+\" onPress={() => dispatch(increment())} \u002F>\n      {isLoading ? \u003CActivityIndicator \u002F> : \u003CUserList users={users} \u002F>}\n    \u003C\u002FView>\n  );\n};\n```\n\n### Memoized Selectors\n```typescript\nimport { createSelector } from '@reduxjs\u002Ftoolkit';\nimport { RootState } from '@\u002Fstore\u002Fstore';\n\nconst selectCounterValue = (state: RootState) => state.counter.value;\nconst selectCounterHistory = (state: RootState) => state.counter.history;\n\nexport const selectHistorySummary = createSelector(\n  [selectCounterHistory],\n  (history) => ({\n    total: history.length,\n    increments: history.filter(h => h.action === 'increment').length,\n    decrements: history.filter(h => h.action === 'decrement').length,\n  })\n);\n```\n\n### Async Thunk\n```typescript\nimport { createAsyncThunk } from '@reduxjs\u002Ftoolkit';\n\nexport const fetchUser = createAsyncThunk(\n  'user\u002FfetchUser',\n  async (userId: string, { rejectWithValue }) => {\n    try {\n      const response = await userApi.getUser(userId);\n      return response.data;\n    } catch (error: any) {\n      return rejectWithValue(error.response?.data || 'Failed to fetch');\n    }\n  }\n);\n\n\u002F\u002F Handle in slice\nextraReducers: (builder) => {\n  builder\n    .addCase(fetchUser.pending, (state) => { state.loading = true; })\n    .addCase(fetchUser.fulfilled, (state, action) => {\n      state.loading = false;\n      state.currentUser = action.payload;\n    })\n    .addCase(fetchUser.rejected, (state, action) => {\n      state.loading = false;\n      state.error = action.payload as string;\n    });\n}\n```\n\n### Optimistic Update\n```typescript\naddReaction: builder.mutation\u003CPost, { postId: string; reaction: string }>({\n  query: ({ postId, reaction }) => ({\n    url: `\u002Fposts\u002F${postId}\u002Freactions`,\n    method: 'POST',\n    body: { reaction },\n  }),\n  async onQueryStarted({ postId, reaction }, { dispatch, queryFulfilled }) {\n    \u002F\u002F Optimistic update\n    const patchResult = dispatch(\n      postsApi.util.updateQueryData('getPosts', undefined, (draft) => {\n        const post = draft.entities[postId];\n        if (post) post.reactions[reaction]++;\n      })\n    );\n\n    try {\n      await queryFulfilled;\n    } catch {\n      patchResult.undo(); \u002F\u002F Rollback on error\n    }\n  },\n}),\n```\n\n## Common Anti-Patterns\n\n❌ Never mutate state outside `createSlice` reducers\n❌ Don't store non-serializable data (functions, promises, class instances)\n❌ Avoid putting UI-only state in Redux (use local state instead)\n❌ Don't over-invalidate cache (use specific tags)\n❌ Never skip loading\u002Ferror state handling in components\n\n## Requirements\n\n- **React Native\u002FExpo**: Any version\n- **Redux Toolkit**: ^2.0.0 or ^1.9.0\n- **React Redux**: ^8.0.0 or ^9.0.0\n- **TypeScript**: ^5.0.0 (recommended)\n\n## Resources\n\n- [Redux Toolkit Documentation](https:\u002F\u002Fredux-toolkit.js.org\u002F)\n- [RTK Query Documentation](https:\u002F\u002Fredux-toolkit.js.org\u002Frtk-query\u002Foverview)\n- [Redux Essentials Tutorial](https:\u002F\u002Fredux.js.org\u002Ftutorials\u002Fessentials\u002Fpart-1-overview-concepts)",{"name":5,"tags":24,"license":15,"metadata":31,"description":7},[25,26,5,27,28,29,30],"react","redux","rtk-query","state-management","api","typescript",{"author":5,"version":32},"2.0.0","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","redux-toolkit-skill","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add mistervaibhav\u002Fskills --skill redux-toolkit",{"tool":46,"command":47},"bunx","bunx skills add mistervaibhav\u002Fskills --skill redux-toolkit",{"tool":49,"command":50},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill redux-toolkit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002FSKILL.md",true,[54,60,64,68,72,76,80,84,88,92],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"AGENTS.md","REFERENCE","参考文档",43418,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002FAGENTS.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"rules\u002Fadvanced-optimistic-updates.md",1566,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fadvanced-optimistic-updates.md",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"rules\u002Fapi-base-setup.md",2094,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fapi-base-setup.md",{"path":69,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":70,"sourceHtmlUrl":71},"rules\u002Fapi-mutation-endpoints.md",2543,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fapi-mutation-endpoints.md",{"path":73,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":74,"sourceHtmlUrl":75},"rules\u002Fapi-query-endpoints.md",2377,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fapi-query-endpoints.md",{"path":77,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":78,"sourceHtmlUrl":79},"rules\u002Fcache-invalidation-selective.md",1384,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fcache-invalidation-selective.md",{"path":81,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":82,"sourceHtmlUrl":83},"rules\u002Fslice-create-basic.md",1920,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fslice-create-basic.md",{"path":85,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":86,"sourceHtmlUrl":87},"rules\u002Fslice-selectors.md",2166,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fslice-selectors.md",{"path":89,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":90,"sourceHtmlUrl":91},"rules\u002Fstore-configure.md",1734,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fstore-configure.md",{"path":93,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":94,"sourceHtmlUrl":95},"rules\u002Fstore-typed-hooks.md",1391,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fredux-toolkit-skill\u002Frules\u002Fstore-typed-hooks.md",[97,106,113,121,128,135],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":101,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]