fosmvvm-viewmodel-generator

Coding Agents & IDEs
v2.0.6
Benign

Generate FOSMVVM ViewModels for SwiftUI screens, pages, and components.

2455 downloads455 installsby @foscomputerservices

Setup & Installation

Install command

clawhub install foscomputerservices/fosmvvm-viewmodel-generator

If the CLI is not installed:

Install command

npx clawhub@latest install foscomputerservices/fosmvvm-viewmodel-generator

Or install with OpenClaw CLI:

Install command

openclaw skills install foscomputerservices/fosmvvm-viewmodel-generator

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/foscomputerservices/fosmvvm-viewmodel-generator

What 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.

INPUT

User asks: Generating a new page ViewModel that fetches data from a server API

AGENT
  1. 1Generating a new page ViewModel that fetches data from a server API
  2. 2Scaffolding a settings screen ViewModel backed by local device state
  3. 3Creating a client-hosted error display ViewModel from a caught ResponseError
  4. 4Adding a card or row child ViewModel nested inside a parent list ViewModel
  5. 5Producing localization YAML alongside a new ViewModel struct
OUTPUT
Generate FOSMVVM ViewModels for SwiftUI screens, pages, and components.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedFeb 26, 2026