
Description
Minimal API is an agent skill for building HTTP endpoints with .NET 10 minimal APIs. It sets minimal APIs as the default and says controllers should be used only when migrating legacy code. It asks that endpoints be grouped with MapGroup rather than scattered as single calls across Program.cs. It recommends TypedResults over Results, because TypedResults gives compile-time type safety and correct OpenAPI documentation. It also advises documenting endpoints with metadata such as WithName, WithTags and WithSummary, which feed the OpenAPI specification. The required pattern is endpoint group auto-discovery: each group lives in its own file and implements IEndpointGroup, and one app.MapEndpoints() call in Program.cs registers them all, so Program.cs does not change when a new group is added. The skill also covers endpoint filters and parameter binding. It is for .NET developers who build web APIs, and the agent follows these rules when it writes endpoints in a project.…
Highlights
- Endpoint groups with MapGroup
- TypedResults for type safety and OpenAPI
- Endpoint group auto-discovery with IEndpointGroup
- OpenAPI metadata on endpoints
- Endpoint filters and parameter binding
Ratings & Reviews
No ratings yet
Be the first to rate minimal-api.
People also visit
openai/aspnet-core
Build, review, and architect ASP.NET Core apps (Blazor, MVC, Minimal APIs, etc.)
minimal-api FAQ
When should I use controllers instead?
The skill says controllers are for migrating legacy code. New endpoints should use minimal APIs.
Why TypedResults instead of Results?
TypedResults.Ok(value) gives compile-time type safety and correct OpenAPI documentation. Results.Ok(value) does not.
How are new endpoint groups registered?
Each group implements IEndpointGroup in its own file. A single app.MapEndpoints() call in Program.cs discovers and registers all of them.
How do I install it?
Run npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill minimal-api in your project.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best minimal-api alternatives?
Popular alternatives to minimal-api include dotnet-10-csharp-14, aspnet-minimal-api-openapi and openapi. See all minimal-api alternatives










