What problem does it solve?
This Skill helps you make consistent, correct decisions about where each piece of frontend state should live—component-local, lifted/shared, URL state, or persistent storage—so your app avoids stale UI, broken back-button behavior, prop-drilling, and unintended duplicated sources of truth.
Core Features & Use Cases
- Classify state by kind: server state vs client UI state vs URL state vs persistent state, with appropriate lifetimes and invalidation rules.
- Apply ownership defaults: start local, lift only when needed, use Context only for real tree-scoped sharing, and use a store only when many consumers need fine-grained updates.
- Use URL as the shareable state container when a view should be reproducible via link and navigation history.
- Prevent architectural anti-patterns like premature globalization, server data in general-purpose stores, stored derived state without need, duplicated state, and misuse of optimistic updates.
Quick Start
Use the state-management skill to determine whether a specific piece of UI data should be local component state, lifted state, Context, URL state, or persistent storage—then identify the most appropriate ownership and invalidation approach.