Propagates ABP correlation IDs through ASP.NET Core requests and ABP HTTP client proxies. Use for configuring AbpCorrelationIdOptions, UseCorrelationId middleware, and ICorrelationIdProvider.
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.
ICorrelationIdProvider has two operations: Get() returns the current nullable ID, and Change(string?) sets it until the returned IDisposable is disposed. The default singleton provider stores the value in AsyncLocal<string?> and restores the parent value on disposal.
For ASP.NET Core, add the middleware in the request pipeline:
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
app.UseCorrelationId();
}
AbpCorrelationIdMiddleware reads the configured request header. If it is empty, it creates Guid.NewGuid().ToString("N") and writes it back to the request headers. It scopes the provider value around the next middleware. By default, it also adds the same ID to the response when the response does not already contain that header.
Configure the two verified options in a module:
Configure<AbpCorrelationIdOptions>(options =>
{
options.HttpHeaderName = "X-Correlation-Id";
options.SetResponseHeader = true;
});
Defaults:
HttpHeaderName: "X-Correlation-Id"SetResponseHeader: trueRead or temporarily replace the current value:
public class CorrelatedOperation
{
private readonly ICorrelationIdProvider _correlationIdProvider;
public CorrelatedOperation(ICorrelationIdProvider correlationIdProvider)
{
_correlationIdProvider = correlationIdProvider;
}
public async Task RunAsync(string correlationId)
{
using (_correlationIdProvider.Change(correlationId))
{
await ExecuteAsync();
}
}
}
ABP HTTP client proxy paths (ApiDescriptionFinder and ClientProxyBase) call ICorrelationIdProvider.Get() and add the configured header when the value is not null. This is the verified service-to-service propagation path; an arbitrary HttpClient is not automatically covered by these classes.
N-format GUID under that header.ICorrelationIdProvider.Get() returns it inside the request.SetResponseHeader to false and verify the middleware does not add the response header.Change(...) restores the outer value after disposal.UseCorrelationId() — registering the provider alone does not create an inbound request ID.HttpClient calls to propagate automatically — the verified automatic propagation is in ABP HTTP client proxy code; add your own delegating handler for other clients.Change(...) — use a using block so the previous AsyncLocal value is restored.AbpCorrelationIdOptions.HttpHeaderName consistently on both ends.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/abp-infrastructure:propagate-correlation-idfrom 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