fosmvvm-viewmodel-generator
Generate FOSMVVM ViewModels for SwiftUI screens, pages, and components.
Setup & Installation
Install command
clawhub install foscomputerservices/fosmvvm-viewmodel-generatorIf the CLI is not installed:
Install command
npx clawhub@latest install foscomputerservices/fosmvvm-viewmodel-generatorOr install with OpenClaw CLI:
Install command
openclaw skills install foscomputerservices/fosmvvm-viewmodel-generatoror paste the repo link into your assistant's chat
Install command
https://github.com/openclaw/skills/tree/main/skills/foscomputerservices/fosmvvm-viewmodel-generatorWhat This Skill Does
Scaffolds ViewModels for SwiftUI screens following FOSMVVM architecture. Handles both server-hosted and client-hosted modes, generating the correct combination of ViewModel structs, Request types, localization YAML, and factory files. Covers display ViewModels, form ViewModels, child ViewModels, and error display patterns.
It encodes the multi-file structure, hosting mode decision, and protocol adoption rules of FOSMVVM so developers don't have to manually reason through each placement decision.
When to Use It
- Generating a new page ViewModel that fetches data from a server API
- Scaffolding a settings screen ViewModel backed by local device state
- Creating a client-hosted error display ViewModel from a caught ResponseError
- Adding a card or row child ViewModel nested inside a parent list ViewModel
- Producing localization YAML alongside a new ViewModel struct
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Generating a new page ViewModel that fetches data from a server API
- 1Generating a new page ViewModel that fetches data from a server API
- 2Scaffolding a settings screen ViewModel backed by local device state
- 3Creating a client-hosted error display ViewModel from a caught ResponseError
- 4Adding a card or row child ViewModel nested inside a parent list ViewModel
- 5Producing localization YAML alongside a new ViewModel struct
Generate FOSMVVM ViewModels for SwiftUI screens, pages, and components.
Security Audits
These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.