new-entity

Generate C# backend entities with Entity Framework Core configurations and migration commands.

230|29|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/fpindej/netrock --skill new-entity-fpindej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-entity
Source: https://github.com/fpindej/netrock/tree/main/.claude/skills/new-entity
Command: npx skills add https://github.com/fpindej/netrock --skill new-entity-fpindej

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill automates the creation of new backend entities, including their Entity Framework Core configuration and database migrations, significantly speeding up backend development.

Core Features & Use Cases

  • Entity Generation: Creates C# entity classes extending BaseEntity with proper constructors and property definitions.
  • EF Core Configuration: Generates configuration classes for Entity Framework Core, including handling of boolean properties and enums.
  • Migration Scripting: Provides the command to generate a new EF Core migration for the added entity.
  • Use Case: When adding a new feature that requires a new data model, this skill can scaffold the necessary C# classes and database setup code.

Quick Start

Use the new-entity skill to create a 'Product' entity with 'Name' and 'Price' properties.

Frequently Asked Questions about new-entity

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

FAQPage Schema
How do I generate a new EF Core entity and migration in C#?

To generate an EF Core entity, this skill scaffolds C# entity classes extending BaseEntity and outputs the EF Core migration command. It creates configuration classes and database setup code automatically, enforcing .NET conventions for boolean properties.

What is the best way to scaffold C# entity classes for domain-driven design?

Scaffolding C# entity classes for domain-driven design is handled by generating entity classes with proper constructors and EF Core configurations. This skill automates the creation of these models to ensure they follow .NET conventions and include necessary database migration scripts.

Does this entity generation approach support enums and boolean properties in EF Core?

Yes, EF Core configuration generated by this skill explicitly supports boolean properties and enums. The generated configuration classes handle these specific property types while enforcing standard .NET conventions for your backend data models.

How do I create EF Core configuration classes for a new data model?

Creating EF Core configuration classes for a new data model is automated by this skill. It generates the necessary C# configuration files alongside the entity classes and provides the command to generate a new EF Core migration for the added entity.

Can I use this to add a new data model to my .NET project?

Yes, you can use this to add a new data model to your .NET project. When adding a feature that requires a new data model, the skill scaffolds the necessary C# entity classes, EF Core configurations, and database migration scripts.

Why does my EF Core migration need a BaseEntity class?

Your EF Core migration needs a BaseEntity class because the generated C# entity classes extend BaseEntity. This enforces domain-driven design principles and provides proper constructors and property definitions for the new backend entities.