Decide where state belongs — local, shared, global, URL, or server/cache state — and implement it without unnecessary global state or duplication. Use this skill whenever a task involves adding, moving, or refactoring state (component state, context, global stores, URL params, server/cache state via
Decide where state belongs — local, shared, global, URL, or server/cache state — and implement it without unnecessary global state or duplication. Use this skill whenever a task involves adding, moving, or refactoring state (component state, context, global stores, URL params, server/cache state via React Query/SWR, etc.), or when reviewing whether existing state is in the right place.