Scaffolds ASP.NET Core Minimal API endpoints using the REPR pattern with validation, TypedResults, and route grouping. Matches existing project conventions.
Ships in TheCodeMan .NET AI ToolKit. 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.
Read when SKILL.md points to them.
Generate clean ASP.NET Core Minimal API endpoints — one feature per endpoint (REPR), validated, with TypedResults, grouped routes, and OpenAPI metadata.
Works on a target: a file, folder, project/solution, or GitHub URL. Read one existing endpoint and match its style (Carter module? plain MapGroup? MediatR dispatch?). Detect with: grep -rn "MapGet\|MapPost\|MapGroup\|ICarterModule\|: ControllerBase" --include=*.cs <target>.
public static class CreateOrderEndpoint
{
public static RouteGroupBuilder MapCreateOrder(this RouteGroupBuilder group)
{
group.MapPost("/", Handle)
.WithName("CreateOrder")
.WithSummary("Creates an order")
.Produces<OrderResponse>(StatusCodes.Status201Created)
.ProducesValidationProblem();
return group;
}
public record Request(Guid CustomerId, List<OrderLine> Lines);
public record OrderResponse(Guid Id);
private static async Task<Results<Created<OrderResponse>, ValidationProblem>> Handle(
Request req, IValidator<Request> validator, ISender sender, CancellationToken ct)
{
var v = await validator.ValidateAsync(req, ct);
if (!v.IsValid) return TypedResults.ValidationProblem(v.ToDictionary());
var id = await sender.Send(new CreateOrderCommand(req.CustomerId, req.Lines), ct);
return TypedResults.Created($"/orders/{id}", new OrderResponse(id));
}
}
var orders = app.MapGroup("/orders").WithTags("Orders").RequireAuthorization();
orders.MapCreateOrder();
orders.MapGetOrderById();
TypedResults over Results — they give you compile-time response types and accurate OpenAPI.ValidationProblem (RFC 7807), keep business rules in the handler/domain.MapGroup + filters already do."Add a minimal API endpoint for creating X", "convert this controller to minimal APIs", "group these routes under /orders with auth". Matches your existing endpoint style automatically.
What SKILL.md sets; muted values are Claude Code's defaults
/dotnet-ai-toolkit:minimal-api-endpoint-scaffolderfrom TheCodeMan .NET AI ToolKit
npx claudepluginhub stefanthecode/dotnet-ai-toolkit --plugin dotnet-ai-toolkit49 skills in this plugin
/adonet-data-access-auditorAudit and fix classic ADO.NET data-access code (SqlConnection / SqlCommand / SqlDataReader / DataSet) on .NET Framework. Use this skill whenever the user shares raw ADO.NET code, a DAL / repository built on SqlCommand, stored-proc calls, string-concatenated SQL, or mentions SQL injection, parameterized queries, connection leaks, "using / Dispose", reading the same column multiple times, transactions, or "why does my old data layer leak connections / is it safe". Always use this skill for classic ADO.NET review instead of answering from memory; it applies a fixed security + correctness + performance checklist and rewrites the code./async-await-auditorAudit C#/.NET code for async/await anti-patterns and concurrency bugs. Use this skill whenever the user shares async C# code or asks about deadlocks, async void, .Result/.Wait(), blocking calls, ConfigureAwait, sync-over-async, fire-and-forget tasks, CancellationToken usage, or "why does my async code hang/deadlock". Always use this skill for async correctness/performance reviews instead of answering from memory; it applies a fixed checklist and rewrites the code./authorization-policy-generatorDesign ASP.NET Core authorization — policy-based, role-based, and claims/requirement-based with custom authorization handlers and resource-based checks. Use this skill whenever the user wants authorization policies, role/claim checks, custom AuthorizationHandler, resource-based authorization, permission checks, or asks "how do I authorize this / policy vs role / restrict this endpoint to X". Always use this skill for authorization requests; it generates policies, handlers, and endpoint wiring.Other plugins' skills for the same job