/dennisdoomen-skills:coding-guidelinesfrom Dennis Doomen's Skills
Coding and unit testing guidelines for C# and .NET, with review checklists and test naming examples. Use when writing, refactoring or reviewing C# code, unit tests or build scripts. Builds on the csharp-guidelines and http-api-guidelines skills.
Ships in Dennis Doomen's Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
DbContext and its design-time factory follow the same rule: place them inside the feature folder (or Common if shared across features), not at the project root.internal by default, unless it needs to be accessed outside the assembly. This helps to encapsulate the implementation details and reduces the risk of unintended usage. This applies to members too: a public method or property on an internal type is a violation, not a harmless habit.PackageReference or PackageVersion) needs approval before merge. Report it as 🔧 in a review, even when the package itself is fine.var when the type is obvious from the right-hand side of the assignment. This improves readability by making it clear what type of object is being created. The one case where var is required rather than merely allowed is an anonymous type — writing it out is impossible, and var preserves the type instead of degrading it to object.init over set on properties of DTOs, request bodies and response types. They are populated once during deserialization or construction and should not be mutable afterwards.[UsedImplicitly] on types or members that are only ever bound by a serializer or by reflection, so it's clear the apparently-unused setters and getters are deliberate. Use [UsedImplicitly(ImplicitUseTargetFlags.WithMembers)] on the type when this applies to all of its members.System.Net.Mail.MailAddress.TryCreate, and remember that the only real proof an address works is a delivered confirmation mail.required (or make it non-nullable) instead of declaring it nullable and rejecting null at run time — the nullable declaration plus a manual check is what forces ! operators later. Conversely, a property that genuinely may be absent must be declared nullable rather than merely documented as optional.is null over == null for null checks, as it is more concise and can be more efficient in certain cases.Get should never return null. If the response can be null, use Find as a prefix.Authentication not Auth, Repository not Repo, Configuration not Config, Synchronization instead of Sync// REFACTOR or // SMELL comments to highlight improvements for the next person working on the code, but avoid leaving TODO comments without a clear owner and timeline for completion.<summary> and </summary> on their own lines with the summary text in between; never place the tags and the text on the same line, even for one-line summaries.(await Foo()).ToList(). It's better to use ToListAsync() or split the call into two lines..editorconfig to discover any project-specific naming, formatting, or style rules. Apply those rules — they take precedence over the general preferences described in this skill.Register[FeatureName](this IServiceCollection services) in a DependenciesRegistrar.cs file inside the feature folder. Program.cs should only call these registrars, not contain inline feature registrations.AzureSql and AzureTableStorage rather than Sql and TableStorage).bool? for parameters or properties that are truly binary. If the absence of a value simply means false, use bool with a default value of false instead.AddRange or SaveChangesAsync). Such guards add noise and can inadvertently suppress subsequent logging or post-processing steps.! null-forgiving operator on deserialization calls (e.g., JsonSerializer.Deserialize<T>(...)! or .ToObjectFromJson<T>()!). If deserialization returns null or throws, the ! converts a clear failure into a NullReferenceException. Handle null explicitly or throw a meaningful exception.decimal for all monetary values. double and float are not acceptable for money due to floating-point precision loss.bool expression to true or false directly. Write if (isActive) not if (isActive == true).IsNullOrDefault() (from Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Extensions) is implemented as instance?.Equals(default(T)) ?? true. On a Nullable<T> it does what the name suggests, because default(T) is null — only null matches, and an explicit false or 0 does not. On a non-nullable value type it silently conflates the default with "missing": IsNullOrDefault(0) and IsNullOrDefault(false) both return true. Never use it to test whether a non-nullable value was supplied; check the value you actually care about instead.Thread.Sleep in async code. Use await Task.Delay instead.Read the following files for topic-specific guidelines that apply alongside the rules above:
references/checklists.md — per-file-type review checklists; walk these when reviewing a diffreferences/build-pipelines.md — guidelines for build and deployment scripts, including license and risk scanning of dependencies with PackageGuardreferences/unit-testing.md — guidelines for unit and integration testsreferences/test-naming.md — how to name tests, with worked examplesWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dennisdoomen/skills --plugin dennisdoomen-skillsOther plugins' skills for the same job
9 skills in this plugin
/address-review-commentsAddress review comments on your own PR (GitHub or Azure DevOps): fix the code, fold the fix into the commit it belongs to, push to the fork, reply on each thread and resolve it. Use this skill whenever the user asks to address, fix, process or follow up on reviewer comments, or to rebase a PR and handle a reviewer's comment. For verifying someone else's rework, use check-rework instead.
/check-reworkVerify that the author of a pull request properly addressed every code review comment, on GitHub or Azure DevOps. Use when asked to check rework, verify review feedback, or see whether a PR is ready for another look. Reports problems with links to the threads and changes nothing itself./code-reviewReview a pull request, or the current branch, of C# and .NET code on Azure DevOps or GitHub. Use when asked to review code, check a PR against the team guidelines, find defects, or post review comments. Applies the coding, C#, HTTP API and ponytail guidelines. Posts comments only after the author confirms./create-commits-and-prCreate well-structured commits and a PR description for a branch/fixup-commitsIncorporates working-directory changes into a specific existing commit that is NOT the tip (HEAD) of the branch, using a fixup commit and an autosquashing rebase. Use this skill whenever the user asks to fold, merge, or incorporate changes into an earlier or specific commit, or mentions fixup commits or autosquash. `git commit --amend` only works when the target commit is HEAD; for any other commit in history, use this workflow instead.
/http-api-guidelinesThis skill encodes the organizational guidelines for designing, developing, and versioning HTTP APIs. Use it when reviewing, designing, or building HTTP APIs to ensure compliance with the agreed-upon standards.