Configures ABP Framework global features at startup to enable/disable module capabilities, hiding controllers, database models, and services accordingly.
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.
GlobalModuleFeatures API.Global Features are development/startup-time switches. They are disabled unless explicitly enabled. Configure them before application startup: a disabled controller/page/service stays in the application model but is hidden from API Explorer / remote-service discovery (ApiExplorer.IsVisible = false) and returns 404 at runtime, and a module can omit disabled database tables from its model. Neither behavior is re-evaluated after startup.
Define a named feature type:
[GlobalFeatureName("Shopping.Payment")]
public class PaymentFeature
{
}
Enable, disable, and inspect it through the process-wide singleton:
GlobalFeatureManager.Instance.Enable<PaymentFeature>();
GlobalFeatureManager.Instance.Disable("Shopping.Payment");
var enabled = GlobalFeatureManager.Instance.IsEnabled<PaymentFeature>();
Verified manager operations accept a generic feature type, Type, or string name. GetEnabledFeatureNames() returns the current enabled-name set as IEnumerable<string>.
The startup template generates an application-specific class such as MyProjectNameGlobalFeatureConfigurator. This is a template convention, not a framework type named GlobalFeatureConfigurator. It wraps changes in OneTimeRunner and is called from the Domain.Shared module's PreConfigureServices:
public static class MyAppGlobalFeatureConfigurator
{
private static readonly OneTimeRunner OneTimeRunner = new();
public static void Configure()
{
OneTimeRunner.Run(() =>
{
GlobalFeatureManager.Instance.Enable<PaymentFeature>();
});
}
}
public override void PreConfigureServices(ServiceConfigurationContext context)
{
MyAppGlobalFeatureConfigurator.Configure();
}
RequiresGlobalFeatureAttribute targets classes and accepts either a feature Type or a feature name:
[RequiresGlobalFeature(typeof(PaymentFeature))]
public class PaymentController : AbpController
{
}
For MVC controllers/pages, a disabled global-feature component stays in the application model but the service convention sets its ApiExplorer.IsVisible = false (hidden from API Explorer and remote-service discovery), and GlobalFeatureActionFilter/GlobalFeaturePageFilter return a NotFoundResult (404) for requests at runtime. For intercepted services implementing IGlobalFeatureCheckingEnabled, the global-feature interceptor throws AbpGlobalFeatureNotEnabledException. The attribute does not target individual methods.
For a reusable module, derive each switch from GlobalFeature, derive a group from GlobalModuleFeatures, call AddFeature(...) in the group constructor, and expose an extension on GlobalModuleFeaturesDictionary. The group supports Enable<TFeature>(), Disable<TFeature>(), SetEnabled<TFeature>(bool), string-name equivalents, EnableAll(), and DisableAll().
GlobalFeatureManager.Instance.Modules.Ecommerce().Subscription.Enable();
GlobalFeatureManager.Instance.Modules.Ecommerce().EnableAll();
Use this grouping only when authoring a reusable module API; application code enabling existing module features should use the module's supplied extension.
404 and is absent from the API Explorer / remote-service metadata.PreConfigureServices, restart, and verify the component is reachable and any model configuration the module gates on the feature is present.IsEnabled<TFeature>() and GetEnabledFeatureNames() reflect the startup configuration.EnableAll() enables every feature added to AllFeatures.GlobalFeatureConfigurator is a framework API — it is an application-specific class generated by templates.[RequiresGlobalFeature] on a method — the attribute targets classes only.GlobalFeatureManager to trim the database model automatically — it does not. A module must check GlobalFeatureManager.Instance.IsEnabled<TFeature>() inside its own OnModelCreating/model-configuration code to include or omit tables (e.g. CmsKit's ConfigureCmsKit).What SKILL.md sets; muted values are Claude Code's defaults
/abp-infrastructure:toggle-global-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).Other plugins' skills for the same job