fosmvvm-fluent-datamodel-generator

Generate Fluent DataModel implementations, migrations, and tests for Vapor projects.

3|2|Updated Apr 9, 2023
One-click install
npx skills add https://github.com/foscomputerservices/FOSUtilities --skill fosmvvm-fluent-datamodel-generator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: fosmvvm-fluent-datamodel-generator
Source: https://github.com/foscomputerservices/FOSUtilities/tree/main/.claude/skills/fosmvvm-fluent-datamodel-generator
Command: npx skills add https://github.com/foscomputerservices/FOSUtilities --skill fosmvvm-fluent-datamodel-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of Fluent DataModel implementations, migrations, and tests for server-side Vapor applications by automating boilerplate code and ensuring architectural consistency with FOSMVVM patterns.

Core Features & Use Cases

  • Automated Fluent DataModel generation: Create Fluent models, migrations, seeds, and test scaffolding aligned to the project's architecture.
  • Architecture-aware: Integrates with fosmvvm-fields-generator to derive Fields protocol for form-backed models and apply proper relationships, timestamps, and validation.
  • Deployment-ready scaffolding: Produces server-side code for Vapor, including migrations and seeds ready to run in development, test, and production.

Quick Start

Invoke the skill using /fosmvvm-fluent-datamodel-generator to generate a Fluent DataModel skeleton for a new entity, then refine fields via the fields-generator and adjust relationships as needed.

Frequently Asked Questions about fosmvvm-fluent-datamodel-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Fluent DataModels and migrations for a Vapor server project?▼

You can generate Fluent DataModels, migrations, and tests for Vapor by invoking the generator skill, which automates boilerplate code for schemas, relationships, and timestamps based on your model requirements. It produces deployment-ready scaffolding aligned to your project's architecture.

What is the best way to automate Fluent migration and schema creation in Swift?▼

Automating Fluent migration and schema creation is best handled by a code generation skill that derives correct relationships, timestamps, and seed data patterns from your existing project architecture. This ensures your server-side Vapor database schemas remain consistent across development and production environments.

Can I generate test scaffolding and seed data for Fluent models in Vapor?▼

Yes, you can generate test scaffolding and seed data for Fluent models in Vapor. The generation process produces server-side code including migrations and seeds ready to run in development, test, and production environments, ensuring your database schemas are properly validated.

Does the Fluent DataModel generator integrate with form-backed models and fields generation?▼

The Fluent DataModel generator integrates with the fosmvvm-fields-generator to derive the Fields protocol for form-backed models. This architecture-aware coordination ensures proper relationships, timestamps, and validation are applied across your server-side Vapor application.

When should I use an automated Fluent DataModel generator instead of writing migrations manually?▼

You should use an automated Fluent DataModel generator when you need to streamline boilerplate code creation and ensure architectural consistency across your server-side Vapor application. It is particularly useful when coordinating multiple models, migrations, and seeds within a larger FOSMVVM project structure.