dotnet-core-expert

Implement .NET 8 Minimal APIs with Clean Architecture, CQRS, EF Core, and JWT authentication.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jsdfhasuh/emosonic --skill dotnet-core-expert-jsdfhasuh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-core-expert
Source: https://github.com/jsdfhasuh/emosonic/tree/main/.agents/skills/dotnet-core-expert
Command: npx skills add https://github.com/jsdfhasuh/emosonic --skill dotnet-core-expert-jsdfhasuh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the challenge of delivering production-ready .NET 8 backend code—architecture, security, data access, and testing—without falling into brittle patterns or inconsistent implementations.

Core Features & Use Cases

  • Modern .NET 8 Minimal APIs: Design and implement clean endpoint pipelines with correct middleware, validation, and OpenAPI/Swagger.
  • Clean Architecture with CQRS/MediatR: Structure code into Domain/Application/Infrastructure/WebApi layers and implement commands/queries with pipeline behaviors.
  • Entity Framework Core (async-first): Configure DbContext, relationships, migrations, and performance patterns like compiled queries and projection.
  • Security (JWT authentication/authorization): Implement token generation/validation, role/claim-based authorization policies, and current-user resolution.
  • Production-minded performance & deployment: Apply AOT compilation guidance and cloud-native operational practices (e.g., Docker, health checks, observability).

Quick Start

Use the dotnet-core-expert skill to generate a .NET 8 Minimal API solution skeleton with Clean Architecture + CQRS (MediatR), EF Core async data access, JWT auth with role/claim policies, OpenAPI/Swagger, and a sample integration-test plan.

Frequently Asked Questions about dotnet-core-expert

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

FAQPage Schema
How do I structure a .NET 8 Minimal API project with Clean Architecture and CQRS?

Structure a .NET 8 Minimal API project with Clean Architecture by dividing code into Domain, Application, Infrastructure, and WebApi layers, using MediatR to implement CQRS commands and queries with pipeline behaviors for clear separation of concerns.

What is the best way to implement JWT authentication and role-based authorization in .NET 8?

Implement JWT authentication in .NET 8 by configuring token generation and validation, applying role and claim-based authorization policies, and resolving current user context within your Minimal API endpoints to secure web client access.

How does async Entity Framework Core data access work with compiled queries in .NET 8?

Async Entity Framework Core data access in .NET 8 utilizes async/await for I/O operations, configuring DbContext relationships and migrations, while applying performance patterns like compiled queries and projection to optimize database interactions.

Can I use C# 12 record DTOs with Minimal APIs and OpenAPI Swagger documentation?

Yes, you can use C# 12 record DTOs with Minimal APIs to define clear endpoint pipelines, generating OpenAPI/Swagger documentation automatically to provide accurate API contracts for web clients and microservice integrations.

Do I need xUnit and WebApplicationFactory to write integration tests for .NET 8 services?

Yes, you need xUnit and WebApplicationFactory to write integration tests for .NET 8 services, ensuring your Minimal APIs, Clean Architecture layers, and EF Core data access function correctly together in a production-ready environment.