ts-state-management
Installation
SKILL.md
When to Use This Skill
Use when you need to:
- Choose between Redux Toolkit, Zustand, and React Context for a piece of state
- Decide whether state belongs in a client store at all, or in TanStack Query instead
- Migrate state from one of these three to another as requirements grow
- Explain why a component re-renders too often when it consumes Context
Trigger keywords: Redux, Redux Toolkit, RTK, createSlice, Zustand, React Context, useContext, useReducer, global state, client state, prop drilling, state management, Redux DevTools, store, provider, one-shot effect, toast fired twice, effect replay, useEffect runs twice, StrictMode double invoke, navigation state replay.
Freshness rule: Redux Toolkit's recommended patterns (RTK Query, createSlice
defaults) and Zustand's API have both shifted across major versions — recheck each
library's own docs before starting a new store.