redpanda-data / state-management
Install for your project team
Run this command in your project directory to install the skill for your entire team:
mkdir -p .claude/skills/state-management && curl -L -o skill.zip "https://fastmcp.me/Skills/Download/3462" && unzip -o skill.zip -d .claude/skills/state-management && rm skill.zip
Project Skills
This skill will be saved in .claude/skills/state-management/ and checked into git. All team members will have access to it automatically.
Important: Please verify the skill by reviewing its instructions before using it.
Manage client and server state with Zustand stores and React Query patterns.
0 views
0 installs
Skill Content
---
name: state-management
description: Manage client and server state with Zustand stores and React Query patterns.
---
# State Management
Choose the right state solution for each use case.
## Activation Conditions
- Managing global state
- Persisting state across navigation
- Cross-component data sharing
- Questions about Zustand vs React Query
## Quick Reference
| Action | Rule |
|--------|------|
| Read from store | `use-zustand-selectors.md` |
| Persist state | `use-zustand-persist.md` |
| Fetch server data | `use-react-query-for-server.md` |
## Decision Tree
```
Is it server data (API response)?
├── Yes → React Query / Connect Query
│ (caching, refetching, invalidation)
└── No → Is it URL state?
├── Yes → React Router
│ (search params, path params)
└── No → Is it form state?
├── Yes → React Hook Form
│ (validation, submission)
└── No → Is it shared across components?
├── Yes → Zustand
│ (global, persisted)
└── No → useState / useReducer
(local component state)
```
## Rules
See `rules/` directory for detailed guidance.