In short.
Modern C# Coding Standards is an assistant skill for C# developers that offers concrete coding conventions, but constructor conflicts and inconsistent error-handling advice require review before adoption. Its five Markdown files cover records, value objects, pattern matching, cancellation, memory buffers, composition and explicit mappings. It is useful as adaptable team guidance. Compilation, assistant activation, runtime behavior and performance have not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete skills/csharp-coding-standards folder at commit 5ca5db8cf25566f19d2a5dc53204d4af22b23a0d: SKILL.md, anti-patterns-and-reflection.md, composition-and-error-handling.md, performance-and-api-design.md and value-objects-and-patterns.md, together with the supplied root LICENSE notice. Other repository content and external linked pages are excluded. Installation, assistant activation, compilation, runtime behavior, tests and performance were not executed or assessed.
The overview
Identity
The resource is the csharp-coding-standards folder in Aaronontheweb/dotnet-skills. Its entry file names the skill modern-csharp-coding-standards and titles it Modern C# Coding Standards. It contains assistant instructions and illustrative C# code, rather than a compiled library or standalone coding tool.
The original folder address is [https://github.com/Aaronontheweb/dotnet-skills/tree/master/skills/csharp-coding-standards]. The supplied source is pinned to [https://github.com/Aaronontheweb/dotnet-skills/tree/5ca5db8cf25566f19d2a5dc53204d4af22b23a0d/skills/csharp-coding-standards].
Assessment
Its strongest feature is the connection between conventions and concrete examples: explicit object mappings, cancellation passed through service calls, typed identifiers and caller-provided buffers. This gives developers specific patterns to discuss and adapt.
Adoption needs technical review. Some positional record structs contain conflicting constructor declarations, and the recommendation for domain-specific result types conflicts with generic result examples elsewhere. Performance claims lack supporting measurements.
Users
The stated audience includes developers writing or refactoring C#, designing public APIs, modeling business concepts and working on asynchronous or buffer-heavy code. Experienced developers can use it to make assistant output follow an agreed set of conventions.
Beginners receive examples, but the material assumes familiarity with interfaces, generics, dependency injection and asynchronous methods. Teams with established mapping libraries, inheritance patterns or result types should resolve conflicts with their existing conventions before applying its categorical rules.
Capabilities
The instructions cover records, nullable reference types, pattern matching, explicit conversions and value objects that wrap identifiers or validated values. Supporting examples include money, quantities, phone numbers, absolute web addresses and configuration binding through TypeConverter.
The resource also provides guidance on cancellation, asynchronous streams, Span<T>, Memory<T>, pooled arrays, collection interfaces, composition, domain-specific failures and explicit object mapping. Testing examples illustrate record-based builders and input variations; they do not establish a passing test suite for the supplied snippets.
Using it
Requirements
The entry description emphasizes C# 12+ features. Individual examples have additional requirements: the private-member access section specifies .NET 8+ for UnsafeAccessorAttribute, while the SkipLocalsInit example explicitly requires AllowUnsafeBlocks to be enabled. An exact supported SDK or framework matrix is not supplied.
Applying the examples requires a compatible C# project and the application types or packages referenced by each snippet. Several snippets omit those definitions. Using the files as an assistant skill also requires a host that understands their format; supported hosts and minimum versions are unknown.
Mechanism
SKILL.md supplies the main conventions and links to four sibling reference files for detailed examples. An assistant would use that text as coding guidance when the host makes it available. No executable analyzer or build integration is included in these five files.
The metadata declares user-invocable: false. The files do not explain how a particular host interprets that flag, discovers the skill or decides when to activate it. Instruction availability does not establish that an assistant will consistently follow every rule.
Setup
Obtain the pinned folder and keep SKILL.md alongside anti-patterns-and-reflection.md, composition-and-error-handling.md, performance-and-api-design.md and value-objects-and-patterns.md so its relative references remain usable. Retain the accompanying MIT notice when copying or redistributing the material.
An installation command, assistant-specific destination and activation procedure are not documented in the supplied files. Consult the chosen host's loading requirements, then align the guidance with the project's language version and coding conventions. Installation and activation are unassessed.
Example
The payment-service example shows composition through a CreditCardProcessor that receives an IPaymentValidator and an ICreditCardGateway. ProcessAsync asks the validator to check the amount, returns a failure when validation fails and otherwise passes the amount and CancellationToken to the gateway.
This illustrates separating validation from payment processing while preserving cancellation through asynchronous calls. The surrounding interfaces and result definitions are incomplete, so it is an illustrative design rather than a self-contained payment application. Its behavior has not been executed or verified.
Assessment & evidence
Limitations
The positional OrderId, Money and Quantity examples also declare constructors with the same parameter types as their primary constructors. This presents a source-level constructor-signature conflict that needs correction before reuse. No compiler result is available.
Error-handling guidance is inconsistent. The composition reference asks for operation-specific result records and rejects a generic Result<T>, while SKILL.md and the API reference use Result<Order, OrderError>. Cancellation defaults are also prescribed more consistently in prose than in the example signatures.
Some claimed guarantees are too broad. IReadOnlyList<T> restricts mutation through an interface without making its backing collection immutable. Default struct values can bypass validating constructors, and value types are not guaranteed to reside on the stack. Several Span-based examples still allocate output strings.
The reflection reference gives a 100–1000x slowdown range and describes UnsafeAccessor as having zero overhead, without supplied benchmarks. Those figures and any application-level performance gains remain unverified. SkipLocalsInit also requires every subsequently read buffer element to have been written first.
Reasoning
The guidance has understandable mechanisms behind it. Explicit mappings expose transformations to readers and the compiler. Distinct identifier types make accidental mixing harder. Cancellation parameters give callers a way to request that asynchronous work stop. Composition places dependencies and responsibilities in separate types.
These mechanisms explain potential usefulness without proving fewer defects or faster applications. Rules such as always using structs for value objects or avoiding abstract base classes require judgment about data size, invariants and framework requirements. The composition reference itself allows inheritance for framework and library integration.
Alternatives
For language and API reference material, SKILL.md points to Microsoft's C# documentation [https://learn.microsoft.com/en-us/dotnet/csharp/] and memory guidance [https://learn.microsoft.com/en-us/dotnet/standard/memory-and-spans/]. These are reference alternatives to adopting this particular set of conventions; their linked contents are outside the supplied evidence.
A project-specific coding guide is another approach when a team needs different mapping, inheritance or error-handling policies. The supplied files do not establish a comparative evaluation against other assistant skills.
Evidence
The available source comprises SKILL.md and all four referenced Markdown files in skills/csharp-coding-standards, plus the repository's root LICENSE. Together they establish the written conventions, examples, reference structure, metadata and supplied reuse terms.
The material does not include compilation receipts, measured benchmarks, observed assistant sessions or a supported-host compatibility matrix. Embedded test examples establish suggested testing patterns, not passing results. Broader repository documentation and external linked articles are outside this evidence.
Access & freshness
Costs
The supplied files specify no resource price, subscription or usage charge. Any assistant or model charges, integration effort and ongoing maintenance costs depend on the chosen environment; their amounts are unknown. The MIT permission does not establish those operating costs.
Rights
The supplied root LICENSE is the MIT License, with copyright attributed to Aaron Stannard in 2025. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The license disclaims warranties and liability. Redistribution of the skill files should retain that notice. These permissions do not establish the correctness or suitability of the examples for a particular application.
Freshness
The supplied snapshot was captured on 2026-11-15 at 23:54:15.805 UTC from commit 5ca5db8cf25566f19d2a5dc53204d4af22b23a0d. These findings apply to that revision; subsequent changes or fixes on master are unknown.
References to C# 12+ and .NET 8+ describe intended features, rather than a verified compatibility range. A release version and maintenance cadence are not established by the supplied files.
Actions
Before adoption, correct the positional-record constructor examples, choose a consistent result-type convention and settle cancellation defaults. Review whether value-object defaults and shared backing collections preserve the invariants your application needs.
Confirm skill loading in the intended assistant and compile adapted examples against the target project. Measure allocation-sensitive paths before introducing pooled buffers or SkipLocalsInit, and review any private-member access against the actual integration requirement. These are recommended next steps; none has been executed.
