csharp-crud-scaffolder
Installation
SKILL.md
C#/.NET CRUD Scaffolder Skill
This skill automates the creation of a full CRUD (Create, Read, Update, Delete) endpoint for a new entity in a C#/.NET application. It adheres to Clean Architecture principles and the patterns previously discussed (CQRS, Dapper, Unit of Work, FluentValidation).
Workflow
Follow these steps precisely to generate the code.
Step 1: Gather Entity Requirements
- Confirm Entity Name: Ask the user for the name of the entity in PascalCase (e.g.,
Product,CustomerOrder). - Confirm Properties: Ask the user for a list of properties for the entity. Each property must include:
- C# Type: (e.g.,
string,int,decimal,DateTime,bool). - Name: (in PascalCase, e.g.,
Name,Description,Price). - Nullability: Indicate if the type is nullable (e.g.,
string?,int?). - Validation Rules (Optional): Ask for basic validation rules like
required,maxLength,pattern.
- C# Type: (e.g.,