skyroc-admin-state

Standardize Redux and TanStack Query boundaries in Skyroc Admin state management.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/xinge-ji/skyroc --skill skyroc-admin-state
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skyroc-admin-state
Source: https://github.com/xinge-ji/skyroc/tree/main/.agents/skills/skyroc-admin-state
Command: npx skills add https://github.com/xinge-ji/skyroc --skill skyroc-admin-state

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps Skyroc Admin developers ensure consistent and safe state management by clearly defining how Redux slices, selectors, and TanStack Query hooks should interact and share responsibilities.

Core Features & Use Cases

  • Enforces clear boundaries between Redux state and TanStack Query data caches in admin features.
  • Guides use of createAppSlice with exported actions, selectors, and reducers.
  • Encourages use of useAppDispatch/useAppSelector and consistent query keys, with robust error handling.

Quick Start

Apply this guidance whenever you start or refactor admin state logic to lock in consistent patterns.

Frequently Asked Questions about skyroc-admin-state

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I separate Redux state from TanStack Query cache in a React admin app?

To separate Redux state from TanStack Query cache, enforce clear boundaries by managing client UI state in store slices and server data in query hooks with consistent keys. This prevents state drift and overlapping responsibilities.

What is the best way to structure Redux slices for admin feature development?

The best way to structure Redux slices is using createAppSlice with exported actions, selectors, and reducers. This standardizes state logic and ensures safe access patterns across admin components.

Why does my TanStack Query data drift from Redux store state in admin features?

TanStack Query data drifts from Redux store state when boundaries are unclear. Enforce consistent query keys and use useAppDispatch/useAppSelector to safely coordinate server cache and client state.

Can I use useAppDispatch and useAppSelector with createAppSlice in refactoring?

Yes, you can use useAppDispatch and useAppSelector with createAppSlice during refactoring. Applying these safe patterns ensures consistent state access and prevents drift across admin components.

When do I need standardized query keys for TanStack Query in admin state?

You need standardized query keys for TanStack Query whenever managing data-fetching hooks across admin components. Consistent keys prevent cache duplication and coordinate safe state changes.