Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Modern C# Coding Standards23## When to Use This Skill45Use this skill when:6- Writing new C# code or refactoring existing code7- Designing public APIs for libraries or services8- Optimizing performance-critical code paths9- Implementing domain models with strong typing10- Building async/await-heavy applications11- Working with binary data, buffers, or high-throughput scenarios1213## Reference Files1415- [value-objects-and-patterns.md](value-objects-and-patterns.md): Full value object examples and pattern matching code16- [performance-and-api-design.md](performance-and-api-design.md): Span<T>/Memory<T> examples and API design principles17- [composition-and-error-handling.md](composition-and-error-handling.md): Composition over inheritance, Result type, testing patterns18- [anti-patterns-and-reflection.md](anti-patterns-and-reflection.md): Reflection avoidance and common anti-patterns1920## Core Principles21221. **Immutability by Default** - Use `record` types and `init`-only properties232. **Type Safety** - Leverage nullable reference types and value objects243. **Modern Pattern Matching** - Use `switch` expressions and patterns extensively254. **Async Everywhere** - Prefer async APIs with proper cancellation support265. **Zero-Allocation Patterns** - Use `Span<T>` and `Memory<T>` for performance-critical code276. **API Design** - Accept abstractions, return appropriately specific types287. **Composition Over Inheritance** - Avoid abstract base classes, prefer composition29…
Excerpt shown under the repository's MIT license.
More skills in dotnet-skills
Similar skill repositories
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
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
Production-grade engineering skills for AI coding agents.
Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
