csharp-developer

Guide .NET 8+ C# development with ASP.NET Core, EF Core, and CQRS patterns.

10.9k|1.0k|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/Jeffallan/claude-skills --skill csharp-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-developer
Source: https://github.com/Jeffallan/claude-skills/tree/main/skills/csharp-developer
Command: npx skills add https://github.com/Jeffallan/claude-skills --skill csharp-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides best practices for modern C# development, .NET 8 tooling, and robust API design with EF Core and CQRS patterns.

Core Features & Use Cases

  • API Development: Minimal/API-based or controller-based APIs with clean architecture.
  • EF Core: Data access, migrations, and optimized queries.
  • CQRS & MediatR: Clear command/query separation.
  • Authentication: JWT and security best practices.
  • Performance: Async/IAsyncEnumerable patterns and profiling.

Quick Start

Scaffold a minimal API with a Router-style endpoint and a simple EF Core context.

Frequently Asked Questions about csharp-developer

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

FAQPage Schema
How do I build a .NET 8 API with ASP.NET Core?

Build .NET 8 APIs using Minimal APIs or controller-based approaches with ASP.NET Core. Both patterns support clean architecture, dependency injection, and strongly typed configuration via IOptions<T>, enabling you to scaffold endpoints with EF Core data access and async/await patterns.

What's the best way to structure commands and queries in C# applications?

Implement CQRS with MediatR to separate command and query logic, creating clear responsibility boundaries. This pattern pairs with EF Core for data access and enables maintainable, testable architectures across ASP.NET Core and Blazor applications.

How do I set up Entity Framework Core migrations and optimize queries?

Configure EF Core contexts with migrations, leverage primary constructors and nullable reference types in C# 12, and optimize queries using async/IAsyncEnumerable patterns. This ensures efficient data access and leverages modern language features for type safety.

Can I implement JWT authentication and authorization in ASP.NET Core?

Implement JWT-based authentication and authorization in ASP.NET Core using built-in security patterns and middleware. Combine with dependency injection and strongly typed configuration to secure both Minimal APIs and controller-based endpoints in cloud-native contexts.

Does Blazor work with .NET 8 for full-stack C# development?

Blazor integrates fully with .NET 8, enabling full-stack C# development. Use it alongside ASP.NET Core APIs, EF Core data layers, and modern C# 12 features like primary constructors and file-scoped namespaces for cohesive server and client-side applications.

How do I handle errors and async I/O in C# applications?

Use Result pattern error handling, async/await, and IAsyncEnumerable for efficient I/O operations. Apply XML documentation and strongly typed configuration to ensure maintainable, performant code aligned with .NET 8 best practices and nullable reference type safety.