dotnet-api

Provide patterns for building ASP.NET Core 8+ Web APIs with validation and error handling.

1|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/medride/claude-code-research --skill dotnet-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-api
Source: https://github.com/medride/claude-code-research/tree/main/.claude/skills/dotnet-api
Command: npx skills add https://github.com/medride/claude-code-research --skill dotnet-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Patterns and best practices for building production-ready .NET Web APIs with ASP.NET Core, including architecture decisions, validation, error handling, and testing strategies.

Core Features & Use Cases

  • API architecture decisions: Controllers vs Minimal APIs with appropriate routing, validation, and mapping.
  • Validation and error handling: Built-in problem details, validation strategies, and exception handling.
  • OpenAPI/Swagger integration and versioning: API docs, version-aware routing, and explorer support.
  • DI patterns and templates: Dependency injection patterns, service lifetimes, and keyed services.

Quick Start

Scaffold a new ASP.NET Core 8+ API project and apply the recommended patterns for Minimal APIs or Controllers as demonstrated by the included templates and examples.

Frequently Asked Questions about dotnet-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for building production-ready ASP.NET Core Web APIs?

Production-ready ASP.NET Core Web APIs require structured patterns for architecture decisions, validation, error handling, OpenAPI integration, versioning, and dependency injection. This Skill provides templates and best practices covering Minimal APIs and Controllers to ensure robust API projects.

How do I set up validation and error handling in a .NET Web API?

Validation and error handling in a .NET Web API use built-in problem details, FluentValidation strategies, and exception handling. This Skill supplies templates to implement these mechanisms, ensuring consistent validation responses across Minimal API and Controller approaches.

Should I use Minimal APIs or Controllers for my ASP.NET Core 8 API project?

Choosing between Minimal APIs and Controllers for ASP.NET Core 8 API projects depends on routing, validation, and mapping needs. This Skill demonstrates architecture decisions and provides production-grade templates for both approaches to guide your selection.

Does this approach support OpenAPI integration and API versioning?

Yes, this approach supports OpenAPI integration and API versioning through API docs, version-aware routing, and explorer support. The Skill includes templates for configuring OpenAPI and Swagger within ASP.NET Core Web API projects.

How do I configure dependency injection patterns for ASP.NET Core Web APIs?

Configuring dependency injection patterns for ASP.NET Core Web APIs involves setting up service lifetimes and keyed services. This Skill provides DI patterns and templates to properly structure dependency injection within your API architecture.