AI

Four Claude skills teach .NET 11: C# 15 unions, ASP.NET Core 11, EF Core 11

Anton DevTips Anton Martyniuk
AI

Models trained before .NET 11 shipped keep giving wrong answers about C# 15 and the frameworks. Anton Martyniuk wrote four knowledge skills for the missing parts and measured the difference with and without them.

Key points

  • Four skills: csharp-15-unions, csharp-15-features, aspnetcore-11 and efcore-11, each shipping samples that compile on .NET 11.
  • Each skill separates facts, rules, gotchas and guards so the model does not invent APIs that do not exist.
  • The ASP.NET Core 11 skill covers AsyncValidationAttribute and IAsyncValidatableObject, where the sync IsValid stays abstract.
  • The EF Core 11 skill covers FullJoin, MaxByAsync, vector and full-text search, plus the EF9105 and EF9106 warnings.
  • Microsoft's dotnet11 plugin only covers Process APIs and System.Text.Json naming policies; its migration skill stops at Preview 3.
  • In the test, four tasks went from 99 turns and $2.15 to 44 turns and $1.20; the C# 15 tasks were a tie.

Why it matters

Every November the gap between a model's training data and the framework a codebase targets reopens, and the teams that adopt .NET 11 early are the ones who feel it. Storing skills in the repository turns that into a maintenance duty: if nobody revises them when the next preview lands, they teach the model stale facts.

A pragmatic split is to follow Microsoft's official plugins and write your own only for the gaps, where the guards matter as much as the facts. Keeping the skill text reviewed like code, and making the agent state the target framework before it generates anything, is what actually holds up.

Real-world use

  • A minimal API endpoint that checks order-number uniqueness against the database with AsyncValidationAttribute.
  • A codebase replacing its OneOf/ErrorOr dependency by making the existing Result<T> type union-aware.
  • EF Core 11 reporting queries that need a full outer join and the top customer by order total.

This summary was generated by the agent from the original post on Anton DevTips. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message