Reads and bootstraps Microsoft.Extensions.Configuration in ABP apps and modules. Covers IConfiguration injection, ServiceConfigurationContext, and bootstrap helpers.
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.
IConfiguration into an application service.appsettings.secrets.json convention.ABP is fully compatible with Microsoft.Extensions.Configuration; it does not replace the standard provider pipeline. The main ABP difference is convenient access during module initialization and optional bootstrap helpers for applications without an existing host configuration.
Inside an AbpModule, prefer ServiceConfigurationContext.Configuration:
public override void ConfigureServices(ServiceConfigurationContext context)
{
var endpoint = context.Configuration["ExternalApi:Endpoint"];
}
That property lazily calls context.Services.GetConfiguration(). If code has only an IServiceCollection, call GetConfiguration() directly. It throws AbpException when no IConfiguration implementation is registered; GetConfigurationOrNull() returns null instead.
In an ordinary service, use standard constructor injection:
public class ExternalApiEndpointProvider : ITransientDependency
{
private readonly IConfiguration _configuration;
public ExternalApiEndpointProvider(IConfiguration configuration)
{
_configuration = configuration;
}
public string? GetEndpoint()
{
return _configuration["ExternalApi:Endpoint"];
}
}
For ASP.NET Core and other .NET hosted applications, let the host build and register configuration. AbpApplicationCreationOptions.Configuration only takes effect when IConfiguration has not already been registered.
The verified ABP type is Microsoft.Extensions.Configuration.ConfigurationHelper, not AbpConfigurationHelper.
var configuration = ConfigurationHelper.BuildConfiguration(
new AbpConfigurationBuilderOptions
{
EnvironmentName = "Development",
CommandLineArgs = args
});
Verified AbpConfigurationBuilderOptions defaults:
FileName: "appsettings"Optional: trueReloadOnChange: trueBasePath: null, replaced with Directory.GetCurrentDirectory() by the helperEnvironmentName, EnvironmentVariablesPrefix, CommandLineArgs, UserSecretsId, and UserSecretsAssembly: nullBuildConfiguration adds providers in this order:
{FileName}.json{FileName}.secrets.json as optional{FileName}.{EnvironmentName}.json as optional when an environment is supplied"Development" and a secrets ID or assembly is suppliedbuilderAction, before Build()Later configuration providers override earlier providers according to standard .NET configuration behavior.
AddAppSettingsSecretsJson(optional: true, reloadOnChange: true, path: ...) is also available on IConfigurationBuilder to add only ABP's secrets JSON convention to an existing builder.
context.Configuration and injected IConfiguration resolve the same value.ConfigurationHelper.BuildConfiguration reads the expected base path and environment-specific file."Development" environment condition used by the helper.GetConfiguration() fails clearly when configuration was never registered.AbpConfigurationHelper name — the class is ConfigurationHelper in the Microsoft.Extensions.Configuration namespace.IConfiguration instead.AbpApplicationCreationOptions.Configuration in a hosted app and expecting it to override the host — those options only apply when IConfiguration is not registered.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
abp, configuration, dotnet, microsoft-extensions-configuration
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:read-configurationfrom abp-infrastructure
npx claudepluginhub abpframework/abp-skills --plugin abp-infrastructureOther plugins' skills for the same job