/backend-csharp:csharp-codingfrom backend-csharp
Use when writing or reviewing C# code — enforces idiomatic C# patterns including naming conventions, async/await, nullable reference types, LINQ, pattern matching, error handling, and dependency injection
Ships in backend-csharp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Element | Convention | Example |
|---|---|---|
| Namespace | PascalCase, match folder | YourOrg.Payments.Domain |
| Class/Record | PascalCase | OrderService, PaymentRequest |
| Interface | IPascalCase | IOrderRepository |
| Method | PascalCase | GetOrderByIdAsync |
| Property | PascalCase | TotalAmount |
| Parameter/Local | camelCase | orderId, paymentResult |
| Private field | _camelCase | _orderRepository |
| Constant | PascalCase | MaxRetryCount |
| Async method | Suffix with Async | ProcessPaymentAsync |
async/await for I/O-bound operations — never .Result or .Wait()Task<T> or ValueTask<T> from async methodsConfigureAwait(false) in library code, omit in application codeValueTask<T> for hot paths that often complete synchronouslyCancellationToken parameters on all async public APIs// Good
public async Task<Order> GetOrderAsync(int id, CancellationToken ct = default)
{
return await _repository.FindByIdAsync(id, ct);
}
// Bad — blocks thread
public Order GetOrder(int id)
{
return _repository.FindByIdAsync(id).Result;
}
<Nullable>enable</Nullable> in all projects? for nullable references: string? nameorder?.Customer?.Namename ?? "Unknown"! unless absolutely necessary (document why)is patterns for type checks: if (result is SuccessResult success)switch expressions for multi-branch logicas + null checkvar message = result switch
{
SuccessResult s => $"Order {s.OrderId} created",
ValidationError e => $"Validation failed: {e.Message}",
NotFoundError => "Order not found",
_ => "Unknown error"
};
for loops.ToList(), .ToArray()Result<T> pattern in application layer — never throw for expected failurescatch (Exception)ExceptionFilter middleware for unhandled exceptions in ASP.NET Core_logger.LogError(ex, "Failed to process order {OrderId}", orderId)Program.cs or dedicated ServiceCollectionExtensionsServiceLocator patternIOptions<T> for configurationrecord for DTOs, value objects, and request/response typesinit properties for immutable objectsIReadOnlyList<T>) in public APIsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gagandeepp/software-agent-teams --plugin backend-csharp7 skills in this plugin
/csharp-ef-coreUse when configuring Entity Framework Core — DbContext setup, entity configurations, relationships, migrations, queries, and repository implementations. Triggers when adding a new entity, configuring mappings, writing LINQ queries, or managing migrations in a C# .NET project./csharp-frameworksUse when implementing ASP.NET Core features — enforces Clean Architecture with CQRS, MediatR command/query handlers, FluentValidation, minimal APIs vs controllers, middleware pipeline, and IdentityServer4 JWT auth patterns/csharp-layered-architectureUse when designing or implementing a 3-layer (Presentation / Business Logic / Data Access) architecture in a C# .NET project. Triggers when scaffolding a new project, adding layers, defining service interfaces, or reviewing layer boundary violations./csharp-mvcUse when implementing ASP.NET Core MVC controllers, actions, views, model binding, filters, and routing. Triggers when creating or modifying controller classes, action methods, view models, or MVC middleware in a C# project./csharp-project-structureUse when scaffolding or reviewing C# project layout — solution and project file conventions, Clean Architecture folder structure, layered architecture, and NuGet package organization/csharp-testingUse when writing tests for C# code — xUnit or NUnit with FluentAssertions, Moq, AutoFixture, and Testcontainers patterns including test naming, arrangement, and coverage conventions