csharp-developer

Implements C# applications with .NET 8, ASP.NET Core APIs, Blazor, and Entity Framework Core.

Updated May 22, 2026
One-click install
npx skills add https://github.com/viniciuscs84/sdd-toolkit --skill csharp-developer-viniciuscs84
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-developer
Source: https://github.com/viniciuscs84/sdd-toolkit/tree/main/skills/csharp-developer
Command: npx skills add https://github.com/viniciuscs84/sdd-toolkit --skill csharp-developer-viniciuscs84

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building modern .NET applications requires consistent knowledge of ASP.NET Core patterns, EF Core data access, Blazor components, async conventions, and performance techniques, which are easy to get wrong without structured guidance. ## Core Features & Use Cases - ASP.NET Core API Development: Builds Minimal or controller-based REST APIs with route groups, endpoint filters, JWT authentication, rate limiting, and output caching. - Entity Framework Core Data Access: Configures DbContext, repositories, migrations, compiled queries, bulk operations, and query optimization with AsNoTracking and split queries. - Blazor and Performance Guidance: Scaffolds Blazor components with state management, form validation, JS interop, and applies Span<T>, ArrayPool, and BenchmarkDotNet optimizations. - Use Case: When asked to create a product catalog API, it produces domain models, DTOs, Minimal API endpoints with cancellation tokens, an EF Core repository, and xUnit test guidance following nullable reference type conventions. ## Quick Start Ask the agent to build an ASP.NET Core Minimal API with Entity Framework Core for your domain model and it will generate the endpoints, services, and data access code.

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 Minimal API in ASP.NET Core with .NET 8?

Define endpoints with app.MapGet or route groups via MapGroup, inject services directly into handlers, and accept a CancellationToken. Register services in Program.cs with AddScoped, then document endpoints using WithName and Produces for OpenAPI.

How to optimize Entity Framework Core queries for performance?

Use AsNoTracking for read-only queries, project into DTOs with Select, and apply AsSplitQuery when including collections to avoid cartesian explosion. For repeated queries, use EF.CompileAsyncQuery, and use ExecuteUpdateAsync or ExecuteDeleteAsync for bulk operations.

Should I use Minimal APIs or controller-based APIs in ASP.NET Core?

Minimal APIs suit lightweight endpoints and microservices with less boilerplate, while controllers fit large applications needing filters and convention-based structure. Both support dependency injection, validation filters, and authorization policies in .NET 8.

Does Blazor support form validation and state management?

Yes, Blazor supports EditForm with DataAnnotationsValidator for model validation and cascading values or a shared AppState class for state management. Components react to state changes through event callbacks and StateHasChanged.

Why does my async C# code deadlock or block threads?

Blocking calls like .Result or .Wait() on async methods cause thread starvation and deadlocks. Always await asynchronous calls, propagate CancellationToken parameters, and use ConfigureAwait(false) in library code.

When should I use Span<T> and ArrayPool in C#?

Use Span<T> for zero-allocation string and byte manipulation, and ArrayPool<T> to rent temporary buffers for stream processing. These reduce GC pressure in hot paths; validate gains with BenchmarkDotNet before applying broadly.