/arbiter-skills:arbiter-messaging-servicebusfrom arbiter-skills
Registers AddServiceBus with connection string, publishes INotifications to topics/queues, and consumes Service Bus messages as Arbiter requests/notifications.
Ships in arbiter-skills. 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.
Bridges Arbiter's mediator pattern to Azure Service Bus topics/queues. Lets you publish notifications across processes and dispatch incoming messages through the local IMediator.
dotnet add package Arbiter.Messaging.ServiceBus
Requires Azure.Messaging.ServiceBus (transitive).
using Arbiter.Messaging.ServiceBus;
services.AddServiceBus(
serviceName: null, // optional logical key
nameOrConnectionString: "ServiceBus", // config key OR raw connection string
configure: opts =>
{
// Map notification/request types to topics or queues
opts.MapTopic<UserCreated>("user-events");
opts.MapQueue<ProcessOrder>("orders");
});
nameOrConnectionString is resolved first as a ConnectionStrings:<name> key, then as a literal connection string.
public class UserCreated : INotification
{
public int UserId { get; init; }
}
// In your handler / service — same Publish API as in-process notifications
await mediator.Publish(new UserCreated { UserId = 42 }, ct);
// Goes to the topic configured by opts.MapTopic<UserCreated>(...)
Incoming Service Bus messages are deserialized to the mapped type and dispatched through IMediator, so you write a normal handler:
public class HandleUserCreated : INotificationHandler<UserCreated>
{
public ValueTask Handle(UserCreated notification, CancellationToken ct)
{
// ...
return ValueTask.CompletedTask;
}
}
services.AddTransient<INotificationHandler<UserCreated>, HandleUserCreated>();
The hosted Service Bus listener starts automatically with the host; one subscription per mapped topic/queue.
ServiceBusOptions — override per type if you run multiple consumers.IRequest<TResponse> to a queue; the listener will reply on the session/reply-to.ServiceBusTelemetry.SourceName with OpenTelemetry, or use Arbiter.OpenTelemetry.Server, to collect
Arbiter producer/consumer spans. Azure Service Bus SDK spans remain authoritative for transport and trace-context propagation.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub loresoft/arbiter --plugin arbiter-skills14 skills in this plugin
/arbiter-commandqueryUse when working with Arbiter's CQRS base layer — EntityQuery, EntityFilter, FilterOperators, SortDirections, EntityPagedQuery, EntityIdentifierQuery, EntityCreateCommand / EntityUpdateCommand / EntityPatchCommand / EntityDeleteCommand, or pipeline behaviors like validation, hybrid cache, audit, tenant, soft-delete. Trigger on AddCommandQuery, AddCommandValidation, AddEntityHybridCache./arbiter-commandquery-efUse when wiring Arbiter.CommandQuery with Entity Framework Core — registering AddEntityQueries / AddEntityCommands / AddQueryPipeline for an entity, defining DbContext-backed handlers, or implementing audited / soft-delete / tenant entities for EF Core./arbiter-commandquery-mongoUse when wiring Arbiter.CommandQuery with MongoDB — AddMongoRepository plus AddEntityQueries / AddEntityCommands for an IMongoEntityRepository<TEntity>. Trigger on IMongoRepository, IMongoEntityRepository, MongoDB document handlers./arbiter-communicationUse when sending templated email or SMS via Arbiter.Communication — AddEmailServices / AddSmsServices, IEmailDeliveryService / ISmsDeliveryService, template resolvers, or wiring a delivery provider like Azure Communication Services, Microsoft Graph, SendGrid, Twilio, or SMTP./arbiter-dispatcherUse when wiring the Blazor IDispatcher abstraction from Arbiter.Dispatcher — MessagePackDispatcher / JsonDispatcher for WebAssembly, ServerDispatcher for Server Interactive, AddDispatcherService + MapDispatcherService on the host, or component state helpers ModelStateManager / ModelStateLoader / ModelStateEditor. Trigger on Blazor Auto render mode setup./arbiter-endpointsUse when exposing Arbiter commands and queries as REST via Minimal APIs — AddEndpointRoutes, MapEndpointRoutes, EntityCommandEndpointBase, EntityQueryEndpointBase, IEndpointRoute. Trigger on Minimal API endpoint registration for CRUD entities.Other plugins' skills for the same job