csharp-developer

Generate .NET 8 C# web APIs and Blazor apps with EF Core and xUnit tests.

19|3|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/dirien/yet-another-agent-harness --skill csharp-developer-dirien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-developer
Source: https://github.com/dirien/yet-another-agent-harness/tree/main/.claude/skills/csharp-developer
Command: npx skills add https://github.com/dirien/yet-another-agent-harness --skill csharp-developer-dirien

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a clear, production-ready implementation path for building modern C# applications with .NET 8+, removing ambiguity around API structure, EF Core migrations, async patterns, and Blazor component design so teams can deliver reliable services quickly.

Core Features & Use Cases

  • API scaffolding: Minimal and controller-based ASP.NET Core endpoints with DI, validation, and clean DTO mappings.
  • Data access: Entity Framework Core guidance including DbContext, configurations, migrations checks, and query optimization.
  • Frontend & components: Blazor patterns for components, state management, JS interop, and SignalR integration.
  • Performance & reliability: Async/cancellation best practices, Span/Memory usage, object pooling, and benchmarking recommendations.
  • Architecture & testing: CQRS with MediatR, strongly-typed configuration (IOptions), Result patterns, and xUnit test guidance.

Quick Start

Create a minimal .NET 8 API scaffold with EF Core-backed Product endpoints, DTO mappings, async methods that accept CancellationToken, and a migration ready for review.

Frequently Asked Questions about csharp-developer

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

FAQPage Schema
How do I scaffold a .NET 8 minimal API with EF Core and DTO mappings?

To scaffold a .NET 8 minimal API, define ASP.NET Core endpoints with dependency injection and validation, map entities to clean DTOs, implement async methods with CancellationToken, and prepare EF Core migrations for review.

What is the best way to implement CQRS patterns in a Blazor application?

Implement CQRS patterns in Blazor applications using MediatR for command and query separation. This approach pairs with strongly-typed IOptions configuration and Result patterns to deliver reliable component state management and SignalR integration.

How do I prepare EF Core migrations and optimize query performance in ASP.NET Core?

Prepare EF Core migrations by configuring the DbContext and running migration checks. Optimize ASP.NET Core query performance by applying async/cancellation best practices, utilizing Span/Memory, and implementing object pooling with benchmarking recommendations.

Does this approach support nullable reference types and file-scoped namespaces for C# web APIs?

Yes, the approach strictly enforces nullable reference types and file-scoped namespaces for C# web APIs. It ensures strongly-typed IOptions configuration and DTO mapping instead of exposing entities directly across ASP.NET Core and Blazor applications.

Can I generate xUnit tests for ASP.NET Core Minimal APIs and MediatR handlers?

Yes, you can generate xUnit test guidance for ASP.NET Core Minimal APIs and MediatR handlers. The generated tests cover endpoint scaffolding, CQRS patterns, and EF Core data access to ensure production-ready reliability.

When should I use Blazor components instead of controller-based APIs for frontend integration?

Use Blazor components for frontend integration when you need state management, JS interop, and SignalR integration directly in the UI. Use controller-based or Minimal APIs for backend data access, leveraging EF Core and DTO mappings for boundary separation.