home / skills / partme-ai / full-stack-skills / redux
This skill provides comprehensive guidance on Redux state management, including stores, reducers, middleware, and Toolkit patterns for scalable frontend apps.
npx playbooks add skill partme-ai/full-stack-skills --skill reduxReview the files below or copy the command above to add this skill to your agents.
---
name: redux
description: Provides comprehensive guidance for Redux state management including stores, actions, reducers, middleware, selectors, and Redux Toolkit. Use when the user asks about Redux, needs to manage global state, implement Redux patterns, or work with Redux middleware.
license: Complete terms in LICENSE.txt
---
## When to use this skill
Use this skill whenever the user wants to:
- [待完善:根据具体工具添加使用场景]
## How to use this skill
[待完善:根据具体工具添加使用指南]
## Best Practices
[待完善:根据具体工具添加最佳实践]
## Keywords
[待完善:根据具体工具添加关键词]
This skill provides comprehensive guidance for Redux state management, covering stores, actions, reducers, middleware, selectors, and Redux Toolkit. It helps design predictable global state, enforce unidirectional data flow, and modernize patterns with Redux Toolkit. The guidance is practical and focused on implementation, testing, and migration strategies.
The skill inspects your application needs and recommends Redux patterns: how to structure stores, define actions and reducers, create selectors, and integrate middleware like thunk or saga. It explains how to use Redux Toolkit to reduce boilerplate and provides migration steps from classic Redux. It also offers examples, common pitfalls, and testing techniques for reducers and async flows.
Should I always use Redux for state management?
Not always. Use Redux when state is shared, complex, or requires predictable updates and tooling. For simple local state, React context or component state may suffice.
How does Redux Toolkit change classic Redux?
Redux Toolkit reduces boilerplate by providing createSlice, createAsyncThunk, and configureStore. It encourages immutable updates using Immer and sensible defaults for middleware and devtools.