code-review
Skill0 starsChanged 7 months agoUnlicenseView on GitHub
Defines the contract for the dev ↔ qa code-review collaboration loop on a pull request — round-trip timing, when to notify, how to record human authorization, what qa looks for (including unit-test review patterns), how findings are written, how to reply with `Fixed` / `Won't fix`, when to split out-of-scope work into a follow-up issue, and the stop conditions that close the loop.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- canonical/mirtheir own version, first seen Nov 30, 2026
- dotnet/machinelearningtheir own version, first seen Nov 30, 2026
- canonical/multipasstheir own version, first seen Nov 29, 2026
- Forget-C/Jellyfishtheir own version, first seen Nov 29, 2026
- ceph/cephtheir own version, first seen Nov 29, 2026
- dotnet/aspnetcoretheir own version, first seen Nov 29, 2026
Used with
Projects with it also use close-spec, design-with-images and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 5 projects that use this
dzhngSkilldesign-with-images
Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.
Also in 5 projects that use this
PydanticSkilladd-new-model
Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry. Also use when Anthropic, OpenAI or Google deprecates or retires a model, to update the deprecation tables.
Also in 10 projects that use this
Microsoft AzureSkillazsdk-common-apiview-feedback-resolution
Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.
Also in 6 projects that use this
Microsoft AzureSkillazsdk-common-generate-sdk-locally
Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.
Also in 6 projects that use this
- +4 more from dzhng
- +3 more from Azure
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- mattpocock/skills★ 335ksame name
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- ggml-org/llama.cpp★ 137ksame name
- supabase/supabase★ 116ksame name
- storybookjs/storybook★ 92ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- vectorize-io/hindsight★ 64ksame name
184 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- issue-checkSkill
- merge-syncSkill
- pr-feedbackSkill
- pr-recheckSkill
- pr-reviewSkill
- review-notifySkill
- spellsSkill
- tmux-sendSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 9 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
When this skill and one of those skills both speak to the same step, this skill states the standard and the per-step skill states the …
- Very specific: line 77
If dev forgets, qa will raise the default finding and dev can answer with Won't fix plus the human's reasoning — but that wastes a round.
- Distinctive: line 81
If the PR resolves a GitHub Issue, the PR description must use one of GitHub's closing keywords (case-insensitive):
- Very specific: line 87
Only these keywords trigger GitHub's auto-close on merge.
- Very specific: line 89
When qa sees a PR that is clearly fixing an issue but the description does not contain a closing keyword, qa raises a finding.
- Distinctive: line 108
Default to finding problems, not summarizing the diff.
- Very specific: line 115
When the review surfaces no findings, qa says so explicitly with No findings (or No additional findings on a recheck).
- Distinctive: line 121
Companion tests: Every behavior change in production code should have a corresponding test that exercises it (happy path + boundary + …
- Distinctive: line 122
Test completeness: Check that the tests actually pin the behavior down: exception paths, concurrency cases, state-machine branches, and the …
- Distinctive: line 134
Write findings directly on the PR, ideally as inline review comments anchored to the smallest relevant code range.
- Distinctive: line 140
When qa concludes a round with no remaining findings:
- Very specific: line 142
If qa has approval permission on the repo: post APPROVE on the PR and reply :+1:.
- Very specific: line 143
If qa does not have approval permission: reply :+1: at minimum — that is the "no findings" signal projects rely on for stop condition 1 …
- Distinctive: line 152
Use the platform's threaded reply on inline review comments when possible.
- Very specific: line 154
After replying — even with no code change — go back to When dev Must Notify qa and dispatch recheck N.
- Distinctive: line 158
When a finding is real but does not belong in the current PR (different subsystem, larger refactor, deferred decision), dev does not answer …
- Very specific: line 174
When stopping, the dev summarizes for the human: the current PR review decision, the list of any unresolved findings, and the recommended …
“Common” is measured: kept by at least 6 in 10 of the 186 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Review
Overview
This skill is the upper layer of the code-review workflow: it defines what good looks like for both sides of the loop — the dev (PR author) who pushes changes and processes feedback, and the qa (independent reviewer) who reads diffs and posts findings. The mechanics of running each step live in the per-step skills:
pr-review— qa runs a first-time full review.pr-recheck— qa re-evaluates after the dev responded.pr-feedback— dev processes review feedback on the PR.review-notify— either side sends the wake-up signal to the other.spells— the chat trigger phrases (review N,recheck N,pr N) that hand control off between the two sides.
When this skill and one of those skills both speak to the same step, this skill states the standard and the per-step skill states the procedure.
Roles
The loop has exactly two role names. Use these names consistently in PR descriptions, commit messages, and review comments:
- dev — opens the PR, lands commits, replies to findings. Authorizes their own changes only inside the limits set by the project's agent rules.
- qa — reads the PR independently and posts findings or approval. Does not see dev's chat context; works only from what is durable on the PR.
The two roles run in independent contexts and never share session state. Every signal that crosses between them — a finding, a fix, an approval, a "this is intentional" justification — must land on the PR's durable surface (review, inline review comment, conversation comment, commit message) before it counts. tmux panes, chat transcripts, and local memory do not count.
The Round-Trip
The loop is event-driven. Each side acts only when the other has posted something durable, then signals back:
dev opens PR or pushes commit/reply
│
└─► dev sends `review N` (first time) or `recheck N` (subsequent rounds) to qa
│
└─► qa reads PR, posts findings or APPROVE on the PR
│
└─► qa sends `pr N` back to dev
│
└─► dev processes every finding (Fixed / Won't fix / split to issue)
│
└─► dev commits+pushes any code change, replies on the PR
│
└─► loop back to "dev sends recheck N" until a stop condition firesThe first round uses review N; every round after that uses recheck N — even when dev has no new code and is only replying to a finding.
When dev Must Notify qa
Notify qa after any of the following on the PR. Each of these changes what the next independent reader of the PR would see, so qa's previous conclusion is no longer valid:
- Opening a new PR.
- Pushing a new commit, for any reason — fix, additional test, doc-only tweak, lint, rebase.
- Changing the PR title or description in a way that affects review scope or intent.
- Replying to any reviewer's finding — qa's own, a human's, or a bot's (
gemini-code-assist[bot],copilot-pull-request-reviewer[bot], etc.) — whether or not a new commit accompanied the reply. AWon't fixreply still needs qa to independently judge the new reasoning.
The order is always: commit + push (or post the reply) → notify qa → wait for qa's pr N callback. Never notify before the change is visible on the remote; qa only sees what is on the PR.
Optional Bot Review
After opening or updating a PR, dev may also request a bot review (e.g. GitHub Copilot) as fire-and-forget: dispatch and move on. Treat any bot finding that does appear the same as a human or qa finding — independently judged, replied to with Fixed or Won't fix. A failed or absent bot review never blocks the dev → qa loop.
Recording Human Authorization in the PR
qa cannot see what a human said to dev in chat. If dev consciously did any of the following on the human's instruction, dev must record the authorization on the PR (in the description, in a commit message, or in a top-level comment) before notifying qa:
- Knowingly violated a default rule from the repo's agent instructions (scope limit, docs requirement, dependency rule, etc.).
- Pulled changes into the PR that are not directly related to its stated purpose.
- Skipped a test, validation, lint, or other check that would otherwise be expected.
- Picked a clearly non-standard implementation approach.
This is not a free pass: qa still judges independently whether the human's reasoning actually covers the risk. It just gives qa the full input so qa is not relitigating an already-authorized choice as if it had no context.
If dev forgets, qa will raise the default finding and dev can answer with Won't fix plus the human's reasoning — but that wastes a round. Putting the authorization on the PR upfront is the cheap path.
Issue Linking
If the PR resolves a GitHub Issue, the PR description must use one of GitHub's closing keywords (case-insensitive):
Close #N/Closes #N/Closed #NFix #N/Fixes #N/Fixed #NResolve #N/Resolves #N/Resolved #N
Only these keywords trigger GitHub's auto-close on merge. Addresses #N, Related to #N, and a bare URL do not, and they leave the issue dangling in OPEN after the PR merges.
When qa sees a PR that is clearly fixing an issue but the description does not contain a closing keyword, qa raises a finding. The dev fixes the description and re-notifies with recheck N.
Official reference: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword.
Review Blockers
Before reading the diff in detail, qa checks for blockers that will force the dev to change the code anyway. If a blocker is present, qa stops the round early — posts the blocker as a finding, emits the host's CHANGES_REQUESTED signal, and skips the diff-level review. Re-reviewing code that is about to move wastes a round of the loop.
Two blockers fast-fail a review:
- CI is failing. The PR head has at least one definitively failed check.
- PR has merge conflicts. GitHub reports
mergeable: CONFLICTING.
Pending or in-progress CI and mergeable: UNKNOWN are not blockers — those resolve on their own. The same gate applies on recheck: if the current head still fails CI or still conflicts, fast-fail again.
Procedure (which commands, which fields, finding format) lives in pr-review § Blocker Pre-check and pr-recheck § Blocker Pre-check.
Review Scope
Default to finding problems, not summarizing the diff. A review that just narrates "this PR adds X, then Y, then Z" is a missed review. Prioritize, in this order:
- Behavior bugs and regressions — code that does the wrong thing now, or that breaks something previously correct.
- Lifecycle and concurrency risks — leaks, races, ordering violations, unhandled cancellation.
- Missing or weak tests — see Unit Test Review below.
- Mismatches between PR, linked issue, and repo rules — scope drift, undocumented exceptions to defaults, missing closing keyword.
When the review surfaces no findings, qa says so explicitly with No findings (or No additional findings on a recheck). A vague positive blurb ("looks good!") is not an acceptable substitute — it leaves dev unsure whether qa actually looked or skimmed.
Unit Test Review
Tests are a first-class review surface, not an afterthought.
- Companion tests. Every behavior change in production code should have a corresponding test that exercises it (happy path + boundary + regression anchor). Production change with zero accompanying test is a finding unless there is a documented reason.
- Test completeness. Check that the tests actually pin the behavior down: exception paths, concurrency cases, state-machine branches, and the key invariants of the changed code should each be locked by at least one assertion.
- Low-signal / no-op test patterns. Flag any of:
- Weak assertions like
XCTAssertNotNil(x)orexpect(x).toBeTruthy()where a behavior check is what's needed. - "It ran without throwing, so it passes" — no assertion on the actual result.
fmt.Println/console.logused as a stand-in for an assertion.- Setup-only tests with no behavior verification.
- Tests gated off with
skip/xtest/@Disabledand no TODO explaining why. - Mocks so thick that the test only verifies the mock's own configuration rather than the code's behavior.
- Weak assertions like
- Coverage regression. A change that adds a new branch, new function, or new failure path without a test that exercises it counts as a coverage regression. Raise a finding and ask for the missing test.
Findings Format
Write findings directly on the PR, ideally as inline review comments anchored to the smallest relevant code range. Each finding should be:
- Specific. Reference a commit, file, and line.
- Actionable. State the concrete change needed, or the specific question that needs answering.
- Auditable. A future reader (human or agent) should be able to reconstruct why this was raised without external context.
When qa concludes a round with no remaining findings:
- If qa has approval permission on the repo: post
APPROVEon the PR and reply:+1:. - If qa does not have approval permission: reply
:+1:at minimum — that is the "no findings" signal projects rely on for stop condition 1 below.
Replying to Findings
The dev replies to every actionable finding — silence is not allowed. Each reply starts with one of two literal first lines:
Fixed— the change has been made. The first line is exactlyFixedon its own; details follow on subsequent lines. Reference the commit SHA when a code change was pushed for this finding. Do not postFixeduntil the commit is pushed to the PR branch.Won't fix— the finding is declined. The first line is exactlyWon't fixon its own; the explanation that follows must cite concrete evidence (a behavior, a constraint, an authorization recorded earlier in the PR). Vague refusals like "not needed" are not acceptable.
Use the platform's threaded reply on inline review comments when possible. Use a top-level PR comment only when the platform offers no threaded reply for that surface.
After replying — even with no code change — go back to When dev Must Notify qa and dispatch recheck N. A Won't fix reply still needs qa to judge the new reasoning.
Out-of-Scope Findings
When a finding is real but does not belong in the current PR (different subsystem, larger refactor, deferred decision), dev does not answer with "we'll handle later". Instead:
- Open a GitHub Issue capturing enough context for a future agent to reproduce the concern (background, affected files, suggested approach if known).
- Reply on the original review thread with the Issue link and one sentence on why this is being split out rather than fixed in this PR.
"We'll handle later" without a tracked Issue is not an acceptable reply — it loses the finding the moment the PR merges.
Stop Conditions
The loop should converge. The dev stops and reports current state to the human when any of these is true:
- qa approved. qa posted
APPROVEor replied:+1:on the PR with no open findings. - Every open qa finding has a
Won't fixreply with reasoning on the PR. Continuing the loop would just re-receive the same findings. - Ten rounds have passed. Ten iterations of "fix → notify → respond" without convergence usually means the design itself is contested or the PR scope has crept; escalate to the human rather than spinning more.
- A new human instruction supersedes the loop. Human instructions outrank the in-flight review cycle.
When stopping, the dev summarizes for the human: the current PR review decision, the list of any unresolved findings, and the recommended next action (await merged, split into a follow-up issue, redesign, etc.).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

