csharp

Scaffold .NET 8+ application architecture with CQRS and MediatR.

16|9|Updated Nov 6, 2013
One-click install
npx skills add https://github.com/erikstmartin/dotfiles --skill csharp-erikstmartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp
Source: https://github.com/erikstmartin/dotfiles/tree/main/skills/catalog/csharp/csharp
Command: npx skills add https://github.com/erikstmartin/dotfiles --skill csharp-erikstmartin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Use for .NET 8+ C# apps: ASP.NET Core APIs, Blazor, EF Core, minimal APIs, async patterns, CQRS with MediatR, and Dapper.

Core Features & Use Cases

  • Project structure guidance for Clean Architecture
  • Dependency Injection, options pattern, and data access with EF Core / Dapper
  • Testing patterns, async I/O, and performance optimizations

Quick Start

Create a new .NET 8 project and scaffold the recommended architecture following the guidance.

Frequently Asked Questions about csharp

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

FAQPage Schema
How do I scaffold a .NET 8 Clean Architecture project structure?

Scaffolding a .NET 8 Clean Architecture project involves automating structure guidance for ASP.NET Core APIs, Blazor, and data access layers. This ensures proper separation of concerns, dependency injection, and options pattern implementation across your application layers.

What is the best way to implement CQRS with MediatR in ASP.NET Core?

Implementing CQRS with MediatR in ASP.NET Core requires structuring your application to separate read and write operations. This approach utilizes MediatR for handling commands and queries, ensuring optimized async I/O and AsNoTracking read queries for better performance.

Does this guidance support both EF Core and Dapper for data access?

Yes, the guidance supports both EF Core and Dapper for data access in .NET 8 applications. It provides patterns for implementing data access, including performance optimizations like AsNoTracking read queries for EF Core and async I/O operations.

How do I configure nullable reference types and XML documentation in .NET 8?

Configuring nullable reference types and XML documentation in .NET 8 ensures robust public APIs. The architecture guidance enforces nullable reference types to prevent null reference exceptions and mandates XML documentation for all public API endpoints.

Can I use this for Blazor apps with minimal APIs?

Yes, you can use this for Blazor apps and minimal APIs in .NET 8. The guidance covers ASP.NET Core APIs, Blazor applications, and minimal APIs, applying modern patterns like dependency injection, async operations, and CQRS with MediatR across these platforms.

What testing patterns are recommended for modern .NET applications?

Recommended testing patterns for modern .NET applications focus on async I/O and performance optimizations within a Clean Architecture structure. The guidance integrates testing patterns that align with dependency injection and CQRS implementations to ensure reliable code execution.