Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build ASP.NET Core 8+ backend services with EF Core, auth, background jobs, and production API patterns.
.claude/skills/dotnet-backend/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | — | — |
| case-25 | ✗→✗ | = Same ✗ | — | — |
| case-17 | ✗→✗ | = Same ✗ | — | — |
| case-11 | ✗→✗ | = Same ✗ | — | — |
| case-24 | ✗→✗ | = Same ✗ | — | — |
You are an expert .NET/C# backend developer with 8+ years of experience building enterprise-grade APIs and services.
Use this skill when the user asks to:
csharpusing Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); // Services builder.Services.AddDbContext<AppDbContext>(options => options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection"))); builder.Services.AddAuthentication().AddJwtBearer(); builder.Services.AddAuthorization(); var app = builder.Build(); // Create user endpoint app.MapPost("/api/users", async (CreateUserRequest request, AppDbContext db) => { // Validate if (string.IsNullOrEmpty(request.Email)) return Results.BadRequest("Email is required"); // Hash password var hashedPassword = BCrypt.Net.BCrypt.HashPassword(request.Password); // Create user var user = new User { Email = request.Email, PasswordHash = hashedPassword, Name = request.Name }; db.Users.Add(user); await db.SaveChangesAsync(); return Results.Created($"/api/users/{user.Id}", new UserResponse(user)); }) .WithName("CreateUser") .WithOpenApi(); app.Run(); record CreateUserRequest(string Email, string Password, string Name); record UserResponse(int Id, string Email, string Name);
csharp[ApiController] [Route("api/[controller]")] public class UsersController : ControllerBase { private readonly AppDbContext _db; private readonly ILogger<UsersController> _logger; public UsersController(AppDbContext db, ILogger<UsersController> logger) { _db = db; _logger = logger; } [HttpGet] public async Task<ActionResult<List<UserDto>>> GetUsers() { var users = await _db.Users .AsNoTracking() .Select(u => new UserDto(u.Id, u.Email, u.Name)) .ToListAsync(); return Ok(users); } [HttpPost] public async Task<ActionResult<UserDto>> CreateUser(CreateUserDto dto) { var user = new User { Email = dto.Email, PasswordHash = BCrypt.Net.BCrypt.HashPassword(dto.Password), Name = dto.Name }; _db.Users.Add(user); await _db.SaveChangesAsync(); return CreatedAtAction(nameof(GetUser), new { id = user.Id }, new UserDto(user)); } }
csharpusing Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; public class TokenService { private readonly IConfiguration _config; public TokenService(IConfiguration config) => _config = config; public string GenerateToken(User user) { var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_config["Jwt:Key"]!)); var credentials = new SigningCredentials(key, SecurityAlgorithms.HmacSha256); var claims = new[] { new Claim(ClaimTypes.NameIdentifier, user.Id.ToString()), new Claim(ClaimTypes.Email, user.Email), new Claim(ClaimTypes.Name, user.Name) }; var token = new JwtSecurityToken( issuer: _config["Jwt:Issuer"], audience: _config["Jwt:Audience"], claims: claims, expires: DateTime.UtcNow.AddHours(1), signingCredentials: credentials ); return new JwtSecurityTokenHandler().WriteToken(token); } }
csharppublic class EmailSenderService : BackgroundService { private readonly ILogger<EmailSenderService> _logger; private readonly IServiceProvider _services; public EmailSenderService(ILogger<EmailSenderService> logger, IServiceProvider services) { _logger = logger; _services = services; } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { while (!stoppingToken.IsCancellationRequested) { using var scope = _services.CreateScope(); var db = scope.ServiceProvider.GetRequiredService<AppDbContext>(); var pendingEmails = await db.PendingEmails .Where(e => !e.Sent) .Take(10) .ToListAsync(stoppingToken); foreach (var email in pendingEmails) { await SendEmailAsync(email); email.Sent = true; } await db.SaveChangesAsync(stoppingToken); await Task.Delay(TimeSpan.FromMinutes(1), stoppingToken); } } private async Task SendEmailAsync(PendingEmail email) { // Send email logic _logger.LogInformation("Sending email to {Email}", email.To); } }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-25 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-24 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-23 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of 0 percentage points is the difference between those two pass rates over the 25 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.