developing-with-dotnet

Develop .NET 9 applications with Clean Architecture, MediatR, Entity Framework Core, and Minimal APIs.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/FortiumPartners/ensemble-vnext --skill developing-with-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developing-with-dotnet
Source: https://github.com/FortiumPartners/ensemble-vnext/tree/main/packages/skills/developing-with-dotnet
Command: npx skills add https://github.com/FortiumPartners/ensemble-vnext --skill developing-with-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework for building modern .NET applications using Clean Architecture principles, CQRS with MediatR, and Entity Framework Core, streamlining development and ensuring maintainability.

Core Features & Use Cases

  • Clean Architecture: Enforces separation of concerns with Domain, Application, Infrastructure, and Web API layers.
  • CQRS with MediatR: Implements Command Query Responsibility Segregation for efficient request handling.
  • Entity Framework Core: Facilitates data persistence with migrations and fluent API configurations.
  • Minimal APIs: Enables building efficient HTTP endpoints.
  • Use Case: Develop a new microservice for an e-commerce platform, handling order creation and retrieval with best practices for scalability and testability.

Quick Start

Use the developing-with-dotnet skill to create a new order using the CreateOrderCommand.

Frequently Asked Questions about developing-with-dotnet

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

FAQPage Schema
How do I structure a .NET 9 application using Clean Architecture and CQRS?

Set up Clean Architecture in .NET 9 by organizing your solution into Domain, Application, Infrastructure, and Web API layers to enforce separation of concerns. Implement CQRS with MediatR to efficiently separate command handling from query retrieval, streamlining request processing and improving maintainability.

What is the best way to handle data access with Entity Framework Core in a Clean Architecture project?

Handle Entity Framework Core data access in a Clean Architecture project by isolating persistence within the Infrastructure layer. Facilitate data persistence using EF Core migrations and fluent API configurations, keeping domain logic decoupled from database implementation details for better testability.

Can I use Minimal APIs with MediatR for building web endpoints?

Yes, you can use Minimal APIs with MediatR for building efficient HTTP endpoints in .NET 9. Minimal APIs enable lightweight web endpoint definitions, while MediatR handles request routing and pipeline behaviors, allowing you to maintain CQRS patterns without heavy controller boilerplate.

When do I need pipeline behaviors in a MediatR CQRS implementation?

Implement MediatR pipeline behaviors in a CQRS architecture when you need cross-cutting concerns like validation, logging, or error handling strategies applied to requests. Pipeline behaviors intercept commands and queries, ensuring consistent execution of these concerns before or after the main handler runs.

Does this .NET Clean Architecture approach support configuration binding and dependency injection?

Yes, this .NET Clean Architecture approach fully supports dependency injection patterns and configuration binding. It covers robust dependency injection across project layers and binds configurations to strongly typed objects, streamlining application setup and ensuring components remain modular and testable.