Tooluck logoTooluck
SKILL.md

modern-csharp-coding-standards

Agent skill fromAaronontheweb/dotnet-skills

Write 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.

How to install modern-csharp-coding-standards

install modern-csharp-coding-standards
# install the dotnet-skills pack with the skills CLI
npx skills add Aaronontheweb/dotnet-skills

# or add only this skill to Claude Code: copy the folder

skills/csharp-coding-standards/

# into

~/.claude/skills/csharp-coding-standards/ (all projects)

.claude/skills/csharp-coding-standards/ (one project)

skills/csharp-coding-standards/SKILL.md

MITFull file
1# Modern C# Coding Standards
2
3## When to Use This Skill
4
5Use this skill when:
6- Writing new C# code or refactoring existing code
7- Designing public APIs for libraries or services
8- Optimizing performance-critical code paths
9- Implementing domain models with strong typing
10- Building async/await-heavy applications
11- Working with binary data, buffers, or high-throughput scenarios
12
13## Reference Files
14
15- [value-objects-and-patterns.md](value-objects-and-patterns.md): Full value object examples and pattern matching code
16- [performance-and-api-design.md](performance-and-api-design.md): Span<T>/Memory<T> examples and API design principles
17- [composition-and-error-handling.md](composition-and-error-handling.md): Composition over inheritance, Result type, testing patterns
18- [anti-patterns-and-reflection.md](anti-patterns-and-reflection.md): Reflection avoidance and common anti-patterns
19
20## Core Principles
21
221. **Immutability by Default** - Use `record` types and `init`-only properties
232. **Type Safety** - Leverage nullable reference types and value objects
243. **Modern Pattern Matching** - Use `switch` expressions and patterns extensively
254. **Async Everywhere** - Prefer async APIs with proper cancellation support
265. **Zero-Allocation Patterns** - Use `Span<T>` and `Memory<T>` for performance-critical code
276. **API Design** - Accept abstractions, return appropriately specific types
287. **Composition Over Inheritance** - Avoid abstract base classes, prefer composition
29…

Excerpt shown under the repository's MIT license.

More skills in dotnet-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates