From k
Invoke before reviewing, writing, or modifying C# code. Load the relevant C# guidance files first and use them for all design and code-quality judgments, including review work. Focuses on C# 14 and .NET 10 idioms and patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/k:csharp-langThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Use compliance date `2026-03-30`.
agents/openai.yamlresources/01_universal_guidelines.mdresources/02_modern_syntax.mdresources/03_async_patterns.mdresources/04_collections_linq.mdresources/05_error_handling.mdresources/06_testing.mdresources/07_performance.mdresources/08_library_design.mdresources/09_aot_source_generators.mdresources/10_documentation.mdresources/11_project_baseline.md2026-03-30.net10.0) unless the repository already targets another version or the user asks otherwise.
.cs, .csproj, .props, or .targets file, load ${CLAUDE_SKILL_DIR}/resources/01_universal_guidelines.md.
02_modern_syntax.md — records, primary constructors, extension members, field-backed properties, pattern matching, collection expressions03_async_patterns.md — async/await, ValueTask, cancellation, async enumerable, deadlock avoidance04_collections_linq.md — LINQ idioms, IEnumerable vs IQueryable, materialization, collection choices05_error_handling.md — exception patterns, Result types, nullable reference types, validation06_testing.md — xUnit/NUnit/MSTest tradeoffs, mocking, test naming, arrange-act-assert07_performance.md — Span, Memory, stackalloc, pooling, ref struct, benchmarks08_library_design.md — API shape, dependency injection boundaries, configuration, logging integration09_aot_source_generators.md — AoT compatibility, Native AOT, JSON source generators, trimmer safety10_documentation.md — XML docs, README patterns, example code11_project_baseline.md — net10.0 defaults, multi-targeting, LangVersion, analyzers, CI expectations${CLAUDE_SKILL_DIR}/resources/.
rg '^## ' <file> first and read only the relevant sections.npx claudepluginhub kkestell/skills --plugin kWrite modern, high-performance C# code using records, pattern matching, value objects, async/await, Span<T>/Memory<T>, and best-practice API design patterns. Emphasizes functional-style programming with C# 12+ features. Use when writing new C# code or refactoring existing code, designing public APIs for libraries or services, optimizing performance-critical code paths, or building async/await-heavy applications.
Writes modern C# code using records, pattern matching, async/await. Optimizes .NET apps, implements enterprise patterns like SOLID, and provides comprehensive testing with xUnit, Moq.
Adds Roslynator and Meziantou analyzers, creates a comprehensive .editorconfig with 80+ diagnostic rules for enforcing strict .NET/C# coding standards.