Configures ABP audit logging: per-request logs of actions, entity changes, exceptions. Use for enabling/disabling auditing, GET request logging, entity change history, AuditLogContributors, ignoring types, [Audited]/[DisableAuditing], manual scopes with IAuditingManager.
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.
ABP automatically creates one audit log object per web request. It records request/response details, executed actions (controller/app-service calls with parameters), entity changes, exceptions, and duration. Startup templates already add the UseAuditing() middleware and wire the Audit Logging module (which implements IAuditingStore to save to a database). Without a store, SimpleLogAuditingStore just writes to the standard logger.
AbpAuditingOptions.[Audited]/[DisableAuditing]).AuditLogContributor to enrich the log.IAuditingManager.IAuditingManager scope).Configure in your module's ConfigureServices:
Configure<AbpAuditingOptions>(options =>
{
options.IsEnabled = true;
options.IsEnabledForGetRequests = false;
});
Key options (verified against https://github.com/abpframework/abp/blob/rel-10.5/framework/src/Volo.Abp.Auditing/Volo/Abp/Auditing/AbpAuditingOptions.cs):
IsEnabled (default true): master switch. When false, nothing else applies.HideErrors (default true): swallow + log errors that occur while saving the audit log instead of throwing. Set false if audit persistence is critical.IsEnabledForAnonymousUsers (default true): set false to log only authenticated users.AlwaysLogOnException (default true): on an exception, force the log to be saved, taking priority over the write filters (IsEnabledForAnonymousUsers, IsEnabledForGetRequests). It does not override the earlier scope exclusions — an ignored URL (IgnoredUrls) or an integration-service request (when IsEnabledForIntegrationServices is false) is skipped before the audit scope is even created, so it's never logged even on exception.IsEnabledForIntegrationServices (default false): enable auditing for integration services.IsEnabledForGetRequests (default false): safe methods (GET, HEAD) are skipped by default; set true to also audit them.DisableLogActionInfo (default false): stop logging AuditLogActionInfo entries.SaveEntityHistoryWhenNavigationChanges (default true): also record entity changes when a navigation property changes.ApplicationName: distinguishes logs when multiple apps share one database (falls back to IApplicationInfoAccessor.ApplicationName).IgnoredTypes (List<Type>): types fully ignored — as entities their changes aren't saved, and they're skipped when serializing action parameters. Defaults already include Stream, Expression, CancellationToken.Contributors (List<AuditLogContributor>): extension points, see below.EntityHistorySelectors (IEntityHistorySelectorList): choose which entities record change history, see below.AlwaysLogSelectors: selectors forcing the log to be saved when matched.There is a separate AbpAspNetCoreAuditingOptions.IgnoredUrls (prefix list) for ignoring URLs, and AbpAspNetCoreAuditingUrlOptions (IncludeSchema/IncludeHost/IncludeQuery, all default false) to control what the logged URL contains.
Entity change history is off by default — no entity changes are saved unless you opt an entity in, to avoid huge databases. Two ways to opt in:
1. Selectors (dynamic, by predicate):
Configure<AbpAuditingOptions>(options =>
{
options.EntityHistorySelectors.AddAllEntities(); // log every entity
// or a custom predicate:
options.EntityHistorySelectors.Add(
new NamedTypeSelector(
"MySelectorName",
type => typeof(IEntity).IsAssignableFrom(type)));
});
2. [Audited] / [DisableAuditing] attributes (per entity / property):
[Audited]
public class MyUser : Entity<Guid>
{
public string Name { get; set; }
public string Email { get; set; }
[DisableAuditing] // never record this property's changes
public string Password { get; set; }
}
Inverse pattern — mark the entity [DisableAuditing] and opt in only chosen properties with [Audited]. [DisableAuditing] on a property also accepts UpdateModificationProps (default true) and PublishEntityEvent (default true) — set false to skip touching LastModificationTime / suppress EntityUpdatedEvent (EF Core only).
An entity is skipped for change logging if it's in IgnoredTypes, isn't an IEntity, or its type isn't public.
Controller actions and application-service methods are audited by default. Use [DisableAuditing] on a class or method to turn it off:
public class HomeController : AbpController
{
[DisableAuditing]
public async Task<ActionResult> Home() { return View(await GetModelAsync()); }
}
For other (non-controller/non-app-service) classes, audit logging is off by default. Opt in with [Audited] on the class/method, or implement IAuditingEnabled.
Extend the log by deriving from AuditLogContributor (PreContribute / PostContribute) and adding it to Contributors:
public class MyAuditLogContributor : AuditLogContributor
{
public override void PreContribute(AuditLogContributionContext context)
{
var currentUser = context.ServiceProvider.GetRequiredService<ICurrentUser>();
context.AuditInfo.SetProperty("MyCustomClaimValue",
currentUser.FindClaimValue("MyCustomClaim"));
}
}
// registration
Configure<AbpAuditingOptions>(o => o.Contributors.Add(new MyAuditLogContributor()));
IAuditingManager exposes Current (IAuditLogScope?) and BeginScope() (returns IAuditLogSaveHandle : IDisposable with SaveAsync()).
Access the current scope from anywhere (always null-check — an outer scope may or may not exist):
var scope = _auditingManager.Current;
if (scope != null)
{
scope.Log.Comments.Add("Executed MyService.DoItAsync");
scope.Log.SetProperty("MyCustomProperty", 42);
}
Create a scope manually (rare — normally the middleware does this per request):
using (var auditingScope = _auditingManager.BeginScope())
{
try
{
// call services; entity changes and actions accumulate into one log
}
catch (Exception ex)
{
_auditingManager.Current.Log.Exceptions.Add(ex);
throw;
}
finally
{
await auditingScope.SaveAsync(); // always save
}
}
UseAuditing() middleware is present and an IAuditingStore is registered — otherwise SimpleLogAuditingStore only writes to the logger and nothing is persisted.IsEnabledForGetRequests and confirm GET requests start/stop being recorded.[Audited]), update it and verify entity change history is saved; a property marked [DisableAuditing] should not appear.SaveAsync() runs in the finally block.[Audited].AlwaysLogOnException forces a save past the write filters, but it does not resurrect logs excluded earlier: an IgnoredUrls match or an integration-service request (when IsEnabledForIntegrationServices is false) is skipped before the scope exists, so it's never logged even on exception.[Audited] or IAuditingEnabled.IAuditingManager.Current; an outer scope may not exist.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/abp-infrastructure:configure-audit-loggingfrom 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-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)./integrate-aiABP AI workspaces with Microsoft.Extensions.AI, Microsoft Agent Framework, or Microsoft.SemanticKernel. USE FOR: choosing an ABP AI abstraction, AbpAIModule, AbpAIWorkspaceOptions, resolving IChatClient/IChatClientAccessor/IKernelAccessor, per-workspace provider/model config. DO NOT USE FOR: general .NET AI/ML outside ABP's workspace integration (out of scope); AI-call observability (out of scope); tenant-editable AI providers via the commercial AI Management module.Other plugins' skills for the same job