/dennisdoomen-skills:code-reviewfrom Dennis Doomen's Skills
Review 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.
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.
Follow the steps in order. Do not skip a step.
Do this before anything else. Load these five skills:
coding-guidelines, csharp-guidelines, http-api-guidelines, ponytail, ponytail-review.
If a team skill with extra guidelines is available, such as a team-specific <team>-coding-guidelines, load it as well.
Show the proof. Write the names in a list. Put the call that loaded each skill next to its name. A skill with no load call next to it is not read. Go and read it. Never write that a skill was read when it was not. That has happened before, and it caused missed findings.
If a skill is not available:
SKILL.md straight from its repository: skills/<name>/SKILL.md in https://github.com/dennisdoomen/skills (or the repository of the team skill), https://github.com/DietrichGebert/ponytail for the ponytail skills, or Skills/csharp-guidelines/SKILL.md in https://github.com/dennisdoomen/CSharpGuidelines.If you delegate the review (see step 3), the subagent does this step.
Loading a rule is not the same as applying it. Rules that were in context the whole time are still missed. The steps below turn recall into lookup.
If an earlier review of this PR exists, review the commits added after it again. An earlier review does not cover later commits.
If you wrote or changed any of the code under review earlier in this session, do not review it in the main conversation. A review by the same author mostly confirms earlier decisions.
Run the review in a subagent instead. Run this same skill, by the name it is installed under. Do not use a generic review agent or skill.
.editorconfig, *.DotSettings and the analyzer settings. Note the rules for line length, wrapping, initializer layout, naming and member order. Use them in the checks below.*.yml, Directory.Build.*, *.csproj, .config/dotnet-tools.json, agents.md and readme files. Look for dotnet format, jb inspectcode, InspectCode, --verify-no-changes, or analyzers with severity error. If you find one, run it on the changed projects. Keep the output. If you find none, note where you looked.references/azdo.md for Azure DevOps (dev.azure.com or visualstudio.com). It is references/github.md for GitHub. Read the one that matches the remote.Treat the code as written by someone else. This applies even if you wrote part of it.
Re-read every changed file in full from disk. This includes renamed files and files with a small diff. Do not rely on your memory or on the hunks you edited.
If the change set is too large to read completely, say so. List the files you did not read. They go in the "Checked" line.
Read the diff first without the checklist. Read it as a colleague who sees it for the first time. Write down anything that looks odd. Examples:
Do not use IDs or rules here. Only write your first reaction. A checklist can only find what someone gave an ID. This step finds the rest. Keep this list. Add it to your findings in step 8.
Model the design before the checklist. Write three lines, for the author and for yourself:
Do this for every change that adds a retry, lease, lock, idempotency key, cache, queue publish, state column or check-then-act guard (look something up, then create or reject). Then ask for each gap: does the platform already solve it? Examples: Service Bus duplicate detection, a database constraint, an ETag, a unique index. A gap that a platform feature closes is a finding, even when the author documented it.
A gap that breaks the guarantee the PR adds is a finding too, even when no platform feature closes it and the gap already existed before the PR. Example: a PR that adds "no second account for the same email" leaves two requests at the same time free to both pass the check. Ask it as 🤔 ("Did you consider two requests at the same time?"). "Pre-existing" and "no platform fix" are not reasons to drop it.
Write the three lines to the scratch file from step 6.7. Show them in the reply (step 13).
List every changed file. Classify each one: HTTP function, DTO, spec file, service agent, project file (block F), config, and so on.
Every changed method also gets block E, whatever file it is in. A handler or a private helper matches no file type. A method that no block covers is not reviewed.
For each file, walk the matching block in coding-guidelines/references/checklists.md. If you loaded a team skill in step 1 that has its own references/checklists.md, walk its matching block right after the general one.
Report a verdict for every ID in the block, in order. Use one line per file:
<file> (<block>, N items): A1 ok · A2 ok · A3 VIOLATION route is PascalCase · A4 ok · …
Every ID must appear. A gap in the sequence shows that you skipped one. Never write "the rest are fine". Never summarize a block as "looks fine".
Read the full reference files that apply. List the contents of these folders first. A file added later must be read too.
coding-guidelines/references/csharp-guidelines/references/references/ folder of any team skill you loaded in step 1Read, in full, every file whose topic matches the changed code. Examples: unit-testing.md when specs changed, azure-functions.md when functions changed, build-pipelines.md when pipeline files changed. For C# code, read the files about naming, documentation and layout too. Do not skip a file because the change seems unrelated to it. Do not rely on the rules you remember from a SKILL.md.
HTTP endpoints. Check the status codes. Examples: 202 Accepted when the work finishes in the background, and 201 Created with a Location header. Check the error responses and the validation. State which API level applies (private, internal or public). Say whether the endpoint belongs in OpenAPI or must stay private on purpose.
Where to write the verdict lines. The lines can be very long. Write them to a scratch file, for example review-selfcheck.md in the temp folder. Do not paste them into the reply. The author sees the proof list from step 1, the reconciliation (step 7) and the drop table.
Run ponytail-review over the diff. Apply the skill, not only load it. Walk its ladder for the design as well as for the code: does this need to exist, does the platform or stdlib already do it? List its findings (one line each, with net: -N lines possible). Each finding goes through the step 9 gate, then appears in the numbered summary or in the drop table. Write "ponytail-review: nothing to cut" if that is the result.
Every ID that you marked VIOLATION must appear in one of two places:
A violation in neither place was dropped without a record. This step exists to prevent that.
<summary> says more than the identifier already says. "Normalizes a house number and its addition" repeats the method name. The reader learns nothing. It must say what normalizing does: which inputs are rejected, and what comes out. A comment with no information counts as a missing comment.Apply this gate to every candidate finding. Do it before you think about severity.
NotContainRequestFor assertions dropped as "it states the fact the test name promises" were later posted by a human reviewer..editorconfig or the compiler already reports.<ExistingType>, which we should fix too."
.editorconfig can override a guideline. Habit cannot.There is no limit on the number of findings. Post every finding that passes the gate. Order them by what you want fixed before merge. Never merge two different findings into one comment to reduce the count.
A made-up defect is worse than a missed one. The author loses time to disprove it. It also lowers trust in the rest of the review.
For anything you call a bug (wrong result, exception, broken contract), prove it first when proof is cheap:
*.Specs. Do not predict what they do.Be careful with reasoning about generic type inference, default(T), boxing of Nullable<T>, operator overloads and serializer defaults. A confident chain of logic often fails here. Example: a review said that IsNullOrDefault() on a bool? treats false as missing. It does not. A five-line program would have shown this.
If proof is not cheap, say so in the comment. Use 🤔 or ❓. Name the assumption you could not check. Never state an unchecked defect as a fact.
Load the plain-english skill before you write comments. The readers may not be native English speakers.
Start every comment with its emoji, in the comment text. Keep the 🤖 marker. It shows that the comment is automated. Do not remove it when you build API payloads.
Rules for choosing:
201 Created, write "🔧🤖 This must be 201 Created". Do not write "❓🤖 Is 202 the right status code here?".Check your calibration. About half of all findings are usually 🔧. This is a check, not a quota. If almost none are 🔧, look again at your rule-backed findings. If most are 🔧 because a rule only mentions the point, look again at the gate. For each 🤔, check that the harm is clear from the comment itself. If it is not, move the 🤔 to the drop table.
Write a short numbered list of the findings.
Add a "Checked" line. It lists:
ponytail-review result from step 6.8Never write that something was checked if you did not check it.
Show the dropped candidates in a table. Do not describe them in prose.
| Checklist ID / rule | file:line | Finding, one clause | Why dropped |
|---|
Rules for the table:
posted = N, dropped = M. Every drop needs a reason from the gate. Never drop a finding to reduce the count.Ask whether the user wants changes. Then ask for explicit confirmation to post.
⚠️ STOP before posting. Do not post any comment until the user has confirmed. There are no exceptions.
When the user asks you to post, the first step is always the same. Look for an open (pending) review of the user's own on that PR. Do this every time, before you create anything. If you find one, add your comments to it. Leave the submission to the user. Create a new review only if there is none.
The platform file has the exact calls:
references/azdo.mdreferences/github.mdAfter posting, read the comments back from the platform. Check that the emoji and code spans are correct. Only then tell the user that posting is done.
What SKILL.md sets; muted values are Claude Code's defaults
Other 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./coding-guidelinesCoding 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./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.npx claudepluginhub dennisdoomen/skills --plugin dennisdoomen-skills