Csharp Developer

Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps.

Development / Languagesdevelopmentlanguages
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptBuild a REST API with Entity Framework Core and async patterns.
Beforegeneric AI agent
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?
Afterwith Csharp Developer
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

SKILL.md
---
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)
Sign up to view, copy, and install the full skill

More development skills

View all Development skills →