Organizes ABP solutions into DDD layers (Domain, Application, Infrastructure, UI) and determines which project each type belongs in.
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.
ABP structures a module/application into layers, each a separate .NET project. Put every type in the layer it belongs to — this keeps dependencies flowing one way (UI → Application → Domain, plus infrastructure providers).
[DependsOn], or DI — use the define-application-modules skill.| Project | Contains | References |
|---|---|---|
*.Domain.Shared | Constants, enums, shared error codes, localization resource, shared consts used by every layer | Volo.Abp.Ddd.Domain.Shared, Volo.Abp.Validation |
*.Domain | Entities, aggregate roots, value objects, domain services, repository interfaces, domain events, business rules | Domain.Shared |
*.Application.Contracts | DTOs, application service interfaces (I...AppService), permission definitions | Domain.Shared |
*.Application | Application service implementations, Mapperly mappers / AutoMapper profiles | Application.Contracts, Domain |
*.EntityFrameworkCore | DbContext, EF Core repository implementations, entity mappings | Domain |
*.MongoDB | Mongo DbContext, Mongo repository implementations | Domain |
*.HttpApi | Auto/API controllers exposing the app services over HTTP | Application.Contracts |
*.HttpApi.Client | C# client proxies calling the remote HTTP API | Application.Contracts |
*.Web / *.Blazor | UI (Razor Pages/MVC or Blazor), pages, view models | Non-tiered host: Application + EntityFrameworkCore (runs the app in-process). Tiered/separate client: HttpApi.Client (calls the API remotely). |
Rule of thumb: interfaces + business types go in Domain/Contracts; implementations go in Application/infrastructure.
Namespace Volo.Abp.Domain.Entities (and .Auditing). Prefer Guid keys for aggregate roots.
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
// A plain entity with a typed key
public class OrderLine : Entity<Guid>
{
public string ProductName { get; set; }
public int Quantity { get; set; }
protected OrderLine() { }
}
// An aggregate root — the consistency boundary; repositories target these
public class Order : AggregateRoot<Guid>
{
public string CustomerName { get; set; }
protected Order() { }
public Order(Guid id, string customerName) : base(id)
{
CustomerName = customerName;
}
}
Auditing base classes add audit fields automatically (populated by ABP):
AuditedEntity<TKey> / AuditedAggregateRoot<TKey> → CreationTime, CreatorId, LastModificationTime, LastModifierId.FullAuditedAggregateRoot<TKey> → the above plus soft-delete (IsDeleted, DeletionTime, DeleterId).CreationAuditedEntity<TKey> → creation fields only.public class Book : FullAuditedAggregateRoot<Guid>
{
public string Name { get; set; }
public decimal Price { get; set; }
protected Book() { }
public Book(Guid id, string name) : base(id) { Name = name; }
}
Keep a protected parameterless constructor for the ORM/deserializer and expose a real constructor that enforces invariants.
Interfaces IRepository<TEntity> and IRepository<TEntity, TKey> live in Volo.Abp.Domain.Repositories. AddDefaultRepositories() auto-implements the generic repository for aggregate roots — you inject it directly, no custom class needed:
public class BookManager : DomainService
{
private readonly IRepository<Book, Guid> _bookRepository;
public BookManager(IRepository<Book, Guid> bookRepository)
=> _bookRepository = bookRepository;
}
IRepository<TEntity, TKey> gives GetAsync, FindAsync, InsertAsync, UpdateAsync, DeleteAsync, GetListAsync, GetQueryableAsync, etc.
Default repositories are only registered for aggregate roots. To also get default repositories for non-aggregate-root entities, use AddDefaultRepositories(includeAllEntities: true).
For non-trivial queries, declare a custom repository interface in the Domain layer and implement it in the EF Core / MongoDB layer:
// *.Domain
public interface IBookRepository : IRepository<Book, Guid>
{
Task<List<Book>> GetListByAuthorAsync(Guid authorId);
}
Use a DomainService (base class in Volo.Abp.Domain.Services) for business logic that spans multiple aggregates or needs repositories/other services — logic that doesn't naturally belong to a single entity.
using Volo.Abp.Domain.Services;
public class IssueManager : DomainService
{
private readonly IRepository<Issue, Guid> _issueRepository;
public IssueManager(IRepository<Issue, Guid> issueRepository)
=> _issueRepository = issueRepository;
public async Task<Issue> CreateAsync(string title)
{
// enforce cross-aggregate rules here (this is why it's a domain service), then
// return the new entity — the application service persists it, so the domain
// service doesn't save (see separate-domain-and-application-logic)
if (await _issueRepository.AnyAsync(i => i.Title == title))
{
throw new BusinessException("IssueTracking:DuplicateIssueTitle");
}
return new Issue(GuidGenerator.Create(), title);
}
}
Domain services are named ...Manager by convention and are registered automatically (transient).
DTOs belong in *.Application.Contracts (namespace pattern Volo.Abp.Application.Dtos provides base types). Never leak entities out of the application layer — application services accept and return DTOs. Handy base DTOs: EntityDto<TKey>, AuditedEntityDto<TKey>, FullAuditedEntityDto<TKey>, and request DTOs PagedResultRequestDto, PagedAndSortedResultRequestDto, plus PagedResultDto<T> / ListResultDto<T> for results.
*.Domain; their implementations live in *.EntityFrameworkCore / *.MongoDB.*.Application.Contracts; entities never leave the application layer.*.Domain, implementations in *.EntityFrameworkCore / *.MongoDB.AddDefaultRepositories(includeAllEntities: true).protected parameterless constructor — the ORM/deserializer needs it; keep a separate real constructor to enforce invariants.*.Application.Contracts — that's where consumers and client proxies expect them.What SKILL.md sets; muted values are Claude Code's defaults
/abp-module-development:layered-architecturefrom abp-module-development
npx claudepluginhub abpframework/abp-skills --plugin abp-module-development13 skills in this plugin
/application-servicesWrites or reviews an ABP application service — the DTO-taking, DTO-returning boundary between the domain and the presentation/API layer. USE FOR: implementing IApplicationService/ApplicationService for non-CRUD use cases, using AbstractKeyCrudAppService for composite or non-standard keys, and unit-of-work basics. DO NOT USE FOR: exposing application services as auto/conventional API controllers, routes, verbs or [RemoteService] (use expose-http-apis); a complete standard-key CrudAppService workflow (use build-crud-application-services); detailed object-to-DTO mapping mechanics/profiles (use map-objects-and-dtos); DTO validation attributes and business exceptions (use handle-validation-and-errors); permission definitions and authorization policy (use permissions-and-authorization); the overall layered project structure (use layered-architecture).
/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).
Other plugins' skills for the same job