create-entity

Create domain entities and FluentMigrator migrations for Shesha-based .NET projects.

3|20|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/shesha-io/shesha-plugins --skill create-entity-shesha-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-entity
Source: https://github.com/shesha-io/shesha-plugins/tree/main/plugins/shesha-developer/skills/create-entity
Command: npx skills add https://github.com/shesha-io/shesha-plugins --skill create-entity-shesha-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating domain entities and the corresponding database migrations in Shesha-based .NET apps can be error-prone and diverge from Domain-Driven Design patterns. This skill guides you through modeling domain entities, applying Shesha best practices, and generating migration code that aligns with FluentMigrator-based migrations.

Core Features & Use Cases

  • Reuse existing framework capabilities to scaffold domain entities and their migrations in a consistent, manifest-driven manner.
  • Generate database migration classes with proper table naming, prefixes, and full-audit column mappings, ensuring alignment with Shesha conventions.
  • Support extending existing entities (e.g., Person, Organisation, Account) and creating new aggregates that follow DDD principles within the Shesha ecosystem.

Quick Start

Describe the new domain entity you want to add, including its properties and relationships, and I will generate the entity class and migration scaffolding.

Frequently Asked Questions about create-entity

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

FAQPage Schema
How do I generate Shesha entities and FluentMigrator migrations for a new domain aggregate?

To generate Shesha entities and FluentMigrator migrations, describe the new aggregate's properties and relationships. The skill scaffolds the entity class and migration code, enforcing module-prefix naming and full-audit column mappings.

What is the best way to extend existing entities like Person or Account in a Shesha .NET project?

Extending existing entities like Person or Account in a Shesha .NET project involves modeling the additions through the skill. It generates the extended domain entity and corresponding migration while adhering to Domain-Driven Design principles.

Does Shesha domain modeling support discriminator columns for entity inheritance?

Yes, Shesha domain modeling supports discriminator columns for entity inheritance. The skill handles the generation of inheritance structures, ensuring proper migration scaffolding and alignment with framework conventions.

How do I ensure my database migrations follow Shesha table naming conventions and prefixes?

To ensure database migrations follow Shesha table naming conventions, the skill automatically enforces module-prefix naming and maps full-audit columns. This generates consistent FluentMigrator classes aligned with the framework's manifest references.

Can I use this to scaffold both the domain entity class and the database migration simultaneously?

Yes, you can use this to scaffold both the domain entity class and the database migration simultaneously. Describe the desired properties, and it outputs the C# entity alongside the FluentMigrator migration scaffolding.

Why do my Shesha entity migrations diverge from Domain-Driven Design patterns?

Shesha entity migrations diverge from Domain-Driven Design patterns when manual coding ignores framework conventions. This skill solves the problem by guiding domain modeling and generating manifest-driven migration code automatically.