fosmvvm-serverrequest-generator
Generate FOSMVVM ServerRequest types for CRUD operations and client-server communication. Scaffolds requests, response bodies, and typed error handling.
Why use this skill?
Automate robust ServerRequest types for FOSMVVM architecture. Enforce standardized CRUD operations and secure client-server communication with ease.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/foscomputerservices/fosmvvm-serverrequest-generatorWhat This Skill Does
The fosmvvm-serverrequest-generator is an essential developer tool designed to enforce standardized client-server communication within the FOSMVVM architecture. Instead of manually constructing URLs or implementing ad-hoc JSON serialization, this skill provides a scaffolding mechanism to generate robust ServerRequest types. It automates the boilerplate associated with CRUD operations, ensuring that all network requests adhere to the mandatory processRequest(mvvmEnv:) pattern. By abstracting the endpoint construction and environment configuration, it prevents common anti-patterns like hardcoded URLs and manual headers, ensuring consistency across iOS, macOS, Web, and backend environments.
Installation
To integrate this skill into your development workflow, use the OpenClaw CLI tool:
clawhub install openclaw/skills/skills/foscomputerservices/fosmvvm-serverrequest-generator
Use Cases
- Scaffolding new API endpoints: When adding a new resource, use this skill to generate the request model and corresponding response types instantly.
- Migrating legacy fetch calls: Refactor raw
fetchorURLRequestcode into the unified FOSMVVM format to leverage centralized error handling. - Background Job/CLI integration: Rapidly generate client interfaces for non-UI environments that need to interact with the FOSMVVM backend, ensuring versioning and header compliance are maintained without manual overhead.
Example Prompts
- "Generate a ServerRequest type for a PATCH operation on the /users/profile endpoint to update user display settings."
- "Create a scaffolding for a new ServerRequest that fetches a list of dashboard widgets, including the typed response body and error handling boilerplate."
- "Refactor my manual URLRequest code for the /api/v1/sync endpoint into a compliant FOSMVVM ServerRequest structure."
Tips & Limitations
- Configuration First: Always ensure your
MVVMEnvironmentis initialized at the application entry point. The generator assumesmvvmEnvis available in scope. - Strict Adherence: This tool does not support non-ServerRequest networking patterns. Avoid using it if your architecture requires low-level sockets or non-JSON protocols.
- Shared Modules: Keep your
SystemVersiondefinitions up to date in your shared ViewModels module to ensure header versioning remains accurate across all generated requests. - Maintainability: Use this tool to generate the base structure, but always review the typed error handling blocks to match your specific domain requirements.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-foscomputerservices-fosmvvm-serverrequest-generator": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
fosmvvm-leaf-view-generator
Generate Leaf templates for FOSMVVM WebApps. Create full-page views and HTML-over-the-wire fragments that render ViewModels.
fosmvvm-react-view-generator
Generate React components that render FOSMVVM ViewModels. Scaffolds ViewModelView pattern with hooks, loading states, and TypeScript types.
fosmvvm-fields-generator
Generate FOSMVVM Fields protocols with validation rules, FormField definitions, and localized messages. Define form contracts once, validate everywhere.
fosmvvm-fluent-datamodel-generator
Generate Fluent DataModels for FOSMVVM server-side persistence. Scaffolds models, migrations, and tests for database-backed entities.
fosmvvm-swiftui-app-setup
Set up the @main App struct for FOSMVVM SwiftUI apps. Configures MVVMEnvironment, deployment URLs, and test infrastructure.