Skip to content

ASP.NET Minimal API with OpenAPI

Guides the agent to write ASP.NET Minimal API endpoints with typed responses and OpenAPI docs

Stars
40,703
Licence
MIT
Files
1 file

What it does

When installed, the agent follows a set of best-practice guidelines whenever you ask it to build ASP.NET Minimal API endpoints in C#. It organises endpoints with MapGroup, uses typed request and response models with validation attributes, returns TypedResults and Results<T1, T2> for clear responses, and documents the API using the built-in OpenAPI support in .NET 9 (summaries, operation IDs, descriptions, transformers). It is guidance only; it does not run anything itself.

Great for

  • C# developers building small or medium web APIs on .NET 9 or later
  • Teams who want consistent, well-documented Minimal API code generated by an agent
  • Developers who want OpenAPI documentation added to existing Minimal API endpoints

Skip it if

  • Projects using MVC controllers or older .NET versions, since the guidance targets Minimal APIs and .NET 9 OpenAPI features (the agent may still need to adapt the advice)
  • Non-developers without a .NET project, because the skill assumes an existing C# codebase to write into

Try asking

  • “Create a Minimal API with endpoints for managing products, grouped under a /products route with OpenAPI docs”
  • “Add OpenAPI summaries, descriptions and operationIds to my existing Minimal API endpoints”
  • “Refactor these endpoints to return TypedResults and Results<T1, T2> with proper error responses”
  • “Set up a document transformer that adds servers and a security scheme to my API's OpenAPI document”
Step-by-step guide: how to use ASP.NET Minimal API with OpenAPIInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    aspnet-minimal-api-openapi.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip aspnet-minimal-api-openapi.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip aspnet-minimal-api-openapi.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Name the .NET version and any existing project structure so the agent matches your setup
  • Ask the agent to review generated code against your own validation and security rules, since the skill gives general guidance only
  • Mention whether you want a feature-folder layout so the agent organises endpoints the way you prefer

What's inside

  • SKILL.md

Redistributed unmodified from github/awesome-copilot under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.