FOSMVVM Fluent DataModel Generator for Openclaw

A specialized generator for Fluent-backed persistence layers within the FOSMVVM architecture, covering models, migrations, and automated tests.

foscomputerservices
v2.0.6
Feb 15, 2026
0
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install fosmvvm-fluent-datamodel-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install fosmvvm-fluent-datamodel-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is FOSMVVM Fluent DataModel Generator?

The FOSMVVM Fluent DataModel Generator is a technical automation tool designed to streamline the creation of server-side data structures within Vapor applications. By leveraging the Fluent ORM, it ensures that your persistence layer adheres to strict architectural standards, serving as the single source of truth for your application. This skill is a vital component of the Openclaw Skills ecosystem, providing developers with a consistent way to handle system-assigned fields, complex database relationships, and audit logs.

This tool is specifically built for projects utilizing FluentKit and FOSMVVM. It bridges the gap between user-editable fields and the full database entity, automatically generating the necessary property wrappers, initialization logic, and protocol implementations required for robust server-side development. When using Openclaw Skills like this one, developers can significantly reduce boilerplate while maintaining high code quality.

FOSMVVM Fluent DataModel Generator Use Cases

  • Creating new database entities or tables such as Users, Ideas, or Documents.
  • Implementing CRUD operations for newly defined backend concepts.
  • Setting up complex many-to-many or one-to-many relationships using Fluent property wrappers.
  • Generating idempotent seed data migrations for consistent development and testing environments.

How FOSMVVM Fluent DataModel Generator Works

  1. Analyze the existing conversation context to identify entity requirements and relationship structures.
  2. Confirm that Fluent is the active persistence layer by checking the Package.swift and project imports.
  3. Verify if a Fields protocol exists via the fields-generator to determine if the model is form-backed.
  4. Generate the Swift DataModel implementation using appropriate property wrappers like @ID, @Field, and @Parent.
  5. Create schema migrations using snake_case plural naming conventions for database compatibility.
  6. Produce unit tests and register the migrations within the database configuration file.

FOSMVVM Fluent DataModel Generator Setup

To activate this skill within your AI coding environment, ensure your project is configured for Vapor and Fluent. You can trigger the generation process by invoking the command directly.

/fosmvvm-fluent-datamodel-generator

Ensure that you have already run the fields-generator skill if your model requires user-facing form validation, as this skill leverages those protocols for its implementation.

FOSMVVM Fluent DataModel Generator Data Schema & Taxonomy

The skill organizes generated files across the WebServer and Test targets to ensure architectural separation. These files are essential for managing the lifecycle of Openclaw Skills data.

Target File Path Purpose
WebServer DataModels/{Model}.swift The core Fluent model implementing the Fields protocol.
WebServer Migrations/{Model}+Schema.swift Defines the SQL table structure and fields.
WebServer Migrations/{Model}+Seed.swift Handles initial data seeding for different environments.
Tests {Model}FieldsTests.swift Unit tests validating data integrity and logic.

FOSMVVM Fluent DataModel Generator Advanced Features

  • Support for PostgreSQL-specific features like tsvector and LTREE through raw SQLKit integration in migrations.
  • Automated relationship mapping using associated types to avoid existential type overhead and improve type safety.
  • Environment-aware seeding logic that safely handles debug, test, and release data populations.
  • Intelligent naming convention enforcement, automatically converting Swift PascalCase to database snake_case.
  • Seamless integration with the broader suite of Openclaw Skills for end-to-end application scaffolding.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*