code-review
Skill0 starsChanged 32 days agoMITView on GitHub
Review pull requests and diffs like a senior engineer. Use when the user asks to review a PR, check code quality, analyze changes, or provide feedback on a branch or diff. Reads the actual code changes, flags real issues, groups feedback by severity, and never rubber-stamps.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- doggy8088/spec-kittheir own version, first seen Nov 9, 2026
- strelov1/freehiretheir own version, first seen Nov 9, 2026
- storybookjs/storybooktheir own version, first seen Nov 8, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- supabase/supabasetheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 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 in 9 projects that use this
transitive-bullshitSkillcompare-screenshots
Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.
Also in 5 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
- +2 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★ 309ksame name
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 195ksame name
- github/spec-kit★ 149ksame name
- ggml-org/llama.cpp★ 134ksame name
- supabase/supabase★ 115ksame name
- storybookjs/storybook★ 91ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- vectorize-io/hindsight★ 60ksame 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 repository68 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- accessibilitySkill
- api-designSkill
- api-versioningSkill
- authSkill
- background-jobsSkill
- cachingSkill
- capacity-planningSkill
- changelogSkill
- chaos-engineeringSkill
- ci-cdSkill
- circuit-breakerSkill
- claude-best-practicesSkill
- code-commentsSkill
- code-hygieneSkill
- code-structureSkill
- commit-styleSkill
- concurrency-and-lockingSkill
- database-transactionsSkill
- data-consistencySkill
- debug-infra-startupSkill
- debug-sessionSkill
- demo-video-creatorSkill
- demo-video-script-creatorSkill
- dependency-injectionSkill
- dependency-updateSkill
- disk-cleanupSkill
- distributed-tracingSkill
- dockerSkill
- env-configSkill
- env-setupSkill
- error-handlingSkill
- event-driven-architectureSkill
- feature-flagsSkill
- file-storageSkill
- graceful-shutdownSkill
- idempotencySkill
- input-validationSkill
- jars-engineering-blogsmithSkill
- jars-workshop-builderSkill
- licensingSkill
- loggingSkill
- memory-and-allocationsSkill
- migrate-dbSkill
- monitoringSkill
- multi-tenancySkill
- notificationsSkill
- openapiSkill
- paginationSkill
- perf-profileSkill
- pr-descriptionSkill
- query-optimizationSkill
- rate-limitingSkill
- refactorSkill
- releaseSkill
- runbook-writerSkill
- searchSkill
- secrets-auditSkill
- simplifySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 184 edited versions we read keep these.
10
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
- Very specific: line 14
The repository's rules win: Check CONTRIBUTING.md, CLAUDE.md, AGENTS.md, linting configs, and the PR template for what the project cares …
- Distinctive: line 40
Read the full diff, not just the file list.
- Distinctive: line 61
Look at each change through these lenses:
- Distinctive: line 81
Do failing test names clearly describe what broke?
- Distinctive: line 136
Do not approve by default: If you found a critical or high issue, say "Request changes" and explain what blocks the merge.
- Distinctive: line 139
When the user asks you to post the review:
- Distinctive: line 157
Only post a review when the user explicitly asks.
- Distinctive: line 179
Nitpicking style: when a linter should catch it: let the tools do that job.
- Distinctive: line 187
If the diff is >500 lines and mixes multiple concerns (refactor + feature + dependency bump), suggest splitting it:
- Distinctive: line 196
If CI is red, check whether the failure is related to the change.
- Distinctive: line 198
When the PR description says "Tested manually" but provides no steps, ask for them.
“Common” is measured: kept by at least 6 in 10 of the 184 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
Give constructive, actionable feedback on a pull request or diff. Catch real problems — bugs, security flaws, missing tests, unclear names — and explain why they matter and how to fix them. Skip nitpicks unless they hide a real issue.
Ground rules
- The repository's rules win. Check
CONTRIBUTING.md,CLAUDE.md,AGENTS.md, linting configs, and the PR template for what the project cares about. - Read the actual code. The PR description is the author's intent; the diff is the truth.
- Flag real issues only. A comment should prevent a bug, improve clarity, or catch a standard violation. Personal style preferences are not blockers.
- Be specific and kind. Point to the file, line, and function. Explain the problem and suggest a fix. Write for a peer, not a subordinate.
- Never approve or merge unless the user explicitly asks you to do so.
Workflow
1. Read the context
gh pr view <number> # title, description, status, checks
gh pr diff <number> # the full diff
gh pr view <number> --json files -q '.files[].path' # changed files listOr for a local branch:
git diff <base>...<branch>
git log <base>..<branch> --onelineRead the full diff, not just the file list. Know what actually changed before you comment.
Also check:
- CI status: failing tests, lint errors, build issues
- PR size: >500 lines often means multiple concerns mixed
- Description quality: does it explain the why and how to test?
2. Check for critical issues first
Review in priority order. Stop and flag the high-severity issues before commenting on style.
| Priority | What to catch |
| Critical | Security: SQL injection, XSS, exposed secrets, broken auth/authz, unsafe deserialization, path traversal |
| High | Logic bugs, null/undefined crashes, off-by-one errors, race conditions, data loss, incorrect error handling |
| Medium | Missing tests for new logic, untested edge cases, poor error messages, performance regressions (O(n²) in a loop) |
| Low | Confusing names, missing docs for public APIs, code duplication, inconsistent style (when no linter catches it) |
3. Analyze by area
Look at each change through these lenses:
Correctness
- Does the code do what the PR says it does?
- Are edge cases handled? (empty input, null, zero, max values, concurrent access)
- Are errors caught and surfaced clearly?
- Does it break existing behaviour? (Check call sites if unclear.)
Security
- User input: validated, sanitized, parameterized?
- Authentication/authorization checks in place?
- Secrets: are they hardcoded, logged, or returned in responses?
- File/path operations: are they safely bounded?
Testing
- Is new logic covered by tests?
- Are tests meaningful, or do they just call the code and assert
true? - Do failing test names clearly describe what broke?
Maintainability
- Are function and variable names clear without needing a comment?
- Is the code in the right place, or does it increase coupling?
- Does it follow the existing pattern, or introduce a new style for no reason?
- Are comments present only when the code cannot be made obvious?
Performance
- New O(n²) or O(n³) loops where n can be large?
- Unnecessary database queries inside loops?
- Large data loaded into memory when streaming would work?
4. Structure your feedback
Group comments by file, then by severity. Use this format:
## Summary
One or two sentences: the overall quality, what's strong, and the main concern if any.
## Critical
- **file.py:42** — SQL injection risk: user input flows into raw query. Use parameterized queries.
- **auth.ts:15** — Missing permission check. Any user can delete any post. Add `requireOwner()`.
## High
- **api.py:88** — `result` can be `None` when the query fails, but line 92 calls `result.id` without a check. Wrap in `if result:` or return early.
## Medium
- **service.ts:120** — New `processItems()` has no tests. Add a test that covers the empty array case and the success path.
- **utils.py:200** — Iterating `get_user(id)` in a loop (O(n) queries). Fetch all users in one query before the loop.
## Low / Suggestions
- **README.md** — Deployment steps are missing the new `FEATURE_FLAG` env var.
- **api.ts:56** — `data` is vague. Rename to `requestPayload` or `userData`.
## Positive notes
- Clean separation between validation and business logic.
- Error messages are actionable.
- Tests cover the happy path and the two edge cases.Skip sections with no findings. Scale the review to the change: a 10-line fix does not need six paragraphs.
5. Decide: approve, request changes, or comment
| Verdict | When to use |
| Request changes | Critical or high-severity issues that must be fixed before merge. |
| Comment | Suggestions, questions, or low-priority feedback. The PR could merge as-is. |
| Approve | No issues, or only minor suggestions. The code is ready. |
Do not approve by default. If you found a critical or high issue, say "Request changes" and explain what blocks the merge.
When the user asks you to post the review:
gh pr review <number> --comment --body-file - <<'EOF'
<your review markdown>
EOF
# or to request changes:
gh pr review <number> --request-changes --body-file - <<'EOF'
<your review markdown>
EOF
# or to approve:
gh pr review <number> --approve --body-file - <<'EOF'
<your review markdown>
EOFOnly post a review when the user explicitly asks. Drafting the review text is the default.
6. Suggest, don't rewrite
Your job is to review, not to implement the fix. Point out the issue, explain why it matters, and describe or sketch the fix. Let the author write the code.
Exception: if the user asks you to apply a fix ("make that change"), then do it on a new branch or commit.
Examples
| Weak feedback | Strong feedback |
| "This looks bad." | "user_input is interpolated directly into the SQL string on line 42, allowing injection. Use a parameterized query: cursor.execute('SELECT * FROM users WHERE id = ?', (user_id,))." |
| "Add tests." | "calculateDiscount() has no tests. Add a test for the 0% case and the 100% case, since the function divides by price and could fail on zero." |
| "Naming could be better." | "data on line 88 is vague. Rename to invoiceData or customerPayload to match the other functions in this module." |
| "LGTM 🚀" (when there are real issues) | (Don't approve when problems exist. Be honest.) |
Anti-patterns to avoid
- Rubber-stamping: approving without reading the diff.
- Nitpicking style when a linter should catch it: let the tools do that job.
- Rewriting the PR: reviewing is not the same as implementing.
- Being vague: "This could be better" does not help. Say what and why.
- Bike-shedding: long debates on subjective preferences (tabs vs spaces, names) when the code works and follows the repository's style.
When the PR is too large
If the diff is >500 lines and mixes multiple concerns (refactor + feature + dependency bump), suggest splitting it:
This PR changes the auth system, adds the dashboard, and bumps three dependencies. Reviewing all of this together is hard. Could you split it into three PRs: (1) the auth refactor, (2) the dependency bumps, (3) the dashboard? That way each one is easier to test and approve.
Notes
- If CI is red, check whether the failure is related to the change. If so, mention it in the review. If not, ask whether it's a known flaky test.
- When the PR description says "Tested manually" but provides no steps, ask for them. You need to know how to verify the fix.
- Screenshots and recordings for UI changes are often more useful than prose. Ask for them when they are missing.
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.

