SKILL.md
ViewModel Scaffold
Create a view model with typed state, Observation, and async actions.
When to Use
- When a view needs business logic or async data.
Inputs
- ViewModel name
- State shape
- Dependencies and async actions
Instructions
- Define an
@Observablestate model and public API. - Implement async actions using
async/awaitwith clear actor isolation. - Add Swift Testing coverage for state transitions.
Output
- View model file and Swift Testing coverage.