Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jeffallan avatar

Csharp Developer

  • 3.5k installs
  • 10.8k repo stars
  • Updated May 20, 2026
  • jeffallan/claude-skills

csharp-developer is a .NET 8+ specialist skill for ASP.NET Core APIs, EF Core, Blazor, async patterns, CQRS, and testable service architecture.

About

C# Developer is a specialist skill for building high-performance applications on .NET 8 and later across ASP.NET Core APIs, Entity Framework Core, and Blazor Server or WASM. The workflow starts by analyzing solution files, NuGet packages, and architecture, then designs domain models, DTOs, and validation before implementing endpoints, repositories, and services with dependency injection. It enforces nullable reference types, file-scoped namespaces, primary constructors, async I/O with forwarded CancellationToken, strongly typed IOptions configuration, XML documentation on public APIs, and a Result pattern for errors. Constraints forbid blocking async calls, exposing EF entities in API responses, string-based configuration keys, and skipping input validation. After implementation it runs xUnit tests with TestServer targeting 80 percent or higher coverage and pauses after EF migrations to review generated schema changes. Reference guides load for modern C#, ASP.NET Core, Entity Framework, Blazor, and performance topics including Span and Memory. Output templates include models, endpoints, services, and Program.cs configuration with brief architectural notes.

  • Covers ASP.NET Core minimal and controller APIs, EF Core, Blazor, MediatR CQRS, and SignalR on .NET 8+.
  • MUST rules require nullable types, async with CancellationToken, DI, DTO mapping, and Result-pattern errors.
  • Blocks .Result and .Wait() in async code and direct EF entity exposure in API responses.
  • EF Core checkpoint reviews migrations before apply to catch unintended table or column drops.
  • Progressive reference files load for modern C#, ASP.NET Core, EF, Blazor, and performance tuning.

Csharp Developer by the numbers

  • 3,542 all-time installs (skills.sh)
  • +89 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #5 of 154 .NET & C# skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

csharp-developer capabilities & compatibility

Capabilities
asp.net core minimal and controller endpoint imp · entity framework core models, migrations, and qu · blazor server and wasm component scaffolding · cqrs patterns with mediatr and result based erro · performance guidance with span, memory, and asyn
Use cases
api development · database · testing
From the docs

What csharp-developer says it does

Write xUnit tests with TestServer; verify 80%+ coverage
SKILL.md
npx skills add https://github.com/jeffallan/claude-skills --skill csharp-developer

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3.5k
repo stars10.8k
Security audit3 / 3 scanners passed
Last updatedMay 20, 2026
Repositoryjeffallan/claude-skills

How do I implement modern C# backend APIs and data layers with correct async, DI, DTO mapping, and EF Core migration safety?

Implement ASP.NET Core APIs, EF Core data access, Blazor apps, CQRS with MediatR, and async patterns on .NET 8+ with nullable types and DI.

Who is it for?

Developers building ASP.NET Core APIs, EF Core backends, or Blazor apps who want enforced .NET 8 best practices.

Skip if: Skip for non-.NET stacks or when you only need DevOps deployment scripts without C# implementation guidance.

When should I use this skill?

User mentions C#, .NET, ASP.NET Core, Blazor, Entity Framework, Minimal API, MAUI, or SignalR implementation.

What you get

Production-oriented endpoints, services, models, configuration, and xUnit tests following nullable, async, and Result-pattern conventions.

  • domain models and DTOs
  • API endpoints
  • repository and service implementations

Files

SKILL.mdMarkdownGitHub ↗

C# Developer

Senior C# developer with mastery of .NET 8+ and Microsoft ecosystem. Specializes in high-performance web APIs, cloud-native solutions, and modern C# language features.

When to Use This Skill

  • Building ASP.NET Core APIs (Minimal or Controller-based)
  • Implementing Entity Framework Core data access
  • Creating Blazor web applications (Server/WASM)
  • Optimizing .NET performance with Span<T>, Memory<T>
  • Implementing CQRS with MediatR
  • Setting up authentication/authorization

Core Workflow

1. Analyze solution — Review .csproj files, NuGet packages, architecture 2. Design models — Create domain models, DTOs, validation 3. Implement — Write endpoints, repositories, services with DI 4. Optimize — Apply async patterns, caching, performance tuning 5. Test — Write xUnit tests with TestServer; verify 80%+ coverage

EF Core checkpoint (after step 3): Run dotnet ef migrations add <Name> and review the generated migration file before applying. Confirm no unintended table/column drops. Roll back with dotnet ef migrations remove if needed.

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
Modern C#references/modern-csharp.mdRecords, pattern matching, nullable types
ASP.NET Corereferences/aspnet-core.mdMinimal APIs, middleware, DI, routing
Entity Frameworkreferences/entity-framework.mdEF Core, migrations, query optimization
Blazorreferences/blazor.mdComponents, state management, interop
Performancereferences/performance.mdSpan<T>, async, memory optimization, AOT

Constraints

MUST DO

  • Enable nullable reference types in all projects
  • Use file-scoped namespaces and primary constructors (C# 12)
  • Apply async/await for all I/O operations — always accept and forward CancellationToken:
  // Correct
  app.MapGet("/items/{id}", async (int id, IItemService svc, CancellationToken ct) =>
      await svc.GetByIdAsync(id, ct) is { } item ? Results.Ok(item) : Results.NotFound());
  • Use dependency injection for all services
  • Include XML documentation for public APIs
  • Implement proper error handling with Result pattern:
  public readonly record struct Result<T>(T? Value, string? Error, bool IsSuccess)
  {
      public static Result<T> Ok(T value) => new(value, null, true);
      public static Result<T> Fail(string error) => new(default, error, false);
  }
  • Use strongly-typed configuration with IOptions<T>

MUST NOT DO

  • Use blocking calls (.Result, .Wait()) in async code:
  // Wrong — blocks thread and risks deadlock
  var data = service.GetDataAsync().Result;

  // Correct
  var data = await service.GetDataAsync(ct);
  • Disable nullable warnings without proper justification
  • Skip cancellation token support in async methods
  • Expose EF Core entities directly in API responses — always map to DTOs
  • Use string-based configuration keys
  • Skip input validation
  • Ignore code analysis warnings

Output Templates

When implementing .NET features, provide: 1. Domain models and DTOs 2. API endpoints (Minimal API or controllers) 3. Repository/service implementations 4. Configuration setup (Program.cs, appsettings.json) 5. Brief explanation of architectural decisions

Example: Minimal API Endpoint

// Program.cs (file-scoped, .NET 8 minimal API)
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddScoped<IProductService, ProductService>();

var app = builder.Build();

app.MapGet("/products/{id:int}", async (
    int id,
    IProductService service,
    CancellationToken ct) =>
{
    var result = await service.GetByIdAsync(id, ct);
    return result.IsSuccess ? Results.Ok(result.Value) : Results.NotFound(result.Error);
})
.WithName("GetProduct")
.Produces<ProductDto>()
.ProducesProblem(404);

app.Run();

Knowledge Reference

C# 12, .NET 8, ASP.NET Core, Minimal APIs, Blazor (Server/WASM), Entity Framework Core, MediatR, xUnit, Moq, Benchmark.NET, SignalR, gRPC, Azure SDK, Polly, FluentValidation, Serilog

Documentation

Related skills

How it compares

Pairs with api-designer, database-optimizer, and devops-engineer related skills from the same author catalog.

FAQ

Does it allow blocking async calls?

No. .Result and .Wait() are forbidden; all I/O must use async/await with CancellationToken forwarded.

Can EF entities be returned from APIs?

No. Responses must map to DTOs; exposing EF Core entities directly is explicitly disallowed.

What happens after EF migrations are generated?

Review the migration file for unintended drops before applying; roll back with dotnet ef migrations remove if needed.

Is Csharp Developer safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

.NET & C#backend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.