local-vs-global-state
Installation
SKILL.md
Local vs Global State Auditor
Audit a component tree and classify every piece of state, then produce a concrete refactored structure with rationale.
Overview
When a user shares components, a file tree, or describes their app's state, follow this process:
- Extract all state declarations (
useState,useReducer, stores, context values, server fetches) - Classify each piece of state into one of three categories
- Identify problems (prop drilling, redundant global state, missing cache layer, etc.)
- Output a refactored structure with code snippets