code-review
Skill0 starsChanged 9 days agoMITView on GitHub
Run an evidence-driven code review that selects correctness, regression, architecture, risk, security, privacy, testing, and performance lenses by change risk. Use for /code-review and general pull-request review requests.
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 repository26 other files it gives its agents.
- code-reviewSkill
- review-architectureSkill
- review-correctnessSkill
- review-performanceSkill
- review-privacySkill
- review-regressionsSkill
- review-riskSkill
- review-securitySkill
- review-testingSkill
- code-reviewSkill
- review-architectureSkill
- review-correctnessSkill
- review-performanceSkill
- review-privacySkill
- review-regressionsSkill
- review-riskSkill
- review-securitySkill
- review-testingSkill
- review-architectureSkill
- review-correctnessSkill
- review-performanceSkill
- review-privacySkill
- review-regressionsSkill
- review-riskSkill
- review-securitySkill
- review-testingSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Read the PR description, issue, commit messages, repository instructions, and changed files.
- Distinctive: line 34
Ask or run the narrowest available verification: static tracing, targeted tests, build/type checks, simulations, fuzz/property tests, …
- Distinctive: line 58
Do not substitute a generic diff summary for verification.
- Distinctive: line 89
Only the first two levels support a defect finding.
- Distinctive: line 152
Test or validation evidence, and whether its basis is independent or inherited.
- Very specific: line 161
Start the final report with the count of verified findings.
- Distinctive: line 169
Write inline comments for a business reader before a technical reader.
- Distinctive: line 172
Avoid unexplained framework names, implementation trivia, or jargon in the first sentence.
- Distinctive: line 199
Never post hypotheses, approve a pull request, merge, or modify code unless the user explicitly requests that separate action.
“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
Workflow
- Read the PR description, issue, commit messages, repository instructions, and changed files. State the intended behavior in one sentence. If intent is missing, record it as an evidence gap.
- Establish the merge-base diff and identify affected data, users, external interfaces, operational dependencies, and rollback mechanism.
- Classify risk by the change, not its author:
- Low: docs, copy, isolated internal changes, or additive code behind a flag. Run correctness, regressions, and testing.
- Medium: ordinary product behavior, state handling, caching, external interfaces, or configuration. Add architecture and risk.
- High: authentication, authorization, billing, secrets, personal data, CI/release workflows, migrations, destructive operations, or broad blast radius. Run every applicable lens, including security, privacy, and performance. Missing evidence raises the tier; it never silently lowers it.
- Name the load-bearing assumptions before reading the implementation's explanation of itself, and decide what evidence would show each one wrong.
- Load and follow the selected sibling skill instructions before applying its
lens:
review-correctness,review-regressions,review-testing,review-architecture,review-risk,review-security,review-privacy, andreview-performance. Run selected lenses independently, but do not treat their agreement as independent evidence: they read the same requirements, code, and tests. - Ask or run the narrowest available verification: static tracing, targeted tests, build/type checks, simulations, fuzz/property tests, benchmarks, or screenshots for UI changes. Prefer evidence that can contradict the implementation over evidence that restates it.
- Deduplicate lens findings, preserve the strongest evidence, and separate verified findings from evidence gaps.
- Deliver: risk tier; verified finding count and what it covers; findings sorted by impact, each with confidence and verification status; load-bearing assumptions with their basis; decisions for the owner; evidence ledger; tests run and results; evidence gaps; rollback and residual-risk summary.
Let risk decide the evidence required
- Low risk with clear intent, passing required checks, and no material uncertainty: say that the change appears eligible for automatic approval under the team's agreed policy. Do not approve it yourself.
- Medium and high risk: the report is for a human owner, who reviews the documented intent, constraints, evidence, and unresolved questions rather than every line. Make it answerable: does the evidence address the failure that matters? Twenty checks that never test the harmful assumption do not.
- An unresolved, high-impact concern is not cleared by another approval, another reviewer, or more tests of the same assumption. State the evidence that would resolve it and mark the change not ready until it exists.
Do not substitute a generic diff summary for verification. A change that lacks the evidence required for its risk tier is not ready for a confident review.
Evidence contract
Review the change's stated intent, affected boundary, and non-negotiable constraints before judging implementation details. Build an evidence ledger:
- Intent and constraints: What behavior is changing? What must remain true? What is explicitly out of scope? What promise does the change make to the user or the business?
- Load-bearing assumptions: The beliefs the change depends on to be safe, and the basis for each (see below).
- Evidence collected: Commands, tests, simulations, traces, benchmarks, screenshots, or repository contracts actually inspected or run.
- Result: What each source of evidence proves, disproves, or does not cover.
- Evidence gaps: Important behavior that cannot be verified from the available code, tests, tooling, or stated intent.
- Residual risk and rollback: What may still fail, how it will be detected, and how the change can be safely reversed.
Rank evidence in this order:
- Reproducible test, simulation, benchmark, screenshot, command output, or observed failing behavior.
- A traced code path tied to a documented contract, invariant, or established repository behavior.
- Inference from a diff, name, or pattern alone.
Only the first two levels support a defect finding. Treat level-three concerns as evidence gaps or questions, never as asserted bugs. A test or mock counts as evidence about the outside world only when its behavior comes from a source other than the implementation under review.
Challenge the shared assumption
The implementation, its tests, and a reviewer can all agree and still rest on the same wrong assumption. Three green lights can be one assumption repeated three times. Before concluding, name the assumptions the change depends on — for example, "a missing response means the action failed" — and for each ask:
What would show that this reasoning is wrong?
Then look for evidence that does not inherit the implementation's view:
- An agreed business constraint or a separately specified expected outcome.
- An external service contract, documentation, or integration test against the real behavior.
- An observation, log, or trace that contradicts the current explanation.
Record each assumption's basis as independent (contract, documentation, observed behavior, owner decision) or inherited (the implementation, a mock written to make it pass, or the same incomplete requirements). An inherited basis is an evidence gap, however convincing the explanation sounds.
Agreement is not independence. Passing tests, a second review lens, another model, or another person add confidence only when they rely on different evidence. Several reviewers reading the same requirements, mocks, and code can reproduce the same mistake; do not count their agreement as corroboration.
Impact, confidence, and verification
Report these as three separate properties of every finding and gap; never blend them into one reassuring score:
- Impact: what happens, and to whom, if the concern is real.
- Confidence: how strongly the evidence supports the concern or its absence.
- Verification:
verified,partially verified, orunverified, and by which evidence.
A high-impact concern stays in the report while it is unverified; low confidence lowers how it is labelled, not whether the owner hears about it. A confident explanation resting on a weak or inherited test is still unverified.
Finding rules
Report only issues introduced or made reachable by the reviewed change. Mark pre-existing issues separately. Do not report style preferences, speculative problems, or cleanup unless they create a concrete correctness, security, privacy, reliability, or performance impact.
Each finding must include:
- Severity (impact), confidence, and verification status, stated separately.
- Business context first: the affected customer, operational outcome, revenue, compliance, trust, or delivery risk.
- A concrete failure scenario in plain language.
- Changed file and line evidence, then the technical cause in only the detail needed to make the remediation clear.
- A specific remediation or verification step.
- Introduced versus pre-existing classification.
- Test or validation evidence, and whether its basis is independent or inherited.
Behavior can work exactly as written and still break the promise. When the change quietly decides something an owner should decide — availability over verified access, a destructive step before its replacement is confirmed, retrying an action whose outcome is unknown — report it as a decision for the owner, with the promise at stake, even if no line of code is wrong.
Start the final report with the count of verified findings. If there are none,
say 0 verified findings plainly — and say what that covers. "No issues found"
is not proof that no important issue exists: state what was checked, what
supports the conclusion, and where confidence stops. Include evidence gaps,
unverified high-impact concerns, and decisions for the owner separately.
Inline comment style
Write inline comments for a business reader before a technical reader. Lead with what could go wrong, for whom, and under what condition. Follow with the minimum code-level evidence needed to make the concern credible and actionable. Avoid unexplained framework names, implementation trivia, or jargon in the first sentence.
Use this shape:
[Severity] Business consequence
When <business scenario>, <customer, operational, financial, compliance, or
trust consequence> can occur. This change <plain-language explanation of why>.
Evidence: <file:line and concise technical cause>
Suggested next step: <specific fix or verification>For example, write A customer could be charged twice after a payment timeout
instead of Missing idempotency guard in retry path. Keep the technical cause
in the evidence line. Do not post a comment if the business consequence cannot
be explained from the available evidence.
Pull-request behavior
Produce a local report by default. Post GitHub comments only when the user explicitly asks and the available integration supports it. Post only high-confidence, evidence-backed, actionable findings inline and one concise business-impact summary. Keep broad process notes, evidence gaps, and low-confidence concerns in the local report rather than posting them inline. Never post hypotheses, approve a pull request, merge, or modify code unless the user explicitly requests that separate action.
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.

