state-management-patterns
Installation
SKILL.md
State Management Patterns
Overview
Mismanaged state is the root cause of most UI bugs, stale data issues, and security vulnerabilities in web applications. Uncoordinated mutations lead to race conditions, inconsistent UIs, and hard-to-reproduce bugs. Use this guide when designing new state architecture, reviewing pull requests that touch shared state, or diagnosing unexpected re-renders and data consistency issues.
When to use: Designing client or server state architecture; reviewing Redux/Zustand/Context code; evaluating server-state caching strategies; auditing session and authentication implementations; diagnosing UI inconsistency bugs.