Configures ABP AI workspaces with Microsoft.Extensions.AI, Agent Framework, or SemanticKernel. Helps choose an AI abstraction, set up AbpAIModule, and configure per-workspace provider/model settings.
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.
This integration is new and has active API/documentation movement. Re-check the target ABP version before copying these names or fallback rules.
IChatClient.Kernel accessor.ABP's Volo.Abp.AI package supports three related surfaces:
IChatClient; ABP recommends this minimal abstraction for reusable libraries.IChatClient with CreateAIAgent; ABP recommends it for agent applications.IKernelAccessor when Semantic Kernel-specific integration is required.Agent Framework does not have a separate ABP workspace module. It runs on the IChatClient configured by the Microsoft.Extensions.AI path.
Depend on AbpAIModule from Volo.Abp.AI:
[DependsOn(typeof(AbpAIModule))]
public class MyAppModule : AbpModule
{
}
Also add the provider/connector package used to construct the ChatClientBuilder or IKernelBuilder. ABP does not choose provider credentials, endpoint, or model for you.
[WorkspaceName("CommentSummarization")]
public class CommentSummarizationWorkspace
{
}
WorkspaceNameAttribute.GetWorkspaceName<T>() returns the attribute value, or the type's full name when the attribute is absent. Treat workspace names as unique and case-sensitive; the docs also disallow spaces.
Use PreConfigure<AbpAIWorkspaceOptions> before AbpAIModule.ConfigureServices consumes the configuration:
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<AbpAIWorkspaceOptions>(options =>
{
options.Workspaces.ConfigureDefault(workspace =>
{
workspace.ConfigureChatClient(chat =>
{
chat.Builder = CreateChatClientBuilder();
});
});
options.Workspaces.Configure<CommentSummarizationWorkspace>(workspace =>
{
workspace.ConfigureChatClient(chat =>
{
chat.Builder = CreateSummarizationChatClientBuilder();
});
});
});
}
WorkspaceConfiguration always exposes ChatClient and Kernel configurations. Set each Builder once; use ConfigureBuilder(...) to append named or unnamed builder actions, which ABP applies in insertion order before registering services.
For Semantic Kernel, call workspace.ConfigureKernel(kernel => kernel.Builder = ...). The ABP source consumes AbpAIWorkspaceOptions; do not copy documentation examples that use PreConfigure<AbpAIOptions> for kernel setup.
For a required default chat client, inject Microsoft's IChatClient. For optional AI in a reusable module, inject ABP's IChatClientAccessor and null-check ChatClient.
For typed workspaces:
public class CommentSummarizer
{
private readonly IChatClientAccessor<CommentSummarizationWorkspace> _accessor;
public CommentSummarizer(
IChatClientAccessor<CommentSummarizationWorkspace> accessor)
{
_accessor = accessor;
}
public async Task<string?> SummarizeAsync(string comment)
{
var client = _accessor.ChatClient;
return client is null
? null
: (await client.GetResponseAsync(comment)).Text;
}
}
Verified behavior:
IChatClientAccessor<TWorkspace> falls back to the default chat client when the named client is absent.IChatClient<TWorkspace> also falls back to the default, but resolution fails if neither exists.IKernelAccessor<TWorkspace> does not fall back to the default kernel; it returns null when its keyed kernel is absent.IChatClientAccessor and IKernelAccessor for the default workspace return nullable values.IChatClient under the workspace chat-client key.For Agent Framework, obtain the configured IChatClient, call CreateAIAgent(...), then run the returned AIAgent. Workspace configuration remains the same.
IChatClient resolves and sends a test request to the chosen provider.Configure<AbpAIWorkspaceOptions> instead of PreConfigure — the module executes pre-configured actions while registering services.AbpAIOptions example — ABP source configuration uses AbpAIWorkspaceOptions; AbpAIOptions only tracks configured workspace names.IChatClient into an optional reusable module — use IChatClientAccessor and handle null.IChatClient.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/abp-infrastructure:integrate-aifrom 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