dotnet

Implements .NET 9 Minimal APIs with Clean Architecture and EF Core templates.

10|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Alan-TheGentleman/gentle-ai-enterprise --skill dotnet-alan-thegentleman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet
Source: https://github.com/Alan-TheGentleman/gentle-ai-enterprise/tree/main/skills/dotnet
Command: npx skills add https://github.com/Alan-TheGentleman/gentle-ai-enterprise --skill dotnet-alan-thegentleman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This pattern library provides enterprise-grade .NET architecture templates and minimal API scaffolding to reduce boilerplate and ensure consistency across projects.

Core Features & Use Cases

  • Minimal APIs scaffolding and DI integration for thin endpoints.
  • Clean Architecture layered structure (Domain, Application, Infrastructure, WebApi) with EF Core configuration.
  • Use cases: rapidly spin up new .NET web APIs that follow best practices and predictable patterns.

Quick Start

Create a new .NET 9 Web API project and adopt the provided Minimal API + Clean Architecture templates.

Frequently Asked Questions about dotnet

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

FAQPage Schema
How do I structure a .NET 9 Web API using Clean Architecture and Minimal APIs?

To structure a .NET 9 Web API with Clean Architecture, you separate concerns across Domain, Application, Infrastructure, and WebApi layers. This pattern uses Minimal APIs for thin endpoints, enforces dependency injection, and applies repository patterns for maintainable code.

What is the best way to reduce boilerplate when scaffolding a modern .NET Web API?

The best way to reduce .NET Web API boilerplate is using an enterprise-grade architecture template that provides Minimal API scaffolding. This enforces consistent patterns like typed results and EF Core configurations across your endpoints, services, and data layers.

How does dependency injection work with Minimal APIs in a Clean Architecture project?

Dependency injection in Minimal APIs works by registering services across distinct Clean Architecture layers. The WebApi layer keeps endpoints thin by resolving injected services from the Application and Infrastructure layers, ensuring predictable and maintainable code execution.

Can I use EF Core configurations with typed results in a .NET Minimal API?

Yes, you can use EF Core configurations with typed results in a .NET Minimal API. This combination enforces predictable data layer mappings and standardized HTTP responses, maintaining strict separation between your Infrastructure and WebApi presentation layers.

When should I implement the repository pattern in a .NET Web API?

You should implement the repository pattern in a .NET Web API when enforcing strict Clean Architecture boundaries. It abstracts EF Core data access operations away from the Application layer, ensuring your business logic remains decoupled from infrastructure concerns.

Does scaffolding a Clean Architecture .NET Web API require specific project dependencies?

Scaffolding a Clean Architecture .NET Web API requires establishing a .NET 9 environment with distinct Domain, Application, Infrastructure, and WebApi projects. This setup supports the necessary Minimal API endpoints, EF Core configurations, and dependency injection enforcement.