.NET C# Baseline Patterns

•
197
•

Implements idiomatic C# patterns and .NET runtime best practices for high-performance, maintainable codebases.

This skill serves as the foundational reference for modern .NET development, guiding Claude to produce code that adheres to the latest C# standards and .NET runtime features. It provides comprehensive guidance on essential topics including async/await correctness, dependency injection lifetimes, LINQ optimization, and advanced type design. By integrating SOLID principles, Roslyn analyzer standards, and support for C# versions 8 through 15, it ensures that generated code is not only functional but also performant, globalized, and architecturally sound, making it indispensable for any C# project requiring production-grade quality.

主な機能

01Native and WASM interop support via LibraryImport, ComWrappers, and JSImport/JSExport
02High-performance type design utilizing Span, Memory, and source generators
03Advanced Dependency Injection guidance covering scopes, lifetimes, and keyed services
04197 GitHub stars
05Correctness patterns for async/await, Task management, and cancellation propagation
06Modern C# support (Versions 8-15) including records, pattern matching, and primary constructors

ユースケース

01Auditing existing code for anti-patterns, async pitfalls, and SOLID principle violations
02Modernizing legacy C# codebases to utilize the latest .NET 10/11 features and syntax
03Implementing high-performance domain models with optimized serialization and memory management