code-review
Skill4 starsChanged 5 days agoMITView on GitHub
Reviews a PR, branch, or worktree for evidence-backed findings, with scoped revalidation and explicitly requested fixes. Use when asked to review code changes, a diff, a branch, or a PR, or to recheck earlier review findings.
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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- address-feedbackSkill
- agent-writingSkill
- codebase-auditSkill
- create-issueSkill
- create-prSkill
- create-releaseSkill
- deliverSkill
- delivery-waitSkill
- domain-modelingSkill
- git-workflowSkill
- grillingSkill
- grill-with-docsSkill
- implementSkill
- improve-codebase-architectureSkill
- maintain-project-skillsSkill
- milestone-rushSkill
- native-nostalgia-stackSkill
- project-structureSkill
- roadmap-reviewSkill
- run-retroSkill
- template-checkSkill
- test-against-specSkill
- update-prSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 16 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Default remediation is none.
- Distinctive: line 57
Search the complete mapped scope.
- Distinctive: line 80
Read each reference when its condition holds:
- Distinctive: line 108
Use this section for a fresh or combined review.
- Distinctive: line 114
use the user-supplied base when present.
- Distinctive: line 138
Follow renames, state the history window, and record touch count and line churn.
- Distinctive: line 165
Verify that changed tests fail for the relevant wrong behavior and assert outcomes rather than implementation details.
- Distinctive: line 190
Check each rule against the complete finding scope, not a sample.
- Distinctive: line 205
Keep the axes distinct so one cannot mask the other.
- Distinctive: line 224
Do not expand finding scope beyond the bounded change.
- Distinctive: line 237
Search the live repository before accepting new helpers, patterns, formats, or abstractions.
- Distinctive: line 240
Prefer deletion, reuse, direct control flow, and existing dependencies.
- Distinctive: line 246
Treat repeated changes to the same symbol or file as an architectural-risk signal, not a defect by itself.
- Distinctive: line 252
Treat generic best practice and remembered library behavior as leads only.
- Distinctive: line 253
Verify findings against the checked-out code, exact installed version, and current official documentation or source.
- Very specific: line 261
Use these terms verbatim for the lane map, review axes, lane statuses, and roles: review-axis-to-lane map.
- Very specific: line 284
when the review delegated lanes, the review-axis-to-lane map with each lane's complete or incomplete status, worker candidates the …
- Distinctive: line 322
Every finding also states three facts without a verdict on whether to act: impact, who or what the finding affects on the current code.
“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
Establish whether the requested review scope is correct, necessary, clear, and ready for its claimed use. Without an explicit file or prior-findings input, review the complete change. Review first; remediate only in an authorized fix mode.
Operations, remediation, and boundaries
Choose one operation before gathering evidence:
- Fresh review: judge the bounded change and issue a review verdict.
- Targeted revalidation: recheck selected prior findings without judging the change as a whole.
- Combined: perform both only when the user explicitly requests a fresh review and supplies prior findings; keep their outputs and conclusions separate.
Remediation is independent of the operation:
- Default remediation is none. Inspect and run safe local probes, but do not edit source, tests, configuration, or documentation.
fix <finding IDs>fixes only the selected findings;fix-allfixes every validated in-scope finding in one bounded pass. With prior findings, either mode may edit only for selected findings classifiedstill_presentorchanged, never forresolved,not_retestable, orskippedOutOfScopefindings.- Fix modes authorize local edits and validation, not commits, pushes, PR comments, review-thread changes, deployments, publication, or shared-state mutation. Stop remediation for a material product, architecture, security, compatibility, or scope decision.
- A request to save JSON authorizes only the named findings artifact; it does not authorize remediation.
- Exact file lists and prior-findings JSON are additive inputs. They do not change unscoped review behavior unless the user supplies them.
- A reporting profile or threshold changes presentation only. Gather and validate the complete candidate set across the mapped scope, retain every supported severity in the canonical result, and let the caller decide which severities become visible.
- Search the complete mapped scope; do not stop after the first or highest-severity issue.
- Delegate review lanes by default when the host supports subagents and the
scope is not trivial. A small change, such as a few lines in one file, stays
local.
no-subagentsor an equivalent user instruction keeps the whole review local. When the review delegates lanes, read references/subagent-lanes.md before publishing the lane map. While lanes run, the coordinator continues its own lane-independent work, such as running the project gate.
Safe probes include declared checks, local builds and servers, disposable repros, isolated test data, browser interaction, temporary artifacts, and revert-clean falsification probes. A falsification probe temporarily introduces one targeted wrong behavior to prove the relevant test or gate fails for the right reason. Record the initial tree state, prefer a disposable worktree or copy, restore the mutation immediately, compare the final tree byte-for-byte with the recorded state, and report the mutation and observed failure. Skip the probe and mark the evidence static-only when exact restoration is not safe. Clean up disposable artifacts and report retained ones. Ask before any persistent or externally visible side effect.
Conditional references
Read each reference when its condition holds:
- references/subagent-lanes.md when the review delegates lanes, before publishing the lane map.
- references/file-scope.md when the user supplies an exact file list.
- references/prior-findings.md and references/revalidation-json.md when the user supplies prior findings, whether or not JSON output is requested; they define selection, the intersection with a file list, and the targeted result contract.
- references/findings-json.md when the user requests JSON output for a fresh review.
- references/discoverability.md when a fresh review activates the discoverability axis.
- references/adversarial-review.md when the change touches authentication, authorization, payments, secrets, destructive or data-loss behavior, or tenant isolation; apply its bounded bypass hunt within engineering quality.
- references/engineering-smells.md when structural evidence suggests a design smell but concrete impact or the smallest remedy is unclear. Use it as investigation prompts; repository standards and observed impact remain authoritative.
- references/fix-mode.md when the user selects
fix <finding IDs>orfix-all.
Establish a fresh review
Use this section for a fresh or combined review. Targeted revalidation alone follows the prior-findings reference instead.
- Ground the review in applicable project instructions, current source, tests, configuration, lockfiles, and contribution or completion contracts.
- Resolve the comparison boundary:
- use the user-supplied base when present;
- for a pull request, use its base branch;
- otherwise use the merge-base with the remote default branch.
- Resolve the fixed point and head to concrete revisions before delegation, then verify that the bounded diff can be computed and is non-empty. Stop before review when either revision is unavailable, the boundary is ambiguous, or the change is empty or unrelated.
- List and read the repository's binding guides for the bounded change, and start the binding-guide ledger from them.
- Include committed, staged, unstaged, and relevant untracked work. Separate dirty-worktree findings from committed-change findings.
- Establish the claim from the issue, PR, confirmed mini-spec, required behavior, and commits. If none exists, reconstruct the narrowest supported claim from the change and label it as inferred.
- Activate de-duplication, claim and specification, and engineering quality for every fresh review. Activate discoverability only for changes to public pages, routing, metadata, crawl controls, structured data, public content, or web-performance behavior. Within engineering quality, cover correctness, simplification, self-documentation, test value, and operational behavior; add UI/accessibility, trust boundaries, persistence/migrations, concurrency, compatibility, deployment/rollback, observability, or performance only when the change touches those concerns.
- Measure churn for every changed file in the finding scope and, where history
can identify it reliably, each changed function, method, class, or module.
Follow renames, state the history window, and record touch count and line
churn. Use the repository's declared churn window or 90 days when none
exists. Prefer its code-health tool; otherwise use Git file history and
git log -Lfor stable symbols. Label file-level fallback when symbol history is unavailable.
Generate evidence
Apply these requirements across the mapped finding scope.
- Establish the repository's relevant gate from current evidence or run the missing checks. In a composed workflow the caller owns the aggregate gate. Reuse passing checks and real-interface evidence for matching content, command, environment, and coverage; rerun after changes, failures, gaps, or unresolved concerns. Preserve independent review judgment. Do not restate clear tooling failures.
- Reproduce each changed observable behavior through the real interface. Cover the intended path and the most consequential failure or boundary path.
- For UI changes, exercise the rendered interface, state transitions, loading/empty/error states, accessibility, and relevant viewports. For non-UI changes, exercise the real API, CLI, library entry point, job, migration, packaging, or deployment path.
- Record setup, action or command, input, expected result, and observed result.
Credit returned results or matching stored evidence; a request, acknowledgment,
or expected outcome is not an observed result. Re-run a check that returned
no result; mark a result that cannot be obtained
unverifiedand source-only conclusionsstatic only. - Verify that changed tests fail for the relevant wrong behavior and assert outcomes rather than implementation details. Do not credit brittle, over-mocked, incidental, or snapshot-heavy coverage.
Binding guides
A binding guide is a repository document whose rules a change must follow: the
AGENTS.md and CLAUDE.md files that govern each changed path, the
contribution guide, and the testing, code-style, comment, writing and pull
request guides they point to. List them with
python3 "$SKILL_DIR/scripts/binding_guides.py" --base FIXED_POINT, where
SKILL_DIR is this skill's directory, from the checkout under review. It
prints each guide with the changed paths it governs or the lines that link to
it, following links one level from the instruction files and the contribution
guide; pass --depth 2 when a listed guide only indexes the guides that hold
rules. Exit 2 means Git could not answer: fix the cause it names and rerun.
With no binding guides found, record that and review against the project
instructions you found.
Open every listed guide, then record the binding-guide ledger: one row per rule
the change could break, giving the guide and section, the rule in a few words
and its result. The result is followed, not applicable with the reason, or
every file:line that breaks the rule. A section whose subject the change does
not touch is one not applicable row.
- Check each rule against the complete finding scope, not a sample. When one location breaks a rule, search the whole diff for the same rule before you record the row, and report every instance in one finding with the guide's text as its evidence. This holds as well when a person, a reviewer or a check flagged the first instance.
- Rules for commit messages and pull request titles and bodies get rows marked
for publication; the publication guard step checks each message, title and body against them before it is written.
The ledger is part of the review result: callers return it with their evidence and renew the rows an edit touches.
Review axes
Keep the axes distinct so one cannot mask the other. The discoverability axis, when active, is defined in its reference.
De-duplication
Apply four separate checks across the bounded change and its minimum supporting context:
- Implementation: find repeated code, logic, tests, fixtures, configuration, schemas, workflows, documentation, or competing representations of one concept.
- Work: reuse current issue decisions, prior findings, investigations, and accepted remediation evidence instead of repeating them. Revalidate rather than rediscover when their scope overlaps the change.
- Evidence: coalesce the same event reported by multiple checks, logs, or tools so it is counted once while retaining every source.
- Output: combine candidates with the same cause, impact, and remedy into one finding, preserve provenance, and explicitly reconcile contradictory evidence.
Do not expand finding scope beyond the bounded change. Duplication visible only in supporting context can support an in-scope finding but is not a separate finding there.
Claim and specification
Find missing or partial requirements, incorrect behavior, and unrequested scope. Cite the originating requirement or identify the claim as inferred.
Engineering quality
- Trace changed inputs, authorization, state transitions, failures, retries, concurrency, idempotency, deletions, and side effects where relevant.
- Search the live repository before accepting new helpers, patterns, formats, or abstractions. A second representation or implementation of the same concept is a defect unless the repository documents why it exists.
- Prefer deletion, reuse, direct control flow, and existing dependencies. Report dead paths, duplication, speculative layers, needless wrappers, one-use indirection, and custom code already provided by the platform or dependencies.
- Require names, types, boundaries, and interfaces to reveal intent. Comments should explain rationale, constraints, or non-obvious behavior rather than translate the code; surrounding comment density is not a requirement.
- Treat repeated changes to the same symbol or file as an architectural-risk
signal, not a defect by itself. Raise an
ARCHITECTURE_RISKfinding when the measured churn coincides with mixed responsibilities, recurring fixes or reverts, competing representations, broad blast radius, unstable interfaces, or weak regression coverage. Cite the window, touch count, granularity, and co-signal. - Treat generic best practice and remembered library behavior as leads only. Verify findings against the checked-out code, exact installed version, and current official documentation or source. Repository decisions override generic preferences.
Fresh-review report
Report terms are an interface: callers such as milestone-rush, review
tooling and audits match them literally, so a paraphrase breaks the handoff.
Use these terms verbatim for the lane map, review axes, lane statuses, and
roles: review-axis-to-lane map; de-duplication,
claim and specification, engineering quality, discoverability;
complete, incomplete; coordinator, worker. A plain-language gloss may
follow a term but never replaces it. When lanes ran, label that section with
the map's term and describe your own role there as the coordinator. A short
report may compress wording but keeps every applicable field below.
For a fresh review, lead with the verdict: APPROVE,
APPROVE WITH IMPROVEMENTS, or REQUEST CHANGES. The report ends this
skill's step. Started directly, continue under the
delivery settings; with
entry-points: deliver, the reviewed change and its validated findings go on
to /deliver, which fixes the findings, verifies and publishes the change up to
the configured endpoint (its default when ORCHESTRATION.md sets none).
With stop, end with this report.
Include:
- the claim, comparison boundary, commits and dirty state reviewed;
- active and skipped review axes, with the reason for each skip;
- the material engineering-quality concerns covered and any conditional concern skipped because the changed runtime path did not touch it;
- when the review delegated lanes, the review-axis-to-lane map with each
lane's
completeorincompletestatus, worker candidates the coordinator filtered out with the reason (listed apart from findings), and every coordinator-completed fallback with its reason, or that none was needed; - the binding guides listed and the binding-guide ledger, or that none was found;
- the churn window, symbol/file coverage, and architectural-risk hotspots;
- exact probes and checks with observed results;
- de-duplication coverage, coalesced evidence sources, and merged or conflicted candidate findings;
- actionable findings as
[CR-N][BLOCKING|IMPORTANT|IMPROVEMENT|NITPICK][CLAIM|QUALITY|ARCHITECTURE_RISK| DISCOVERABILITY] file:line: evidence, impact, gain, if not done, smallest remedy; - verified claims, static-only or unreached areas, and retained probe artifacts.
Render every literal repository path, filename including extensionless files, variable, function, method, class, type, and other code identifier as inline code. Keep prose outside code spans.
A remedy that tells the author how to update, commit, or publish the branch names the mechanism the repository documents, not a generic one. Check the project's git workflow first: where it forbids rebasing an ordinary branch, write "merge the base branch in", and reserve stack commands for branches in a confirmed stack. The same applies to review comments and pull request text posted from the report. When a caller has the review result recorded on a pull request, record it where PR descriptions directs.
BLOCKING prevents safe shipment. IMPORTANT has material correctness,
security, operability, test-value, maintainability, simplification, or
comprehension cost. IMPROVEMENT is a verified worthwhile simplification or
current-practice alignment. NITPICK is a small, local polish issue with a
clear remedy and evidence from repository conventions or current code; it must
not represent personal taste. Omit praise, diff narration, subjective style
preferences, and findings without concrete impact.
Every finding also states three facts without a verdict on whether to act: impact, who or what the finding affects on the current code; gain, what improves if it is fixed; and if not done, what concretely happens if it is left. Where the repository has a policy for deciding from them, that policy decides which findings are acted on, and a finding it declines is resolved by that decline.
Unresolved BLOCKING or IMPORTANT findings prevent readiness. Optional polish
does not block readiness, but every verified gap against the agreed requirements
must be resolved regardless of severity; assigning it a lower severity does not
waive it.
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.

