/arbiter-skills:arbiter-endpointsfrom arbiter-skills
Exposes Arbiter commands and queries as REST endpoints via Minimal APIs. Automatically registers CRUD routes for entities with no per-route boilerplate.
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.
Minimal API surface that exposes the generic Arbiter.CommandQuery commands and queries as REST endpoints automatically. Each entity gets GET /{prefix}/{name}/{id}, GET /{prefix}/{name} (paged), POST, PUT, PATCH, DELETE with no per-route boilerplate.
dotnet add package Arbiter.CommandQuery.Endpoints
using Arbiter.CommandQuery.Endpoints;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddCommandQuery();
builder.Services.AddEndpointRoutes();
// One IEndpointRoute per entity (see below)
builder.Services.AddSingleton<IEndpointRoute, ProductEndpoint>();
var app = builder.Build();
// Mounts every IEndpointRoute under the prefix (default "/api")
app.MapEndpointRoutes();
app.Run();
MapEndpointRoutes(prefix = "/api", serviceKey = null) returns an IEndpointConventionBuilder, so chain .RequireAuthorization(), .WithOpenApi(), etc.
public class ProductEndpoint
: EntityCommandEndpointBase<int, ProductReadModel, ProductReadModel, ProductCreateModel, ProductUpdateModel>
{
public ProductEndpoint(ILoggerFactory loggerFactory)
: base(loggerFactory, entityName: "Product") { }
}
That single class registers all of:
GET /api/Product/{id}
GET /api/Product
POST /api/Product
PUT /api/Product/{id}
PATCH /api/Product/{id}
DELETE /api/Product/{id}
If you only need queries, derive from EntityQueryEndpointBase<TKey, TListModel, TReadModel> instead.
// Read-only entity (queries only)
public class CategoryEndpoint : EntityQueryEndpointBase<int, CategoryReadModel, CategoryReadModel>
{
public CategoryEndpoint(ILoggerFactory l) : base(l, "Category") { }
}
// Custom routes — override MapEndpoints to add or replace any of the above
protected override void MapEndpoints(IEndpointRouteBuilder app)
{
base.MapEndpoints(app);
app.MapPost($"/{EntityName}/import", ImportProducts).WithName("ImportProducts");
}
// Auth applied via the convention builder returned by MapEndpointRoutes
app.MapEndpointRoutes().RequireAuthorization();
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-mappingUse when defining or registering Arbiter.Mapping source-generated mappers — [GenerateMapper] attribute, partial class deriving from MapperProfile<TSource, TDestination>, ConfigureMapping with MappingBuilder, IMapper / IMapper<TSrc,TDst>, ProjectTo for IQueryable, ServiceProviderMapper registration.Other plugins' skills for the same job