legend-state-best-practices
Installation
SKILL.md
Legend State Best Practices
Use Legend State to put reactive ownership at the smallest useful boundary.
Verify The Surface
Before changing code:
- Check the installed
@legendapp/stateversion, imports, nearby store helpers, persistence setup, and tests. - Consult the current docs for exact signatures and version-specific migration guidance:
- Search for existing store factories, typed field hooks, reactive components, and naming conventions before adding a new abstraction.
- Identify values that must update rendered UI separately from values read only by commands, callbacks, native bridges, or async work.
This skill is policy, not an API reference. Prefer the installed version's source and types when docs and code differ.