AI skills for C# / .NET
AI Coding Skills for C# / .NET
Browse the best AI coding skills for C# / .NET in 2026, ASP.NET Core 9 minimal APIs, EF Core schemas, xUnit + Moq tests, and Aspire orchestration. Works with every major AI coding tool.
Short answer
The best AI coding skills for C# are skills-hub's `code-review`, `unit-test` (xUnit + Moq + FluentAssertions), `api-scaffold` (ASP.NET Core 9 minimal APIs / controllers), `db-schema` (EF Core), `secure`, and `dependency-scan` (dotnet list package --vulnerable). All portable across Claude Code, Cursor, Codex CLI, Copilot, and Cline.
C# in 2026 means .NET 9, ASP.NET Core minimal APIs, EF Core with compiled queries, and Aspire for distributed-app orchestration. The skills below detect your .NET stack and emit idiomatic code with proper records, primary constructors, pattern matching switch expressions, file-scoped namespaces, and nullable reference types enabled.
Top skills for C# / .NET
Frequently asked questions
Do AI skills use minimal APIs or controllers?
Modern skills check the project shape, Program.cs with builder.Services and app.MapXxx routes signals minimal API style; ControllerBase subclasses signal controller style. The code-review skill respects the existing convention.
Can AI generate EF Core migrations?
Yes, the db-schema skill emits DbContext + entity configs, then runs dotnet ef migrations add with proper migration names. It also catches common gotchas like change-tracker churn and N+1 patterns.
What's the best AI tool for C#?
Visual Studio's official AI assist is still the deepest for big .NET solutions. Cursor with C# Dev Kit and Claude Code with the JetBrains Rider plugin are both strong second options.
Do AI skills handle Aspire?
Yes, the api-scaffold skill detects .NET Aspire and emits proper AppHost projects with service references, plus matching ServiceDefaults for OpenTelemetry + health checks.