Writes or reviews ABP application services — the DTO-taking boundary between domain and API layer. For non-CRUD use cases and composite keys.
Ships in abp-module-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Application services implement use cases. They take and return DTOs (never entities), orchestrate domain objects and repositories, and are the boundary between the domain and the presentation/API layer.
*.Application.Contracts, class in *.Application).AbstractKeyCrudAppService when standard repository key lookup is not available.ObjectMapper.Map usage.CrudAppService workflow — use build-crud-application-services for contract overloads, policies, filtering, sorting, paging, mapping paths, and operation validation.[Authorize] here is just wiring.Define the interface in *.Application.Contracts and the implementation in *.Application. Implement IApplicationService (namespace Volo.Abp.Application.Services) on the interface and derive from ApplicationService (same namespace) in the class:
// *.Application.Contracts
public interface IBookAppService : IApplicationService
{
Task<BookDto> GetAsync(Guid id);
Task<BookDto> CreateAsync(CreateBookDto input);
}
// *.Application
public class BookAppService : ApplicationService, IBookAppService
{
private readonly IRepository<Book, Guid> _bookRepository;
public BookAppService(IRepository<Book, Guid> bookRepository)
=> _bookRepository = bookRepository;
public async Task<BookDto> GetAsync(Guid id)
{
var book = await _bookRepository.GetAsync(id);
return ObjectMapper.Map<Book, BookDto>(book);
}
public async Task<BookDto> CreateAsync(CreateBookDto input)
{
var book = await _bookRepository.InsertAsync(
new Book(GuidGenerator.Create(), input.Name));
return ObjectMapper.Map<Book, BookDto>(book);
}
}
The ApplicationService base gives you injected members via LazyServiceProvider: ObjectMapper, GuidGenerator, CurrentUser, CurrentTenant, Logger, L (localization), AuthorizationService, etc.
ObjectMapper is an IObjectMapper (namespace Volo.Abp.ObjectMapping). Key methods:
TDestination Map<TSource, TDestination>(TSource source);
TDestination Map<TSource, TDestination>(TSource source, TDestination destination);
The default implementation (DefaultObjectMapper) delegates to a replaceable IAutoObjectMappingProvider, so the actual mapping is provided by the registered AutoMapper or Mapperly provider — the default app template registers Mapperly (AddMapperlyObjectMapper). One option is AutoMapper: register mappings in an AutoMapper Profile and add it in your module's ConfigureServices:
public class MyApplicationAutoMapperProfile : Profile
{
public MyApplicationAutoMapperProfile()
{
CreateMap<Book, BookDto>(); // entity -> output DTO; build the entity via its constructor, don't auto-map the input DTO onto it
}
}
// In the *.Application module class
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<MyApplicationModule>();
});
Use build-crud-application-services for the complete standard-key ICrudAppService / CrudAppService contract, implementation, authorization, mapping, filtering, sorting, paging, and validation workflow.
AbstractKeyCrudAppService<...> has the same generic overloads and is the variant to use when the entity does not derive from IEntity<TKey> (e.g. composite/non-standard keys). The only members you must implement are the abstract GetEntityByIdAsync and DeleteByIdAsync (key resolution). The mapping methods (MapToEntityAsync, MapToGetOutputDtoAsync, etc.) are virtual with default object-mapping implementations — override them only when you need custom mapping.
Input DTOs are validated automatically because ApplicationService implements IValidationEnabled (namespace Volo.Abp.Validation). Use standard data annotations on DTO properties:
public class CreateBookDto
{
[Required]
[StringLength(128)]
public string Name { get; set; }
[Range(typeof(decimal), "0", "999.99")]
public decimal Price { get; set; }
}
Invalid input throws AbpValidationException → HTTP 400 before your method body runs. Any class implementing IValidationEnabled gets this behavior via the validation interceptor.
Apply [Authorize] at class or method level; combine with permissions defined in *.Application.Contracts. You can also call CurrentUser / AuthorizationService for imperative checks:
[Authorize(MyPermissions.Books.Default)]
public class BookAppService : ApplicationService, IBookAppService
{
[Authorize(MyPermissions.Books.Create)]
public async Task<BookDto> CreateAsync(CreateBookDto input) { /* ... */ }
}
ABP can expose an application service as a REST API controller automatically, with no controller class — configuring ConventionalControllers.Create, the route/verb conventions, and [RemoteService] toggles is the expose-http-apis skill's job. Write the application service here; publish it there.
Every app service method runs inside an ambient unit of work by default (ApplicationService implements IUnitOfWorkEnabled) — repository changes are saved and the DB transaction commits/rolls back around the method automatically, so you rarely call SaveChanges manually.
Use [UnitOfWork] (namespace Volo.Abp.Uow) to tune behavior (e.g. transactional flag, isolation) or to make a normally non-UoW method transactional:
[UnitOfWork(isTransactional: true)]
public async Task DoWorkAsync() { /* changes commit together */ }
If you need the current UoW imperatively, inject IUnitOfWorkManager and use Current / Begin.
*.Application.Contracts interface should reference only DTOs.ConventionalControllers.Create, confirm the auto-generated REST endpoints appear (e.g. in Swagger) with the expected verbs (GetAsync → GET, CreateAsync → POST, etc.).AbpValidationException → HTTP 400 before the method body runs.SaveChanges (the ambient UoW commits around the method).AbstractKeyCrudAppService (not CrudAppService) when the entity does not derive from IEntity<TKey> (composite/non-standard keys); you must implement GetEntityByIdAsync and DeleteByIdAsync.IValidationEnabled via the interceptor — ApplicationService already does, so validation is automatic there.SaveChanges — but "ambient UoW" doesn't mean "DB transaction": with the default Auto mode, only HTTP GET requests are non-transactional; all other verbs (including QUERY) open a transaction unless a URL is listed in NonTransactionalUrls. Use [UnitOfWork] to tune behavior.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/build-crud-application-servicesBuilds or reviews a complete ABP CRUD application-service contract and implementation with the CrudAppService APIs. USE FOR: choosing ICrudAppService/CrudAppService generic overloads, separating get/list/create/update DTOs, wiring IRepository, object mappings and five policy properties, adding list filters without breaking count/sort/page order, and validating all five CRUD operations. DO NOT USE FOR: a non-CRUD use case or general ApplicationService orchestration (use application-services); composite or non-standard keys with AbstractKeyCrudAppService (use application-services); mapping-provider configuration details (use map-objects-and-dtos); permission definitions (use permissions-and-authorization); optimistic concurrency (use handle-optimistic-concurrency); HTTP endpoint conventions (use expose-http-apis); integration-test infrastructure (use test-abp-applications).
/create-plugin-modulesLoad ABP modules at runtime as plug-ins instead of referencing their assemblies directly, via AbpApplicationCreationOptions.PlugInSources. USE FOR: configuring options.PlugInSources with AddFolder / AddFiles / AddTypes (or a custom IPlugInSource), building a class-library plug-in module deriving from AbpModule, wiring MVC/Razor Pages plug-ins with AssemblyPart / CompiledRazorAssemblyPart application parts. DO NOT USE FOR: defining ordinary referenced modules, [DependsOn], or DI registration (use define-application-modules); overall solution layering (use layered-architecture); building the actual UI pages inside a plug-in (use blazor-ui, mvc-razor-ui, or angular-ui).
/abp-module-development:application-servicesfrom abp-module-development
npx claudepluginhub abpframework/abp-skills --plugin abp-module-developmentOther plugins' skills for the same job