{"data":{"slug":"discovered-e96a2d8e4bafde6ed66e02aa5f98d1b5c2af7a12246ca074","title":"C# Developer (ASP.NET Core, EF Core, Blazor)","summary":"Builds C# applications with .NET 10+, ASP.NET Core APIs, or Blazor web apps. Implements REST APIs using minimal or controller-based routing, configures database access with Entity Framework Core, and scaffolds Blazor components with state management.","url":"https:\/\/skillshunter.net\/skills\/discovered-e96a2d8e4bafde6ed66e02aa5f98d1b5c2af7a12246ca074","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-e96a2d8e4bafde6ed66e02aa5f98d1b5c2af7a12246ca074","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-e96a2d8e4bafde6ed66e02aa5f98d1b5c2af7a12246ca074.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-e96a2d8e4bafde6ed66e02aa5f98d1b5c2af7a12246ca074\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Enable nullable reference types in all projects. Use file-scoped namespaces and primary constructors (C# 12+). Always accept and forward `CancellationToken` in async I\/O operations. Use strongly-typed configuration with `IOptions<T>`. Implement proper error handling with the Result pattern.","instructions":"---\nname: csharp-developer\ndescription: \"Use when building C# applications with .NET 10+, 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, and scaffolds Blazor components with state management. Invoke for C#, .NET, ASP.NET Core, Blazor, Entity Framework, EF Core, Minimal API, MAUI, SignalR.\"\nlicense: MIT\nmetadata:\n  author: https:\/\/github.com\/Jeffallan\n  company: https:\/\/synergetic.solutions\n  version: \"1.1.0\"\n  domain: language\n  triggers: C#, .NET, ASP.NET Core, Blazor, Entity Framework, EF Core, Minimal API, MAUI, SignalR\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: api-designer, database-optimizer, devops-engineer, dotnet-core-expert\n---\n\n# C# Developer\n\nSenior C# developer with mastery of .NET 10+ and Microsoft ecosystem. Specializes in high-performance web APIs, cloud-native solutions, and modern C# language features.\n\n## When to Use This Skill\n\n- Building ASP.NET Core APIs (Minimal or Controller-based)\n- Implementing Entity Framework Core data access\n- Creating Blazor web applications (Server\/WASM)\n- Optimizing .NET performance with Span<T>, Memory<T>\n- Setting up authentication\/authorization\n\n## Core Workflow\n\n1. **Analyze solution** \u2014 Review .csproj files, NuGet packages, architecture\n2. **Design models** \u2014 Create domain models, DTOs, validation\n3. **Implement** \u2014 Write endpoints, repositories, services with DI\n4. **Optimize** \u2014 Apply async patterns, caching, performance tuning\n5. **Test** \u2014 Write xUnit tests with TestServer; verify 80%+ coverage\n\n> **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.\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Modern C# | `references\/modern-csharp.md` | Records, pattern matching, nullable types |\n| ASP.NET Core | `references\/aspnet-core.md` | Minimal APIs, middleware, DI, routing |\n| Entity Framework | `references\/entity-framework.md` | EF Core, migrations, query optimization |\n| Blazor | `references\/blazor.md` | Components, state management, interop |\n| Performance | `references\/performance.md` | Span<T>, async, memory optimization, AOT |\n\n## Constraints\n\n### MUST DO\n- Enable nullable reference types in all projects\n- Use file-scoped namespaces and primary constructors (C# 12+)\n- Apply async\/await for all I\/O operations \u2014 always accept and forward `CancellationToken`:\n  ```csharp\n  \/\/ Correct\n  app.MapGet(\"\/items\/{id}\", async (int id, IItemService svc, CancellationToken ct) =>\n      await svc.GetByIdAsync(id, ct) is { } item ? Results.Ok(item) : Results.NotFound());\n  ```\n- Use dependency injection for all services\n- Include XML documentation for public APIs\n- Implement proper error handling with Result pattern:\n  ```csharp\n  public readonly record struct Result<T>(T? Value, string? Error, bool IsSuccess)\n  {\n      public static Result<T> Ok(T value) => new(value, null, true);\n      public static Result<T> Fail(string error) => new(default, error, false);\n  }\n  ```\n- Use strongly-typed configuration with `IOptions<T>`\n\n### MUST NOT DO\n- Use blocking calls (`.Result`, `.Wait()`) in async code:\n  ```csharp\n  \/\/ Wrong \u2014 blocks thread and risks deadlock\n  var data = service.GetDataAsync().Result;\n\n  \/\/ Correct\n  var data = await service.GetDataAsync(ct);\n  ```\n- Disable nullable warnings without proper justification\n- Skip cancellation token support in async methods\n- Expose EF Core entities directly in API responses \u2014 always map to DTOs\n- Use string-based configuration keys\n- Skip input validation\n- Ignore code analysis warnings\n\n## Output Templates\n\nWhen implementing .NET features, provide:\n1. Domain models and DTOs\n2. API endpoints (Minimal API or controllers)\n3. Repository\/service implementations\n4. Configuration setup (Program.cs, appsettings.json)\n5. Brief explanation of architectural decisions\n\n## Example: Minimal API Endpoint\n\n```csharp\n\/\/ Program.cs (file-scoped, .NET 10 minimal API)\nvar builder = WebApplication.CreateBuilder(args);\nbuilder.Services.AddScoped<IProductService, ProductService>();\n\nvar app = builder.Build();\n\napp.MapGet(\"\/products\/{id:int}\", async (\n    int id,\n    IProductService service,\n    CancellationToken ct) =>\n{\n    var result = await service.GetByIdAsync(id, ct);\n    return result.IsSuccess ? Results.Ok(result.Value) : Results.NotFound(result.Error);\n})\n.WithName(\"GetProduct\")\n.Produces<ProductDto>()\n.ProducesProblem(404);\n\napp.Run();\n```\n\n## Knowledge Reference\n\nC# 14, .NET 10, ASP.NET Core, Minimal APIs, Blazor (Server\/WASM), Entity Framework Core, xUnit, Moq, Benchmark.NET, SignalR, gRPC, Azure SDK, Polly, FluentValidation, Serilog\n\nMaintained by [@jeffallan](https:\/\/github.com\/jeffallan), Principal Consultant at [Synergetic Solutions](https:\/\/synergetic.solutions)\n\n[Documentation](https:\/\/jeffallan.github.io\/claude-skills\/skills\/language\/csharp-developer\/)\n","use_cases":["Building ASP.NET Core APIs with Minimal or Controller-based routing","Implementing Entity Framework Core data access","Creating Blazor web applications (Server\/WASM)","Optimizing .NET performance with Span<T>, Memory<T>","Setting up authentication\/authorization"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Jeffallan\/claude-skills\/blob\/a8be463010e2ca23afe00ea00773aea7128e8971\/plugin\/skills\/csharp-developer\/SKILL.md","source_commit":"a8be463010e2ca23afe00ea00773aea7128e8971","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:46:48.000000Z","updated_at":"2026-11-29T10:53:15.000000Z","seo_title":"C# Developer for ASP.NET Core, EF Core, and Blazor","seo_description":"Build modern C# applications with .NET 10+, ASP.NET Core APIs, Blazor web apps, and Entity Framework Core. Implements REST APIs, database access, and state management.","seo_keywords":["C#",".NET","ASP.NET Core","Blazor","Entity Framework","EF Core","Minimal API","MAUI"]}}