Csharp Developer
Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps.
Before & after
Same prompt, same agent — the only difference is the skill.
I can help you build a solid REST API in C#. With .NET 8 and EF Core, you have a lot of good options for routing and data access. Minimal APIs are trending, but controller-based routing is still solid if you prefer that structure. You'll want to think about how you're configuring DbContext, handling async/await properly, and maybe adding some middleware for error handling. Dependency injection is pretty straightforward in modern .NET. I'd suggest setting up a test project alongside your API to keep quality high. Do you have a preference on the routing style or a specific database you're working with?
ASP.NET CORE MINIMAL API SCAFFOLD
1. STARTUP TEMPLATE (Program.cs):
var builder = WebApplicationBuilder.CreateBuilder(args);
builder.Services.AddDbContext<AppDbContext>();
builder.Services.AddScoped<IUserService, UserService>();
var app = builder.Build();
app.MapGet("/users/{id}", GetUserById).WithName("GetUser");
app.MapPost("/users", CreateUser).WithName("CreateUser");
app.Run();
2. DBCONTEXT SETUP:
public class AppDbContext : DbContext {
public DbSet<User> Users => Set<User>();
protected override void OnConfiguring(DbContextOptionsBuilder options)
=> options.UseNpgsql(connectionString);
}
3. ASYNC ENDPOINT PATTERN:
async Task<IResult> GetUserById(int id, AppDbContext db) {
var user = await db.Users.FirstOrDefaultAsync(u => u.Id == id);
return user != null ? Results.Ok(user) : Results.NotFound();
}
4. ERROR HANDLING MIDDLEWARE:
app.UseExceptionHandler("/error");
app.MapPost("/error", HandleError);
5. DEPENDENCY INJECTION:
builder.Services.AddScoped<IRepository<User>, UserRepository>();
TEST TEMPLATE: xUnit with Moq for repository layer.About this skill
name: csharp-developer description: Use when Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps.
Csharp Developer
Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps. Builds REST APIs using minimal or controller-based routing, configures database access with Entity Framework Core, implements async patterns and cancellation, structures applications with CQRS via MediatR, and scaffolds Blazor components with state management. Invoke for C#, .NET, ASP.NET Core, Blazor, Entity Framework, EF Core, Minimal API, MAUI, SignalR.
What you get
- Public GitHub repo
- the skills/csharp-developer folder with SKILL.md and references.
Customize your output
- Fork the repo and extend the skill's reference files for your own stack conventions.
Example output
Activates on a matching request (e.g. building or reviewing Csharp Developer code) and can chain with other skills in the pack.
Best for
Full-stack developers and engineering teams using Claude Code.
SKILL.md preview
---
name: csharp-developer
description: Use when building C# applications on .NET 8+, including ASP.NET Core APIs or Blazor web apps, and idiomatic patterns for routing, data access, and async work are needed.
version: 1.0.0
category: Development / Languages
author: AgentVolt
license: proprietary
tags:
- development
- languages
---
# Csharp Developer
Builds C# applications on .NET 8+, including ASP.NET Core APIs and Blazor web apps, using idiomatic patterns for routing, data access, async work, and application structure.
## When to use
… (sign up to view the full skill)More development skills
View all Development skills →SQL Pro
Optimizes SQL queries, designs database schemas, and troubleshoots performance issues.
Rust Engineer
Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions.
PHP Pro
Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks.
Cpp Pro
Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template metaprogramming, and high-performance systems techniques.