About
This skill provides specialized guidance for architecting complex game states using Zustand. It covers modular store slices with Immer for immutable updates, robust persistence systems for save/load functionality, and integrated undo/redo capabilities via Zundo. The skill focuses heavily on performance optimization, providing patterns for selector memoization, shallow comparisons, and batched updates to prevent unnecessary re-renders in state-heavy games. Whether you are building an RPG, strategy game, or interactive dashboard, this skill helps ensure your state management is scalable, testable, and efficient.