be-create-service

Generate .NET Core CRUD services with DI, AutoMapper, and repository integration.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-service
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-create-service
Source: https://github.com/bmslabs/bmlabs-projects-templates/tree/main/api-dotnet/.github/skills/be-create-service
Command: npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-service

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of .NET Core services that implement a generic CRUD pattern, reducing boilerplate and ensuring consistency in business logic layers.

Core Features & Use Cases

  • Generates a base CrudService and concrete services that follow the project's conventions.
  • Handles dependency injection, AutoMapper mappings, and repository integration to ensure cohesive service scaffolding.
  • Supports standard CRUD operations (List, GetById, Insert, Update, InsertOrUpdate, Search) and upsert patterns, with XML documentation and optional navigation properties as needed.

Quick Start

Create a new service named YourEntityService following the CrudService base pattern.

Frequently Asked Questions about be-create-service

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

FAQPage Schema
How do I generate .NET Core services with a generic CRUD pattern?

Scaffolding .NET Core services with a generic CRUD pattern requires a base CrudService and concrete entity services. This skill automates that generation, coordinating dependency injection, AutoMapper mappings, and repository integration for consistent layers.

What is the best way to reduce boilerplate when creating CRUD services in .NET?

The best way to reduce boilerplate when creating CRUD services in .NET is to scaffold them automatically. This skill generates base CrudService and derived services, enforcing project conventions while handling standard operations like List, GetById, and upsert patterns.

How do I scaffold a .NET service that integrates EF Core repositories and AutoMapper?

To scaffold a .NET service that integrates EF Core repositories and AutoMapper, this skill coordinates dependency injection and mapping configurations automatically. It generates service layers ensuring cohesive repository integration and consistent data mapping across your architecture.

Can I add XML documentation and validation hooks when scaffolding .NET Core services?

Yes, you can add XML documentation and validation hooks when scaffolding .NET Core services. The skill supports generating XML docs for standard CRUD operations and includes optional validation hooks during the base and derived service creation process.

Does .NET Core service scaffolding support upsert patterns and navigation properties?

Yes, .NET Core service scaffolding supports upsert patterns and optional navigation properties. The generated services handle InsertOrUpdate operations and can include navigation properties as needed, ensuring flexible entity relationship management.

Why should I use a generic CrudService base class for my .NET application?

Using a generic CrudService base class for your .NET application ensures consistent business logic layers and reduces manual boilerplate. It standardizes operations like Search and GetById across all concrete services, enforcing project conventions and architectural integrity.