
dotnet-patterns
Idiomatic C# and .NET patterns, conventions, dependency injection, async/await
by affaan-mFree
Description
dotnet-patterns is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out idiomatic C# and .NET practice for building robust, maintainable applications. Its first principle is immutability: records and init-only properties for data models, with mutability treated as a choice that must be justified. The skill also covers conventions, dependency injection, async and await, and service architecture in ASP.NET Core. It applies when an agent is writing new C# code, reviewing existing code, refactoring a .NET application, or designing services. Because it is a SKILL.md file, the agent loads it only when the task calls for it and then applies the same conventions consistently. Testing is covered by a separate skill in the same collection. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Immutable records and init-only properties
- Dependency injection conventions
- Async and await practice
- ASP.NET Core service architecture
Ratings & Reviews
No ratings yet
Be the first to rate dotnet-patterns.
People also visit
dotnet-patterns FAQ
What does the dotnet-patterns skill do?
It guides an agent in writing, reviewing and refactoring C# and .NET code using idiomatic patterns for immutability, dependency injection and async work.
Does it cover ASP.NET Core?
Yes. It includes designing service architectures with ASP.NET Core.
Where are .NET tests covered?
By a separate csharp-testing skill in the same collection, which uses xUnit and FluentAssertions.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill dotnet-patterns
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best dotnet-patterns alternatives?
Popular alternatives to dotnet-patterns include dotnet-backend-patterns, dotnet-design-pattern-review and modern-csharp-coding-standards. See all dotnet-patterns alternatives









