/abp-sensei:abp-object-mappingfrom ABP Sensei
Maps objects in ABP Framework v10.x using IObjectMapper, Mapperly (default), or AutoMapper. Covers entity↔DTO conversion, AutoMap attributes, and custom field mapping.
Ships in ABP Sensei. 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.
ABP Framework v10.x (10.4–10.6) object mapping guide. Entity↔DTO conversion via the IObjectMapper abstraction. Since v10.4, Mapperly (compile-time, source-generated) is the default provider; AutoMapper is also supported. Stick with whichever one the solution already uses.
ABP base classes (ApplicationService, etc.) come with an ObjectMapper property out of the box:
public class BookAppService : ApplicationService
{
public async Task<BookDto> GetAsync(Guid id)
{
var book = await _bookRepository.GetAsync(id);
return ObjectMapper.Map<Book, BookDto>(book); // single object
}
public async Task<List<BookDto>> GetAllAsync()
{
var books = await _bookRepository.GetListAsync();
return ObjectMapper.Map<List<Book>, List<BookDto>>(books); // list
}
// Map onto an existing object (source, destination)
public void Update(Book book, UpdateBookDto input)
=> ObjectMapper.Map(input, book);
}
In places without a base class, inject IObjectMapper.
A compile-time source generator — no reflection, fast. ABP integration uses MapperBase<TSource, TDestination>:
[Mapper]
public partial class BookToBookDtoMapper : MapperBase<Book, BookDto>
{
public override partial BookDto Map(Book source);
public override partial void Map(Book source, BookDto destination);
}
[Mapper]
public partial class CreateUpdateBookDtoToBookMapper : MapperBase<CreateUpdateBookDto, Book>
{
public override partial Book Map(CreateUpdateBookDto source);
public override partial void Map(CreateUpdateBookDto source, Book destination);
}
Module configuration:
[DependsOn(typeof(AbpMapperlyModule))]
public class MyApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddMapperlyObjectMapper<MyApplicationModule>();
}
}
Since the mappers derive from MapperBase, an ObjectMapper.Map<Book, BookDto>(...) call uses them automatically.
[Mapper]
public partial class BookMapper : MapperBase<Book, BookDto>
{
[MapProperty(nameof(Book.Name), nameof(BookDto.Title))] // different name
public override partial BookDto Map(Book source);
public override partial void Map(Book source, BookDto destination);
}
If the solution uses AutoMapper, define a profile:
public class MyApplicationAutoMapperProfile : Profile
{
public MyApplicationAutoMapperProfile()
{
CreateMap<Book, BookDto>();
CreateMap<CreateUpdateBookDto, Book>();
}
}
Module configuration:
[DependsOn(typeof(AbpAutoMapperModule))]
public class MyApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAutoMapperObjectMapper<MyApplicationModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<MyApplicationModule>(validate: true);
});
}
}
On the DTO:
[AutoMapFrom(typeof(Book))] // Book → BookDto
public class BookDto : EntityDto<Guid>
{
public string Name { get; set; }
}
[AutoMapTo(typeof(Book))] // CreateBookDto → Book
public class CreateBookDto { public string Name { get; set; } }
ObjectMapper abstraction — don't depend directly on the provider (Mapperly/AutoMapper)validate: true with AutoMapper — catch unmapped fields earlyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
abp-framework, object-mapping, mapperly, automapper, dto-mapping
npx claudepluginhub burakdmir/abp-skills --plugin abp-sensei26 skills in this plugin
/abp-aiABP Framework v10.x (10.4–10.6) AI integration: Microsoft.Extensions.AI (IChatClient), Semantic Kernel, Microsoft Agent Framework, AI Workspaces, AI Management module (Pro) with RAG, document indexing/chunking and MCP servers. Use when you need chat clients, AI agents, RAG or AI workspace management in ABP./abp-apiABP Framework v10.x (10.4–10.6) API development: Auto API Controllers, dynamic and static C#/JS client proxies, Swagger, API versioning, Integration Services. Use when you need a REST API, controller, dynamic proxy or client generation in ABP./abp-audit-loggingABP Framework v10.x (10.4–10.6) audit logging: AbpAuditingOptions, entity history, IAuditingStore, audit log storage and filtering. Use when configuring audit trails, audit logs, or entity history in ABP.Other plugins' skills for the same job