Official agent skill

Dotnet Webapi

by dotnet in dotnet/skills

Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling.

OfficialMITAuto-check passedBackend & APIs

Install Dotnet Webapi

skills CLI
$ npx skills add dotnet/skills --skill dotnet-webapi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dotnet/skills dotnet-webapi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dotnet/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/dotnet-aspnetcore/skills/dotnet-webapi .claude/skills/dotnet-webapi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dotnet-webapi
GitHub stars
5.6k
Used in
2 other repos
Token cost
~5.5k tokens
SKILL.md length
1,970 words
Files
1
Skills in repo
91
Repo updated
First seen
Licence
MIT

At a glance

Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling.

  • Works in 8 steps: Determine the API style → Define request and response types → Implement the endpoints → …
  • : adding new API endpoints (controllers
  • SKILL.md covers When to Use, When Not to Use, Inputs / prerequisites and Workflow, plus 3 more sections
  • Calls dotnet

What it does

Dotnet Webapi is an agent skill from dotnet/skills, published by the product's own GitHub organization. Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling. USE FOR: adding new API endpoints (controllers or minimal APIs), wiring up OpenAPI/Swagger, creating .http test files, setting up global error handling middleware. DO NOT USE FOR: general C coding style, EF Core data access or query optimization (use optimizing-ef-core-queries), frontend/Blazor work, gRPC services, or SignalR hubs.

Its SKILL.md is about 5.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering OpenAPI specifications, REST APIs and gRPC and Protobuf. It works with OpenAPI, ASP.NET Core, .NET and Blazor. The repository describes itself as: Repository for skills to assist AI coding agents with .NET and C. The licence is MIT.

When your agent uses it

  • : adding new API endpoints (controllers
  • Wiring up OpenAPI/Swagger
  • Creating .http test files
  • Setting up global error handling middleware

Example prompts

  • “Use the dotnet-webapi skill to guide creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and…”
  • “/dotnet-webapi”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Determine the API style
  2. Define request and response types
  3. Implement the endpoints
  4. Wire up OpenAPI
  5. Set up error handling
  6. Use a service layer
  7. Create a .http test file
  8. Build and verify

What it can do on your machine

Read from SKILL.md and the folder at commit 8d670fa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • learn.microsoft.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dotnet Webapi loads about 5.5k tokens when it runs. Until then it costs about 121 tokens; SKILL.md has 1,970 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~121
When it runs · the whole SKILL.md, loaded when a task matches
~5.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dotnet/skills at commit 8d670fa, republished under its MIT licence (© dotnet). 1,970 words, ~5,470 tokens.

Download SKILL.mdSave it as .claude/skills/dotnet-webapi/SKILL.md (or your agent's skills folder).
name
dotnet-webapi
description
Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling. USE FOR: adding new API endpoints (controllers or minimal APIs), wiring up OpenAPI/Swagger, creating .http test files, setting up global error handling middleware. DO NOT USE FOR: general C# coding style, EF Core data access or query optimization (use optimizing-ef-core-queries), frontend/Blazor work, gRPC services, or SignalR hubs.
license
MIT

ASP.NET Core Web API

Produce well-structured ASP.NET Core Web API endpoints with proper HTTP semantics, OpenAPI documentation, and error handling.

When to Use

Use this skill when working on ASP.NET Core HTTP APIs, including:

  • adding or modifying Web API endpoints implemented with controllers or minimal APIs;
  • wiring up OpenAPI/Swagger metadata and endpoint documentation;
  • defining request/response DTOs and consistent HTTP status code behavior;
  • adding .http files or similar request-based API testing artifacts;
  • configuring centralized API error handling middleware or exception mapping.

When Not to Use

Do not use this skill for:

  • general C# coding style or non-API refactoring;
  • EF Core data modeling or query optimization work; use optimizing-ef-core-queries;
  • frontend, Razor, or Blazor UI changes;
  • gRPC services;
  • SignalR hubs or real-time messaging flows.

Inputs / prerequisites

Before applying this skill, gather the project context needed to match the existing API style and wiring:

  • the ASP.NET Core entry point, typically Program.cs;
  • any existing controllers, especially classes inheriting ControllerBase or using [ApiController];
  • any existing minimal API registrations such as app.MapGet, app.MapPost, app.MapPut, or app.MapDelete;
  • related DTO, model, validation, and error-handling types already used by the project;
  • available build, run, and test commands so changes can be verified.

If the user asks for a new endpoint, inspect the current project structure first so the implementation follows the established conventions rather than mixing styles.

Workflow

Step 1: Determine the API style

Scan the project for existing endpoint patterns before writing any code.

  1. Search for classes inheriting ControllerBase or decorated with [ApiController].
  2. Search Program.cs or endpoint files for app.MapGet, app.MapPost, etc.
  3. If the project already uses controllers, continue with controllers.
  4. If the project already uses minimal APIs, continue with minimal APIs.
  5. If neither exists (new project), default to minimal APIs unless the user explicitly requests controllers.

Do not mix styles in the same project.

Step 2: Define request and response types

Create dedicated types for API input and output. Never expose EF Core entities directly in request or response bodies.

Use sealed record for all DTOs. Records enforce immutability, provide value-based equality, and produce concise code. Seal them to prevent unintended inheritance and enable JIT devirtualization (CA1852).

Naming convention:

RoleConventionExample
Input (create)Create{Entity}RequestCreateProductRequest
Input (update)Update{Entity}RequestUpdateProductRequest
Output (single){Entity}ResponseProductResponse
Output (list){Entity}ListResponseProductListResponse

XML doc comments on all DTOs: Add <summary> XML doc comments to every request and response type exposed in the API. These comments are automatically included in the generated OpenAPI specification, producing richer documentation without extra metadata calls.

Reference: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/openapi-comments

Date and time values — use DateTimeOffset: When a DTO includes a date or time property, always use DateTimeOffset instead of DateTime. DateTimeOffset preserves the UTC offset, avoids ambiguous timezone conversions, and serializes to ISO 8601 with offset information in JSON — which is what API consumers expect.

Reference: https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset JSON serialization options — preserve existing behavior by default: For existing APIs, do not introduce stricter serialization/deserialization settings unless the project already uses them or the user explicitly asks for them. Settings such as case-sensitive property matching and strict number handling can break existing clients. For new projects, or when strict JSON handling is explicitly requested, configure options like the following to minimize the potential of processing malicious requests:

csharp
// Apply these settings only for new projects, when the existing project already
// uses them, or when the user explicitly requests stricter JSON behavior.
builder.Services.ConfigureHttpJsonOptions(options =>
{
    // disallow reading numbers from JSON strings
    options.SerializerOptions.NumberHandling = JsonNumberHandling.Strict;
    // match properties with exact casing during deserialization
    options.SerializerOptions.PropertyNameCaseInsensitive = false;
    // reject duplicate JSON property names during deserialization
    options.SerializerOptions.AllowDuplicateProperties = false;
    // omit null properties from serialized output
    options.SerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
});

Enum properties — serialize as strings by default: Unless the user explicitly requests integer serialization, all enum properties should be serialized as strings. String-serialized enums are human-readable, less fragile when values are reordered, and produce better OpenAPI documentation. See Step 4 for the JsonStringEnumConverter configuration.

Response DTOs — use positional sealed records for concise, immutable output:

csharp
/// <summary>Represents a product returned by the API.</summary>
public sealed record ProductResponse(
    int Id,
    string Name,
    decimal Price,
    Category Category,
    bool IsAvailable,
    DateTimeOffset CreatedAt);

Request DTOs — use sealed records with init properties so data annotations work naturally:

csharp
/// <summary>Payload for creating a new product.</summary>
public sealed record CreateProductRequest
{
    [Required, MaxLength(200)]
    public required string Name { get; init; }

    [Range(0.01, 999999.99)]
    public required decimal Price { get; init; }

    public required Category Category { get; init; }
}

Follow the same pattern for Update{Entity}Request records, adding any additional properties the update requires (e.g., IsAvailable).

Minimal API validation — register explicitly: Data-annotation validation ([Required], [MaxLength], [Range], etc.) is automatic in MVC controllers, but minimal APIs require explicit opt-in. For .NET 10+ projects using minimal APIs, add the validation services in Program.cs:

csharp
builder.Services.AddValidation();

This wires up an endpoint filter that validates parameters decorated with data annotations before the handler executes, returning a 400 Bad Request with a validation problem details response on failure.

Reference: https://learn.microsoft.com/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-10.0

Do not use mutable classes ({ get; set; }) for DTOs. Mutable DTOs allow accidental modification after construction and lose the self-documenting immutability that records provide.

Step 3: Implement the endpoints

Whether using controllers or minimal APIs, follow these HTTP conventions consistently.

Organizing minimal API endpoints: For projects using minimal APIs, organize endpoints by resource using static classes with a static Map<Resource> method. This pattern keeps endpoint definitions grouped by resource type, making the code more maintainable and easier to navigate as the API grows.

Pattern structure:

  1. Create one static class per resource (e.g., ProductEndpoints, CategoryEndpoints).
  2. Define a static Map<Resource>(this WebApplication app) extension method.
  3. Inside the method, call MapGet, MapPost, MapPut, MapDelete, etc. for that resource's endpoints.
  4. In Program.cs, call each resource's Map method in order.

Minimal API return types — prefer TypedResults:

Always prefer TypedResults over the Results factory. TypedResults embeds response type information in the method signature, giving the OpenAPI generator richer metadata automatically.

When a handler returns multiple result types (e.g., Ok or NotFound), annotate the lambda with an explicit Results<T1, T2> return type. This lets you use TypedResults while still giving the compiler a common type:

csharp
async Task<Results<Ok<ProductResponse>, NotFound>> (int id, ...) => ...

Do not use TypedResults.Ok(x) and TypedResults.NotFound() in a bare ternary without an explicit return type annotation. Ok<T> and NotFound are different types with no common base the compiler can infer, which causes CS1593: Delegate 'RequestDelegate' does not take N arguments because the compiler falls back to matching RequestDelegate(HttpContext).

Fallback — Results factory: If a handler has many conditional branches (7+ result types), you may use the Results factory (Results.Ok(), Results.NotFound()) which returns IResult, sacrificing compile-time OpenAPI inference for simpler signatures.

Status codes:

OperationSuccessCommon errors
GET (single)200 OK404 Not Found
GET (list)200 OK—
POST (create)201 Created with Location header400 Bad Request, 409 Conflict
PUT (full update)200 OK400 Bad Request, 404 Not Found
PATCH (partial/action)200 OK400 Bad Request, 404 Not Found
DELETE204 No Content404 Not Found, 409 Conflict

POST 201 responses: Always return a Location header pointing to the newly created resource.

  • Controllers: use CreatedAtAction(nameof(GetById), new { id = ... }, response)
  • Minimal APIs: use TypedResults.Created($"/api/products/{id}", response)

CancellationToken: Accept CancellationToken in every endpoint signature and forward it through to all async calls (service methods, EF Core queries, HttpClient calls). This allows the server to stop work when a client disconnects.

csharp
// Controller example
[HttpGet("{id}")]
public async Task<ActionResult<ProductResponse>> GetById(
    int id, CancellationToken cancellationToken)
{
    var product = await _productService.GetByIdAsync(id, cancellationToken);
    return product is null ? NotFound() : Ok(product);
}

// Minimal API example — TypedResults with explicit return type (recommended)
app.MapGet("/api/products/{id}", async Task<Results<Ok<ProductResponse>, NotFound>> (
    int id, IProductService service, CancellationToken cancellationToken) =>
{
    var product = await service.GetByIdAsync(id, cancellationToken);
    return product is null ? TypedResults.NotFound() : TypedResults.Ok(product);
});
Step 4: Wire up OpenAPI

Every ASP.NET Core Web API should have OpenAPI documentation. Check whether the project already has OpenAPI configured before adding it.

For .NET 9+ projects, use the built-in ASP.NET Core OpenAPI support (builder.Services.AddOpenApi() + app.MapOpenApi() in development). This is all that is needed — no additional packages required.

Do NOT add any Swashbuckle.* NuGet package (Swashbuckle.AspNetCore, Swashbuckle.AspNetCore.SwaggerUI, Swashbuckle.AspNetCore.SwaggerGen, etc.) to .NET 9+ projects. Swashbuckle has known compatibility issues with .NET 9+ and .NET 10 OpenAPI types. For projects targeting .NET 8 or earlier, Swashbuckle is acceptable. If the project already has Swashbuckle installed, keep it unless the user asks to remove it.

Reference: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/overview

OpenAPI metadata on endpoints: Add descriptive metadata so the generated documentation is useful, not just a list of routes. For minimal APIs, chain the metadata methods:

csharp
app.MapGet("/api/products/{id}", handler)
    .WithName("GetProductById")
    .WithSummary("Get a product by ID")
    .WithDescription("Returns the full product details including category.")
    .Produces<ProductResponse>(StatusCodes.Status200OK)
    .Produces(StatusCodes.Status404NotFound);

Enum serialization (strings by default): Configure JSON serialization so enums appear as readable strings in both API responses and OpenAPI schemas. Always add this configuration unless the user explicitly requests integer enum serialization. Configure it for both minimal APIs and controllers, as they use different option types:

csharp
// Minimal APIs
builder.Services.ConfigureHttpJsonOptions(options =>
    options.SerializerOptions.Converters.Add(new JsonStringEnumConverter()));

// Controllers / MVC
builder.Services.AddControllers()
    .AddJsonOptions(options =>
    {
        options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
    });
Show full SKILL.md (723 more words)Show less
Step 5: Set up error handling

Use a global exception handler so that individual endpoints do not need try-catch blocks. Return RFC 7807 Problem Details for all error responses.

For .NET 8+ projects, prefer the built-in exception handler middleware:

csharp
builder.Services.AddProblemDetails();

app.UseExceptionHandler();
app.UseStatusCodePages();

If the project needs custom exception-to-status-code mapping (e.g., a NotFoundException should return 404), implement IExceptionHandler:

csharp
internal sealed class ApiExceptionHandler(ILogger<ApiExceptionHandler> logger)
    : IExceptionHandler
{
    public async ValueTask<bool> TryHandleAsync(
        HttpContext httpContext,
        Exception exception,
        CancellationToken cancellationToken)
    {
        var (statusCode, title) = exception switch
        {
            KeyNotFoundException => (StatusCodes.Status404NotFound, "Not Found"),
            ArgumentException => (StatusCodes.Status400BadRequest, "Bad Request"),
            InvalidOperationException => (StatusCodes.Status409Conflict, "Conflict"),
            _ => (0, (string?)null)
        };

        if (statusCode == 0)
            return false; // Let the default handler deal with it

        // Important: returning true below suppresses the exception diagnostics middleware
        // for this exception, so ensure it is logged/telemetrized before returning.
        logger.LogWarning(exception, "Handled API exception: {Title}", title);

        httpContext.Response.StatusCode = statusCode;
        await httpContext.Response.WriteAsJsonAsync(new ProblemDetails
        {
            Status = statusCode,
            Title = title,
            // Do not use exception.Message here — it may leak sensitive internal details.
            // Use a safe, user-facing message instead.
            Detail = title,
            Instance = httpContext.Request.Path
        }, cancellationToken);

        return true;
    }
}

Register it:

csharp
builder.Services.AddExceptionHandler<ApiExceptionHandler>();
builder.Services.AddProblemDetails();

app.UseExceptionHandler();

File placement: Always place exception handler classes in a Middleware/ folder to maintain consistent project organization. Do not place them at the project root.

Step 6: Use a service layer

Do not inject data stores directly into controllers or endpoint handlers. Create a service interface and a sealed implementation class that owns the data access logic and mapping between entities and request/response types.

Always define an interface for every service — this enables unit testing with mocks and follows the Dependency Inversion Principle:

csharp
// Services/IProductService.cs
public interface IProductService
{
    Task<IReadOnlyList<ProductResponse>> GetAllAsync(CancellationToken ct);
    Task<ProductResponse?> GetByIdAsync(int id, CancellationToken ct);
    Task<ProductResponse> CreateAsync(CreateProductRequest request, CancellationToken ct);
}

// Services/ProductService.cs
public sealed class ProductService(...) : IProductService
{
    // Data access logic, entity-to-DTO mapping
}

Register with the interface, not the concrete type:

csharp
// In Program.cs
builder.Services.AddScoped<IProductService, ProductService>();

For EF Core data access patterns (migrations, Fluent API configuration, AsNoTracking, seed data), see the optimizing-ef-core-queries skill.

Step 7: Create a .http test file

After implementing endpoints, create a .http file in the project root that demonstrates how to call every new endpoint. This serves as living documentation and a quick manual test harness.

http
@baseUrl = http://localhost:5000

### Get all products
GET {{baseUrl}}/api/products

### Get product by ID
GET {{baseUrl}}/api/products/1

### Create a product
POST {{baseUrl}}/api/products
Content-Type: application/json

{
  "name": "Wireless Mouse",
  "price": 29.99,
  "category": "Electronics"
}

### Delete a product
DELETE {{baseUrl}}/api/products/1

Include at least one request per endpoint with realistic bodies. Show error paths (e.g., non-existent IDs). Match the port to launchSettings.json.

Step 8: Build and verify
  1. Run dotnet build — confirm zero errors and zero warnings.
  2. Start the app and verify the OpenAPI document loads (default: /openapi/v1.json).
  3. Run the requests in the .http file and confirm correct status codes.

Validation

  • All endpoints return correct HTTP status codes per the table in Step 3
  • POST endpoints return 201 Created with a Location header
  • DELETE endpoints return 204 No Content
  • Every endpoint signature includes CancellationToken
  • CancellationToken is forwarded to all downstream async calls
  • OpenAPI document is generated and includes all new endpoints
  • Endpoints have summary/description metadata for OpenAPI
  • Enum values appear as strings in JSON responses and OpenAPI schemas (unless user explicitly requested integer serialization)
  • Error responses use RFC 7807 Problem Details format
  • Domain entities are not exposed directly in API request/response bodies
  • All API-exposed DTOs have <summary> XML doc comments
  • Date and time properties use DateTimeOffset, not DateTime
  • A .http file exists with a request for every new endpoint
  • dotnet build passes with zero errors and zero warnings
  • All DTOs are sealed record types (not mutable classes)
  • Minimal API handlers use TypedResults with explicit Results<T1, T2> return types
  • Every service has a corresponding interface registered in DI
  • Exception handlers are placed in the Middleware/ folder

Common Pitfalls

PitfallSolution
Exposing domain entities as API responsesCreate separate sealed record request/response types. Entities leak navigation properties and internal fields.
Forgetting CancellationTokenAdd to every endpoint and forward through the entire async call chain.
Returning 200 OK from POST createReturn 201 Created with a Location header.
Missing OpenAPI metadataChain .WithName(), .WithSummary(), .WithDescription(), .Produces<T>() on every endpoint.
Injecting data stores directly into endpointsUse a service layer with an interface for separation and testability.
Mixing controller and minimal API stylesPick one per project and be consistent.
TypedResults in ternary without explicit return typeOk<T> and NotFound have no common base — annotate with Task<Results<Ok<T>, NotFound>> or fall back to Results factory.
Using mutable classes for DTOsUse sealed record with positional syntax (responses) or init properties (requests).
Registering services without interfacesDefine IService and register with AddScoped<IService, Service>().
Adding any Swashbuckle.* package to new .NET 9+ projectsUse built-in AddOpenApi() + MapOpenApi(). Do not add Swashbuckle.AspNetCore, Swashbuckle.AspNetCore.SwaggerUI, or any other Swashbuckle package.
Missing XML doc comments on DTOsAdd <summary> XML doc comments to every request and response type. These flow into the generated OpenAPI spec automatically.
Using DateTime for date/time propertiesUse DateTimeOffset instead — it preserves UTC offset, avoids timezone ambiguity, and serializes correctly in JSON.
Serializing enums as integersConfigure JsonStringEnumConverter so enums serialize as strings by default. Only use integer serialization if the user explicitly requests it.

More Info

© dotnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/dotnet-aspnetcore/skills/dotnet-webapi of dotnet/skills.

Open the folder on GitHubat commit 8d670fa

Used in 2 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in dotnet/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Dotnet Webapi next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dotnet Webapi compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dotnet Webapi this skilldotnet/skills5.6k2 repos~5.5kAutomated safety check: PassMIT
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
Dotnet APInovotnyllc/dotnet-artisan233—~1.6kAutomated safety check: PassMIT
Using Dotnetnovotnyllc/dotnet-artisan233—~2.3kAutomated safety check: WarnMIT
Aspnet Corefanslead/ReverseProxy.Store1632 repos~1.4kAutomated safety check: PassApache-2.0
Tsp Csharpquerylenshq/ef-querylens225—~1.3kAutomated safety check: PassMIT

Similar skills

  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Dotnet API

    novotnyllc/dotnet-artisan

    Builds ASP.NET Core APIs, EF Core data access, gRPC, SignalR, and backend services with middleware, security (OAuth, JWT, OWASP), resilience, messaging, OpenAPI, .NET Aspire, Semantic Kernel…

    233 GitHub stars~1.6k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Using Dotnet

    novotnyllc/dotnet-artisan

    Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…

    233 GitHub stars~2.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: warnings
  • Aspnet Core

    fanslead/ReverseProxy.Store

    Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development.

    163 GitHub starsUsed in 2 repos~1.4k tokens
    Backend & APIsAuto-check passed
  • Tsp Csharp

    querylenshq/ef-querylens

    Comprehensive C and .NET development skill for TSP projects.

    225 GitHub stars~1.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • C# and .NET Developer

    Jeffallan/claude-skills

    Guides C# work on .NET 8+: ASP.NET Core APIs, Entity Framework Core data access, Blazor apps and CQRS with MediatR, following a five-step build workflow.

    12k GitHub stars~1.3k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed

More from dotnet/skills

All 91 skills in this repo
  • Official

    Resolves .NET runtime frames in Apple .ips crash logs to function names, source files and line numbers using dSYM symbols, atos and the Microsoft symbol server.

    5.6k GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed
  • Official

    Resolves native crash frames from .NET Android tombstones to function names, source files and line numbers using BuildIds, Microsoft's symbol server and llvm-symbolizer.

    5.6k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Official

    Scans C# and .NET code for about 50 performance anti-patterns and reports prioritized findings with concrete fixes, at a scan depth you choose.

    5.6k GitHub starsUsed in 3 repos~3.1k tokens
    Auto-check passed
  • Official

    Statically pairs source files with test files to list code that no test references, using Roslyn for C# or tree-sitter for many languages, with no build.

    5.6k GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check passed
  • Microbenchmarking

    dotnet/skills

    Official

    Activate this skill when BenchmarkDotNet (BDN) is involved in the task — creating, running, configuring, or reviewing BDN benchmarks.

    5.6k GitHub starsUsed in 3 repos~3.3k tokens
    Auto-check passed
  • Official

    Makes .NET projects compatible with Native AOT and trimming by resolving IL trim and AOT analyzer warnings through annotations rather than suppressions.

    5.6k GitHub starsUsed in 2 repos~4.2k tokens
    Auto-check passed

Categories

Questions about Dotnet Webapi

What does Dotnet Webapi do?

Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling. Dotnet Webapi is an agent skill from dotnet/skills, published by the product's own GitHub organization.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling.

When should I use Dotnet Webapi?

Dotnet Webapi fits situations like: : adding new API endpoints (controllers; wiring up OpenAPI/Swagger; creating .http test files; setting up global error handling middleware.

How do I install Dotnet Webapi in Claude Code?

Run `npx skills add dotnet/skills --skill dotnet-webapi -a claude-code`. Or copy the skill folder (plugins/dotnet-aspnetcore/skills/dotnet-webapi in dotnet/skills) into .claude/skills/dotnet-webapi in your project. Claude Code loads it when a task matches its description.

How do I install Dotnet Webapi in Codex?

Run `npx skills add dotnet/skills --skill dotnet-webapi -a codex`. Or copy the skill folder (plugins/dotnet-aspnetcore/skills/dotnet-webapi in dotnet/skills) into .agents/skills/dotnet-webapi in your project. Codex loads it when a task matches its description.

Can I use Dotnet Webapi in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dotnet/skills --skill dotnet-webapi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dotnet-webapi, .gemini/skills/dotnet-webapi, .github/skills/dotnet-webapi and .opencode/skills/dotnet-webapi in your project.

What does Dotnet Webapi need to run?

Going by SKILL.md and its folder, Dotnet Webapi needs the command-line tools its instructions call (dotnet).

Does Dotnet Webapi access the network?

SKILL.md names 1 domain. As links in the text: learn.microsoft.com. This is read from the text; nothing was executed.

Is Dotnet Webapi safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dotnet Webapi use?

Dotnet Webapi is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dotnet Webapi use?

About 5.5k tokens (SKILL.md is roughly 22k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dotnet Webapi?

Skills that share tags, products or a category with Dotnet Webapi: Use Yaak (mountain-loop/yaak, 19k stars), Dotnet API (novotnyllc/dotnet-artisan, 233 stars), Using Dotnet (novotnyllc/dotnet-artisan, 233 stars) and Aspnet Core (fanslead/ReverseProxy.Store, 163 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dotnet Webapi?

dotnet (a GitHub organization, an official publisher) maintains it in dotnet/skills, which has 5,568 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 7, 2026.

Source: dotnet/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.