Replaces the default Microsoft DI provider with ABP's Autofac integration for property injection and Castle interception.
Ships in abp-infrastructure. 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.
Add Volo.Abp.Autofac and declare the module dependency:
[DependsOn(typeof(AbpAutofacModule))]
public class MyAppModule : AbpModule
{
}
AbpAutofacModule is intentionally thin. It depends on AbpCastleCoreModule, which supplies the Castle integration used by ABP interceptors.
For a generic/ASP.NET Core host, call ABP's IHostBuilder extension before adding the ABP application:
var builder = WebApplication.CreateBuilder(args);
builder.Host
.UseAutofac();
await builder.AddApplicationAsync<MyAppModule>();
The extension creates a ContainerBuilder, exposes it through the service collection, and installs AbpAutofacServiceProviderFactory with UseServiceProviderFactory(...).
For AbpApplicationFactory or another direct ABP application creation path, use the creation options:
var application = await AbpApplicationFactory.CreateAsync<MyAppModule>(options =>
{
options.UseAutofac();
});
This overload adds a ContainerBuilder object accessor and registers the factory as IServiceProviderFactory<ContainerBuilder>.
AbpAutofacServiceProviderFactory.CreateBuilder calls ContainerBuilder.Populate(IServiceCollection). CreateServiceProvider builds the container and returns AutofacServiceProvider.
During population, ABP conventions:
IAbpModuleDescriptor.AllAssemblies), unless the class or property disables it;This skill stops at container setup. Use the dedicated sibling skills to define service registrations or interceptor selection.
services.GetContainerBuilder() returns the registered builder. It throws AbpException with a message instructing callers to invoke UseAutofac when the builder is missing. Do not use this as the normal place for ABP service registration when IServiceCollection conventions are sufficient.
IServiceProvider after startup and confirm it is backed by AutofacServiceProvider.services.GetContainerBuilder() succeeds after UseAutofac and fails without it.AbpAutofacModule — the module dependency does not replace the host service provider; also call the appropriate UseAutofac() overload.IHostBuilder.UseAutofac() for hosted apps and AbpApplicationCreationOptions.UseAutofac() for direct application creation.UseAutofac() after the service provider has already been built — install the factory during host/application construction.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/check-simple-stateComposable ABP simple-state conditions on definitions and UI state objects. USE FOR: ISimpleStateChecker, ISimpleStateCheckerManager, permission/feature/authentication conditions on IHasSimpleStateCheckers. DO NOT USE FOR: tenant/edition feature values (manage-settings-and-features); permission authorization of a service call (permissions-and-authorization); startup-time module capabilities (toggle-global-features)./configure-audit-loggingABP audit logging: per-request log of requests, actions, entity change history, exceptions. USE FOR: enabling/disabling auditing, GET request logging, entity change history, AuditLogContributors, ignoring types, [Audited]/[DisableAuditing], manual scopes with IAuditingManager. DO NOT USE FOR: general application/UI logging or Serilog (configure-logging); setting/feature values (manage-settings-and-features); background jobs/workers/handlers (background-jobs-and-events)./configure-loggingABP startup, runtime, exception logging, and the startup-template Serilog bridge. USE FOR: typed ILogger in ABP services; IInitLoggerFactory/GetInitLogger startup buffering; ABP exceptions via LogException; Serilog via UseSerilog. DO NOT USE FOR: audit-log persistence and entity history (configure-audit-logging); distributed traces and metrics (out of scope, wire the OpenTelemetry .NET SDK directly); exception-to-HTTP response details (handle-validation-and-errors)./abp-infrastructure:integrate-autofacfrom abp-infrastructure
npx claudepluginhub abpframework/abp-skills --plugin abp-infrastructureOther plugins' skills for the same job