AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
LanguagesVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

C# & .NET best practices

Created by CodeCraft LLC

Write, advise on, and review C# and .NET code

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.6.4 · updated 2026-12-01Report copyright infringement

Description

Write, advise on, and review C# and .NET code — project/SDK and language-version detection, nullable reference types, async/await and cancellation, IDisposable/await using, records and pattern matching, LINQ, dependency injection, logging, configuration/options, exceptions, EF Core data access, ASP.NET Core APIs, security (SQL injection, secrets, deserialization), analyzers and `dotnet format`, and testing. Use whenever the project has .cs/.csproj/.sln/.slnx files or the user mentions C#, .NET, ASP.NET Core, EF Core, Blazor, MAUI, Unity scripting, NuGet, or asks to review or modernize C# code.

#languages#csharp

Included with all-access

$9.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.6.4Dec 1, 2026Latest

Changed

  • README **Sources**: links now point at the publisher's openly licensed GitHub copy of the same docs (CC BY 4.0, Apache 2.0, MIT or the W3C Software and Document License), so the skill rests on the open license rather than the website's terms of use.
v1.6.3Dec 1, 2026

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.6.2Nov 30, 2026

Changed

  • Deep-dive section made on-demand (standard statement, open/skip triggers, checklist last).
v1.6.1Nov 29, 2026

Changed

  • Added a contents list to reference files over 100 lines (async-await.md, nullable-reference-types.md, dependency-injection.md, linq.md, exceptions-and-resilience.md, solid-design-review.md), so a partial read still shows every section.
v1.6.0Nov 29, 2026

Changed

  • .NET 8/9 out of support since 2026-11-10 (Blocker in reviews); .NET 11 released, supported to 2028-11-14. Logged .NET follow-up applied.

Added

  • C# 15 (default for net11.0): union types, closed hierarchies, collection-expression with(...) arguments, extension indexers, labeled break/continue, and the upgrade breaks (union/closed/with identifiers, span collection-expression safe context). C# 14 list completed (null-conditional assignment, implicit span conversions).
v1.5.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.4.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.3.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.2.0Oct 18, 2026

Added

  • references/nullable-reference-types.md: [MemberNotNullWhen] for result types, [DoesNotReturnIf] guard helpers, [NotNullIfNotNull], and the built-in ThrowIfNull / ThrowIfNullOrWhiteSpace guards.

Fixed

  • references/dependency-injection.md: the manual-scope example now uses CreateAsyncScope with await using; a synchronous CreateScope throws on dispose when a scoped service is only IAsyncDisposable.
v1.1.0Oct 16, 2026

Added

  • references/async-await.md: an async/await deep dive (deadlocks, ConfigureAwait, cancellation, throttling, async streams) - merged from the former csharp-async-await skill.
  • references/dependency-injection.md: a dependency-injection deep dive (lifetimes, captive dependencies, keyed services, options validation, test overrides) - merged from the former csharp-dependency-injection skill.
  • references/exceptions-and-resilience.md: exceptions and resilience (layering, filters, ProblemDetails, Polly v8 pipelines) - merged from the former csharp-exception-handling skill.
  • references/linq.md: a LINQ deep dive (deferred execution, operators, EF translation, projections, compiled queries) - merged from the former csharp-linq skill.
  • references/nullable-reference-types.md: a nullable-reference-types deep dive (warnings, attributes, generics, incremental migration) - merged from the former csharp-nullable skill.
  • references/solid-design-review.md: a SOLID design-review reference with a smell table - merged from the former csharp-solid-principles skill.
v1.0.2Oct 3, 2026

Changed

  • Checked against the official documentation (October 2026).
  • Added support dates: .NET 8 and .NET 9 end of support November 10, 2026; .NET 10 LTS until November 14, 2028; .NET 11 ships November 2026.
v1.0.1Oct 3, 2026

Changed

  • Renamed the title to describe what the skill does with the product, so it doesn't read as an official or endorsed edition.
  • Added a trademark notice to the README.
v1.0.0Oct 2, 2026

Added

  • First release.