Automate the creation of type-safe, localized ViewModels and factories for SwiftUI using the FOSMVVM architecture.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install fosmvvm-viewmodel-generator
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install fosmvvm-viewmodel-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The FOSMVVM ViewModel Generator is a specialized tool designed to streamline the implementation of the Model-View-ViewModel architecture in SwiftUI projects. It automates the creation of ViewModels that act as the bridge between raw data models and the user interface, ensuring that data shaping and localization occur before reaching the View. This skill is a powerful addition to the library of Openclaw Skills, allowing developers to focus on feature logic rather than boilerplate code.
By leveraging the @ViewModel macro, the generator handles property name retrieval for localization bindings and supports two distinct hosting modes. Server-hosted ViewModels allow for backend-driven UI with hand-written factories, while client-hosted ViewModels use macro-generated factories for local state and offline-first features. This flexibility makes it indispensable for building complex, scalable Apple platform applications.
Ensure your project structure includes a dedicated target for ViewModels and a resources path for localization. You can trigger the generation process by providing requirements to your AI agent and running the command.
/fosmvvm-viewmodel-generator
The generator organizes output into distinct files to maintain a clear separation of concerns:
| File Pattern | Description |
|---|---|
| {Name}ViewModel.swift | Main struct definition with @ViewModel macro |
| {Name}Request.swift | The networking or fetching logic for top-level screens |
| {Name}ViewModel+Factory.swift | Server-side implementation for building ViewModels from DB |
| {Name}ViewModel.yml | YAML-based localization strings for the specific view |
Loading
Automates the creation of robust UI tests for FOSMVVM SwiftUI views using XCTest and the FOSTestingUI framework.

A specialized generator for creating standardized SwiftUI views that render FOSMVVM ViewModels with built-in state management and architectural alignment.

A specialized automation skill to generate and configure the entry point of SwiftUI applications using the FOSMVVM architecture.

An automated generator for typed ServerRequest tests using the VaporTesting infrastructure to validate API logic and localization.

A specialized generator for creating Swift ViewModel tests that validate data integrity, versioning, and multi-locale localization.

A professional-grade AI skill for generating high-quality images via Krea.ai using advanced models like Flux and Imagen.








































