generate-service
Generate .NET service with interface, implementation, and DI registration
SKILL.mdskills/generate-service/SKILL.md
GitHubGenerate .NET Service
Generate a service layer with interface, implementation, validation, and DI registration.
What To Do
- Generate IService interface with async methods
- Generate Service implementation with constructor injection
- Add validation logic in service methods
- Register in DI (Program.cs):
builder.Services.AddScoped<IXxxService, XxxService>() - Generate unit tests with mocked repository
Arguments
<service-name>: Service name (without "Service" suffix)--with-caching: Add IMemoryCache integration--with-validation: Add FluentValidation rules