new-model

Generate a full Forge Model scaffold with Rust structs, migrations, and seeder templates.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/weiloon1234/Forge-Starter --skill new-model-weiloon1234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-model
Source: https://github.com/weiloon1234/Forge-Starter/tree/main/.claude/skills/new-model
Command: npx skills add https://github.com/weiloon1234/Forge-Starter --skill new-model-weiloon1234

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a streamlined blueprint to create a complete Forge Model, including the Rust struct, database migrations, seeder templates, and project wiring for a new domain entity.

Core Features & Use Cases

  • Generates a full model scaffold with proper primary key (ModelId<Self>), standard or auth-style timestamps, and optional soft-delete, plus relation methods and enum fields as needed.
  • Produces a corresponding migration skeleton, seeder, and module exports so the new model is fully integrated into the starter's architecture (including provider registration scaffolding for authenticatable actors if required).
  • Common use cases include adding entities like Product, Invoice, Currency, or AuditLog, enabling migrations, seeds, and domain-wiring in one cohesive workflow.

Quick Start

Run the Forge CLI to generate a new model scaffold and tailor it to your domain.

Frequently Asked Questions about new-model

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

FAQPage Schema
How do I scaffold a new Rust domain model with Forge?

Scaffolding a new Rust domain model with Forge generates the Rust struct, database migrations, seeder templates, and provider wiring to fully integrate a new entity like Product or Invoice into your architecture.

What does a Forge model scaffold include for a new domain type?

A Forge model scaffold includes the Rust struct with ModelId, optional soft-delete, relation methods, database migrations, seeder patterns, and module exports to integrate the new domain type into the starter architecture.

Can I add soft delete and authenticatable integration when creating a Forge model?

Yes, creating a Forge model supports optional soft delete and authenticatable integration, providing provider registration scaffolding and auth-style timestamps tailored for authenticatable actors.

How do I generate database migrations and seeder templates for a Rust model?

Generating database migrations and seeder templates for a Rust model is handled by the Forge scaffold, which produces a corresponding migration skeleton and seeder patterns alongside the Rust struct and module exports.

When do I need to wire provider registration for a Forge model?

You need to wire provider registration for a Forge model when adding authenticatable actors, ensuring the new domain type integrates into the starter architecture with proper permissions and relation hooks.