Agent skill

generate-service

Generate .NET service with interface, implementation, and DI registration

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/generate-service

SKILL.md

Generate .NET Service

Generate a service layer with interface, implementation, validation, and DI registration.

What To Do

  1. Generate IService interface with async methods
  2. Generate Service implementation with constructor injection
  3. Add validation logic in service methods
  4. Register in DI (Program.cs): builder.Services.AddScoped<IXxxService, XxxService>()
  5. Generate unit tests with mocked repository

Arguments

  • <service-name>: Service name (without "Service" suffix)
  • --with-caching: Add IMemoryCache integration
  • --with-validation: Add FluentValidation rules

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results