Skip to main content
skill GitHub Copilot official · GitHub

aspnet-minimal-api-openapi — GitHub Copilot skill: install

Create typed ASP.NET Minimal API endpoints with OpenAPI documentation. Use it when an API needs a clear structure and described request and response contracts.

Install into GitHub Copilot · Skills CLI (Vercel) All methods and platforms ↓
npx skills add github/awesome-copilot --skill aspnet-minimal-api-openapi
Open on GitHub

What aspnet-minimal-api-openapi does

This skill guides GitHub Copilot through organizing ASP.NET Minimal API endpoints with MapGroup(), endpoint filters, and separate endpoint classes. Larger APIs can use a feature-based folder structure. Request and response DTOs are explicit, with validation attributes, record types, and standard error responses through ProblemDetailsService and StatusCodePages.

It recommends explicit route parameter types, Results for alternative responses, and TypedResults for typed results. OpenAPI guidance uses the built-in support from .NET 9, including operation summaries, descriptions, operation IDs through WithName, content types, document transformers, and schema transformers.

Install it when Copilot needs to shape both the API implementation and its OpenAPI contract. For a small endpoint with no documentation requirements, the extra guidance may be unnecessary.

What it helps with

  • build ASP.NET Minimal API endpoints with OpenAPI
  • group related routes with MapGroup()
  • define request and response DTOs
  • add operation IDs and property descriptions
  • return standard API error responses

Example prompts for the agent

  • Create an ASP.NET Minimal API for orders and group related routes with `MapGroup()`.
  • Refactor this endpoint to use `TypedResults`, validation attributes, and an operation ID with `WithName`.
  • Add OpenAPI document and schema transformers for this API.

How to install aspnet-minimal-api-openapi

1Skills CLI (Vercel)

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

2GitHub CLI

gh skill install github/awesome-copilot aspnet-minimal-api-openapi

3Manually: put the files in place

.github/skills/aspnet-minimal-api-openapi/SKILL.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

architecture-patterns Seth Hobson Guides backend architecture with Clean Architecture, Hexagonal Architecture, and DDD. Use it when designing a service, untangling a monolith, or tracing dependency cycles. Claude Code CX Codex Cursor 24,144installs nuxt Anthony Fu This skill equips your AI agent with Nuxt 5 knowledge: server-side rendering, file-based routing, auto-imports, and Nitro v3 deployment. Use it when building Nuxt apps, server routes, useFetch calls, middleware, or hybrid rendering. Claude Code CX Codex Cursor +1 24,100installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs google-agents-cli-adk-code official Google A reference skill for building ADK agents with tools, callbacks, state, and workflows. Use it when an agent project needs concrete API patterns or code examples. Claude Code CX Codex Cursor +1 511,400installs lark-im larksuite This skill lets an agent work with Lark IM messages, chats, files, and interactive cards. Use it when coding tasks need access to team conversations. Claude Code CX Codex Cursor +1 472,300installs lark-event larksuite Listens to Lark/Feishu events and streams them as NDJSON. Use it for bots, message processing, and long-running subscribers. Claude Code CX Codex Cursor +1 466,200installs caveman-discover JuliusBrussee Finds and labels every LLM workflow in your repository so Caveman Cloud breaks down spend by actual job rather than grouping everything into one bucket. Claude Code CX Codex Cursor +1 103,500installs migration JuliusBrussee Enforces reversible, compatibility-safe transitions for schema, data, and API updates. Useful whenever data loss or rollout downtime is unacceptable. Claude Code CX Codex Cursor +1 102,900installs

Questions about aspnet-minimal-api-openapi

How do I install aspnet-minimal-api-openapi in GitHub Copilot?

Run npx skills add github/awesome-copilot --skill aspnet-minimal-api-openapi, then use .github/skills/aspnet-minimal-api-openapi/SKILL.md. You can also run gh skill install github/awesome-copilot aspnet-minimal-api-openapi.

What does aspnet-minimal-api-openapi do?

It guides Copilot in creating structured ASP.NET Minimal API endpoints with typed requests, typed responses, standard errors, and OpenAPI documentation.

What .NET version does the OpenAPI guidance use?

The skill uses the built-in OpenAPI document support added in .NET 9. It also references C# 10+ features such as nullable annotations and init-only properties.

Source text

SKILL.md · MIT
---
name: aspnet-minimal-api-openapi
description: 'Create ASP.NET Minimal API endpoints with proper OpenAPI documentation'
---

# 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

© github · MIT · github/awesome-copilot

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor