Manages ABP settings (config values) and features (tenant/edition capabilities). Use for SettingDefinitionProvider, FeatureDefinitionProvider, ISettingManager, IFeatureManager, and custom value providers.
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.
Settings and features look similar (both are name/value pairs resolved through a provider fallback chain) but answer different questions:
Rule of thumb: if a customer's plan/edition controls it, it's a feature; if it's a tunable configuration value, it's a setting.
Derive from SettingDefinitionProvider (auto-discovered, transient). For a DDD module this usually lives in the Domain layer.
public class EmailSettingProvider : SettingDefinitionProvider
{
public override void Define(ISettingDefinitionContext context)
{
context.Add(
new SettingDefinition("Smtp.Host", "127.0.0.1"),
new SettingDefinition("Smtp.Port", "25"),
new SettingDefinition("Smtp.UserName"),
new SettingDefinition("Smtp.Password", isEncrypted: true),
new SettingDefinition("Smtp.EnableSsl", "false")
);
}
}
SettingDefinition constructor parameters (only name is mandatory):
name, defaultValue = null, displayName = null, description = null, isVisibleToClients = false, isInherited = true, isEncrypted = false.
IsVisibleToClients defaults to false — set it true to expose the value to browser/JS code.IsEncrypted encrypts on save / decrypts on read via ISettingEncryptionService.const string instead of magic strings.To tweak a setting defined by a depended module, query and mutate it in your own provider:
var smtpHost = context.GetOrNull("Abp.Mailing.Smtp.Host");
if (smtpHost != null)
{
smtpHost.DefaultValue = "mail.mydomain.com";
}
Inject ISettingProvider. Its interface methods are GetOrNullAsync(name) → Task<string?>, GetAllAsync(string[] names) and GetAllAsync() → Task<List<SettingValue>>; the typed/bool helpers like IsTrueAsync and GetAsync<T> are extension methods.
string? userName = await _settingProvider.GetOrNullAsync("Smtp.UserName");
bool enableSsl = await _settingProvider.IsTrueAsync("Smtp.EnableSsl");
int port = await _settingProvider.GetAsync<int>("Smtp.Port"); // defaultValue optional
IApplicationService already property-injects ISettingProvider (use the SettingProvider property).
ISettingProvider resolves a value by walking 5 built-in providers; the first that returns non-null wins. Fallback goes bottom → top:
UserSettingValueProvider (U) > TenantSettingValueProvider (T) > GlobalSettingValueProvider (G) > ConfigurationSettingValueProvider (C) > DefaultValueSettingValueProvider (D).
"Settings" section of appsettings.json (or env / user secrets).ISettingStore. The core ships NullSettingStore (always null); the Setting Management module implements a database-backed ISettingStore — that's what actually persists changed values.SettingValueProvider (unique Name), then register via Configure<AbpSettingOptions>(o => o.ValueProviders.Add<CustomSettingValueProvider>()).Derive from FeatureDefinitionProvider (auto-discovered). Usually placed in the Application.Contracts project. You add a group first, then features under it.
using Volo.Abp.Features;
using Volo.Abp.Validation.StringValues;
public class MyFeatureDefinitionProvider : FeatureDefinitionProvider
{
public override void Define(IFeatureDefinitionContext context)
{
var myGroup = context.AddGroup("MyApp");
myGroup.AddFeature("MyApp.PdfReporting", defaultValue: "false");
myGroup.AddFeature(
"MyApp.MaxProductCount",
defaultValue: "10",
valueType: new FreeTextStringValueType(new NumericValueValidator(0, 1000000))
);
}
}
Optional feature properties: DisplayName, Description, ValueType (ToggleStringValueType for on/off, FreeTextStringValueType for free text, SelectionStringValueType for a dropdown), IsVisibleToClients (default true), Properties.
Child features (selectable only when the parent is enabled) via CreateChild(...) on the returned FeatureDefinition. Modify a depended module's feature with context.GetGroupOrNull("SomeModule").
Two ways: the declarative [RequiresFeature] attribute or the IFeatureChecker service.
public class ReportingAppService : ApplicationService, IReportingAppService
{
[RequiresFeature("MyApp.PdfReporting")] // throws AbpAuthorizationException if not enabled
public async Task<PdfReportResultDto> GetPdfReportAsync() { return await GenerateReportAsync(); }
}
[RequiresFeature] works on a method or a class. Multiple names check "any enabled"; set RequiresAll = true to require all.virtual (class-proxy requirement); an async/Task-returning method is recommended but not required. Controllers/Razor pages are exempt (filters handle them).IFeatureChecker for imperative checks. Interface methods: IsEnabledAsync(name), IsEnabledAsync(string[] names), GetOrNullAsync(name) → Task<string?>. Typed/check helpers are extensions.
if (await _featureChecker.IsEnabledAsync("MyApp.PdfReporting")) { /* ... */ }
int max = await _featureChecker.GetAsync<int>("MyApp.MaxProductCount");
await _featureChecker.CheckEnabledAsync("MyApp.PdfReporting"); // throws if disabled
Feature values resolve through providers (first non-null wins), in order:
TenantFeatureValueProvider > EditionFeatureValueProvider (edition id from AbpClaimTypes.EditionId) > ConfigurationFeatureValueProvider (reads the "Features" section of appsettings.json) > DefaultValueFeatureValueProvider.
Custom provider: derive from FeatureValueProvider, register via Configure<AbpFeatureOptions>(o => o.ValueProviders.Add<...>()).
Persistence is IFeatureStore — the Feature Management module implements it (DB-backed) and ships in the startup template. To change feature values from code inject IFeatureManager:
await _featureManager.SetForTenantAsync(tenantId, "MyApp.PdfReporting", true.ToString());
Admins normally set feature values via the feature-management modal on the Tenant Management page.
To change setting values from code, inject ISettingManager (namespace Volo.Abp.SettingManagement, from the Setting Management module package Volo.Abp.SettingManagement.Domain). It persists to the correct provider scope:
await _settingManager.SetGlobalAsync("MyApp.SmtpHost", "smtp.acme.com");
await _settingManager.SetForTenantAsync(tenantId, "MyApp.SmtpHost", "smtp.tenant.com");
await _settingManager.SetForUserAsync(userId, "MyApp.Theme", "dark");
ISettingProvider (read) is in the framework, but writing needs the Setting Management module — a host that only references Volo.Abp.Settings can read but not persist changes.
SettingDefinitionProvider and FeatureDefinitionProvider are auto-discovered at startup.ISettingProvider and confirm the fallback resolves the expected layer (e.g. an appsettings.json "Settings" value overrides the default).[RequiresFeature]-guarded method throws AbpAuthorizationException when the feature is disabled and runs when enabled.NullSettingStore always returns null, so without it only configuration/default values resolve).[RequiresFeature] silently not enforced — it relies on interception, so for non-interface services the method must be virtual (class-proxy requirement). An async/Task-returning method is recommended but not required. Controllers/Razor pages are exempt (filters handle them instead).NullSettingStore (always null); DB persistence comes from the Setting Management / Feature Management modules.IsVisibleToClients defaults differ — settings default to false (hidden from browser/JS), features default to true. Set it explicitly when the default is wrong for your case.const string to avoid typos that resolve to a missing (null) value.What SKILL.md sets; muted values are Claude Code's defaults
/abp-infrastructure:manage-settings-and-featuresfrom abp-infrastructure
npx claudepluginhub abpframework/abp-skills --plugin abp-infrastructure16 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)./encrypt-stringsABP IStringEncryptionService with compatible passphrase, salt, IV, key-size options. USE FOR: reversible encryption used by ABP infra; AbpStringEncryptionOptions defaults and config keys; Encrypt/Decrypt null behavior; encrypted setting values. DO NOT USE FOR: password hashing, signing, token generation, or crypto protocol design; defining encrypted ABP settings (manage-settings-and-features)./generate-guidsABP IGuidGenerator entity IDs and sequential GUID layout for the active database provider. USE FOR: IGuidGenerator.Create; SequentialGuidGenerator; SimpleGuidGenerator; AbpSequentialGuidGeneratorOptions.DefaultSequentialGuidType; SequentialAtEnd / SequentialAsString / SequentialAsBinary. DO NOT USE FOR: cache keys and invalidation (cache-entities); cryptographic tokens or secrets (encrypt-strings); schema and repository design./handle-dates-and-timeABP DateTime, UTC normalization, time zones, persistence. USE FOR: IClock and AbpClockOptions; Utc/Local/Unspecified; Clock.Normalize; EF Core DateTime converters and DisableDateTimeNormalization; per-request tenant/user timezone; ITimezoneProvider Windows/IANA. DO NOT USE FOR: timezone settings (manage-settings-and-features); audit-log persistence (configure-audit-logging); multi-tenancy resolution (configure-multi-tenancy).Other plugins' skills for the same job