dotnet-core-expert

Implements .NET 8 applications with minimal APIs, clean architecture, and CQRS patterns.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/ArMaTeC/Redball --skill dotnet-core-expert-armatec
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dotnet-core-expert
Source: https://github.com/ArMaTeC/Redball/tree/main/.devin/skills/dotnet-core-expert
Command: npx skills add https://github.com/ArMaTeC/Redball --skill dotnet-core-expert-armatec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building modern .NET backend services requires coordinating many patterns—minimal APIs, clean architecture layering, EF Core data access, JWT authentication, and cloud-native deployment—and getting them wrong leads to tangled, insecure, or untestable code. ## Core Features & Use Cases - Clean Architecture & CQRS: Generates layered solutions (Domain, Application, Infrastructure, WebApi) with MediatR commands, queries, FluentValidation, and pipeline behaviors. - Minimal APIs & Authentication: Implements typed endpoints with route groups, filters, JWT bearer authentication, authorization policies, and password hashing. - Data & Cloud-Native: Provides EF Core DbContext configurations, migrations, query optimization, Dockerfiles, health checks, Kubernetes manifests, and OpenTelemetry observability. - Use Case: Ask it to scaffold a products API with JWT login, and it produces the solution structure, MediatR handlers, EF Core context, secured endpoints, and integration tests. ## Quick Start Ask the assistant to build a .NET 8 minimal API with clean architecture, EF Core persistence, and JWT authentication for your domain model.

Frequently Asked Questions about dotnet-core-expert

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

FAQPage Schema
How do I build a minimal API in .NET 8 with clean architecture?▼

Structure the solution into Domain, Application, Infrastructure, and WebApi layers, then map endpoints with app.MapGet and app.MapPost in route groups. Handlers use MediatR's ISender to dispatch commands and queries, keeping endpoints thin and business logic in the Application layer.

How to add JWT authentication to an ASP.NET Core minimal API?▼

Register JwtBearer authentication with TokenValidationParameters containing your issuer, audience, and signing key, then call app.UseAuthentication and app.UseAuthorization. Protect endpoints with RequireAuthorization() or named policies like RequireRole("Admin").

What is the difference between MediatR commands and queries in CQRS?▼

Commands implement IRequest<T> and mutate state through handlers that save changes via the DbContext, while queries are read-only requests that use AsNoTracking projections into DTOs. Both flow through pipeline behaviors for validation and logging.

Does Entity Framework Core support async queries and pagination?▼

Yes, EF Core provides ToListAsync, FirstOrDefaultAsync, and CountAsync for asynchronous execution. Pagination combines Skip and Take with a total count query, and AsNoTracking improves read performance by skipping change tracking.

How do I deploy a .NET 8 API to Kubernetes with health checks?▼

Build a multi-stage Dockerfile producing a minimal runtime image, then create a Deployment manifest with livenessProbe and readinessProbe pointing to /health/live and /health/ready endpoints. Register checks with AddHealthChecks including database and Redis probes.

When should I not use clean architecture for a .NET project?▼

Clean architecture adds layering overhead that may not suit small prototypes, single-endpoint services, or short-lived utilities. For trivial CRUD apps, a single-project minimal API with direct EF Core calls can be simpler to maintain.