Skip to content
alyn
GitHub Official

Aspnet Minimal API Openapi skill

Create ASP.NET Minimal API endpoints with proper OpenAPI documentation

$npx skills add github/awesome-copilot --skill aspnet-minimal-api-openapi
GitHub stars
41,017
Pack installs
2.4M
Alyn Score
78/99
Updated
20 h ago
License
MIT

GitHub

Aspnet Minimal API Openapi

Install Aspnet Minimal API Openapi

Pick your agent. Every command is ready to paste.

$npx skills add github/awesome-copilot --skill aspnet-minimal-api-openapi

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads aspnet-minimal-api-openapi when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the aspnet-minimal-api-openapi skill”. In Codex, type $aspnet-minimal-api-openapi.

The skill itself

SKILL.md

GitHub

ASP.NET Minimal API with OpenAPI

Your goal is to help me create well-structured ASP.NET Minimal API endpoints with correct types and comprehensive OpenAPI/Swagger documentation.

API Organization

  • Group related endpoints using MapGroup() extension
  • Use endpoint filters for cross-cutting concerns
  • Structure larger APIs with separate endpoint classes
  • Consider using a feature-based folder structure for complex APIs

Request and Response Types

  • Define explicit request and response DTOs/models
  • Create clear model classes with proper validation attributes
  • Use record types for immutable request/response objects
  • Use meaningful property names that align with API design standards
  • Apply [Required] and other validation attributes to enforce constraints
  • Use the ProblemDetailsService and StatusCodePages to get standard error responses

Type Handling

  • Use strongly-typed route parameters with explicit type binding
  • Use Results<T1, T2> to represent multiple response types
  • Return TypedResults instead of Results for strongly-typed responses
  • Leverage C# 10+ features like nullable annotations and init-only properties

OpenAPI Documentation

  • Use the built-in OpenAPI document support added in .NET 9
  • Define operation summary and description
  • Add operationIds using the WithName extension method
  • Add descriptions to properties and parameters with [Description()]
  • Set proper content types for requests and responses
  • Use document transformers to add elements like servers, tags, and security schemes
  • Use schema transformers to apply customizations to OpenAPI schemas

Tips for Aspnet Minimal API Openapi

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 40 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Aspnet Minimal API Openapi

What does the Aspnet Minimal API Openapi skill do?

Create ASP.NET Minimal API endpoints with proper OpenAPI documentation

How do I install Aspnet Minimal API Openapi?

Run "npx skills add github/awesome-copilot --skill aspnet-minimal-api-openapi" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Aspnet Minimal API Openapi work in Cursor and Codex?

Yes. Aspnet Minimal API Openapi uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Aspnet Minimal API Openapi free?

Aspnet Minimal API Openapi is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Aspnet Minimal API Openapi?

Aspnet Minimal API Openapi is published by GitHub in the github/awesome-copilot repository, together with 39 other skills.

Similar skills. From other creators.