From Napkin
Enforces .NET/C# best practices for project structure, XML documentation, DI, async/await, testing, configuration, and Semantic Kernel integration. Ensures code quality and maintainability.
How this skill is triggered — by the user, by Claude, or both
Slash command
/napkin:dotnet-best-practicesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Your task is to ensure .NET/C# code in ${selection} meets the best practices specific to this solution/project. This includes:
Your task is to ensure .NET/C# code in ${selection} meets the best practices specific to this solution/project. This includes:
public class MyClass(IDependency dependency))CommandHandler<TOptions>)_resourceManager.GetString("MessageKey")npx claudepluginhub ani1797/forge --plugin copilot-sdk2plugins reuse this skill
First indexed Jun 6, 2026
Reviews C#/.NET code for design pattern implementation and suggests improvements. Covers Command, Factory, Repository, Provider patterns, SOLID principles, and .NET best practices.
Idiomatic C# /.NET development. Use when writing C# code, changing `.csproj` or `.sln`, or working on ASP.NET Core apps, libraries, CLIs, workers, and xUnit/NUnit/MSTest suites. Emphasizes nullable references, async/await, LINQ discipline, boundary validation, focused `dotnet` feedback, and minimal dependencies. NOT for Go, Python, TypeScript, shell scripts, or infra-only work.
Generating or modifying .NET code. Common agent mistakes: async, NuGet, deprecated APIs, DI.