1mangesh1/dev-skills-collection/code-review
Claude Code and agent skill by 1mangesh1/dev-skills-collection
- community
Checking that the SKILL.md file is still in the repository.
Code review checklists, PR review patterns, feedback techniques, and review automation. Use when user asks to "review this code", "code review checklist", "PR review template", "review best practices", "write review feedback", "review this PR", "how to give feedback on code", "PR too large", "split this PR", "review turnaround time", "automated code review", "CODEOWNERS", "pair review", "when to request changes", "code review tool", "review security", "design review", "performance review", "test coverage review", or any code review and feedback tasks.
Install
npx vskill@latest install 1mangesh1/dev-skills-collection/code-reviewSKILL.md
Code Review
Checklists, patterns, feedback techniques, and automation for effective code reviews.
Review Checklist by Category
Logic and Correctness
- [ ] Does the code do what the PR description says it does?
- [ ] Are edge cases handled (empty inputs, boundary values, concurrent access)?
- [ ] Are error conditions handled gracefully with appropriate error types?
- [ ] Are there off-by-one errors in loops, slices, or pagination?
- [ ] Are null/undefined/nil cases handled?
- [ ] Does the control flow match the intended behavior (early returns, fallthrough)?
Security
- [ ] No hardcoded secrets, keys, tokens, or passwords
- [ ] Input validation on all user-supplied data (query params, body, headers)
- [ ] No SQL injection, XSS, or command injection vectors
- [ ] Authentication and authorization checks on every endpoint
- [ ] Sensitive data not logged, not in error messages, not exposed in responses
- [ ] CSRF protection on state-changing requests
- [ ] Rate limiting on sensitive endpoints (auth, password reset)
Performance
- [ ] No N+1 database queries (queries inside loops)
- [ ] No memory leaks (event listeners, timers, subscriptions not cleaned up)
- [ ] Large datasets paginated, not loaded entirely into memory
- [ ] Expensive computations cached where appropriate
- [ ] No blocking operations on the main thread or event loop
- [ ] Database queries use indexes (check EXPLAIN plans for new queries)
Readability and Maintainability
- [ ] Code is understandable without needing the author to explain it
- [ ] Functions have a single responsibility and a clear name
- [ ] No duplicated logic (DRY where it reduces coupling, not blindly)
- [ ] Naming conventions are consistent with the codebase
- [ ] No dead code, commented-out code, or unused imports
- [ ] Complex logic has comments explaining why, not what
Testing
- [ ] Tests cover the primary success path
- [ ] Edge cases and error paths tested
- [ ] Tests are deterministic (no flaky tests introduced)
- [ ] Test names describe the behavior, not the implementation
- [ ] Mocks are minimal and realistic
How to Give Constructive Feedback
The praise sandwich is patronizing and everyone sees through it. Be direct and kind. Critique the code, not the person.
Principles
- Be specific. "This will throw if
useris null on line 42" beats "handle errors better." - Explain the why. Don't just say what to change -- explain the risk or benefit.
- Offer alternatives. If you flag a problem, suggest a solution or direction.
- Acknowledge tradeoffs. If a shortcut is reasonable given constraints, say so.
- Ask genuine questions. "What's the reasoning for X?" is valid when you don't understand.
Prefixed Comments
Direct Feedback Examples
PR Size Guidelines
When to Split
- Refactoring mixed with feature changes. Ship the refactor first.
- Infrastructure changes mixed with business logic.
- Database migrations with application code. Migrate first, then use.
- Multiple independent features or fixes bundled together.
When Large PRs Are Acceptable
- Generated code (protobuf, OpenAPI, migration boilerplate).
- Bulk renames or automated reformatting.
- Initial project setup or deleting large amounts of dead code.
Review Speed and Turnaround
Slow reviews kill velocity. Fast reviews compound into fast teams.
- Target: First-pass review within 4 business hours.
- Unblocking: If a PR blocks other work, prioritize it. Say so in the review request.
- Async norms: "I'll review by end of day" is better than silence.
- Re-reviews: After feedback is addressed, re-review within 2 hours. Focus on the diff, don't restart.
- Don't batch: Review PRs as they come in. End-of-day batching creates bottlenecks.
- Stale PRs: Unreviewed for 24+ hours? Escalate or reassign.
Automated Review Tools
Automate what machines do better than humans. Save reviewers for logic and design.
GitHub Actions
Danger.js
Other Tools
- CodeRabbit -- AI-powered review summaries and inline suggestions
- SonarQube / SonarCloud -- static analysis for bugs, smells, security hotspots
- Codacy / CodeClimate -- automated code quality scoring
- Reviewbot / Prow -- bot-driven labeling, assignment, merge gating
- Codecov / Coveralls -- test coverage tracking and PR comments
Security-Focused Review
Check against OWASP Top 10 patterns most likely to appear in application code.
- Injection: User input reaching queries, commands, or templates without parameterization.
- Broken auth: Missing auth checks on new endpoints. Tokens that don't expire.
- Data exposure: PII in logs, error messages, or API responses. Secrets in client code.
- Access control: Can user A access user B's resources? Admin routes unprotected?
- Misconfiguration: Debug mode in production. Default credentials. Verbose errors.
- XSS: User input rendered without encoding in HTML or JavaScript contexts.
- SSRF: Server requests using user-controlled URLs without allowlist validation.
Auth Review Specifics
- Session tokens regenerated after login.
- Password reset tokens are single-use and time-limited.
- JWT validation checks signature, expiration, issuer, and audience.
- API keys scoped to minimum necessary permissions.
Performance Review Patterns
N+1 Queries
Memory Leaks
- Event listeners without cleanup on unmount/destroy.
- Intervals/timeouts not cleared. Subscriptions not unsubscribed.
- Growing caches without eviction. Closures holding references to large objects.
Unnecessary Renders (React)
- Objects or arrays created inline in JSX props (new reference every render).
- Missing
useMemo/useCallbackfor expensive computations or callback props. - Context providers with unmemoized object values.
Reviewing Database Migrations
Migrations deserve extra scrutiny because they're hard to reverse in production.
- [ ] Is the migration reversible? Does the rollback function work?
- [ ] Will it lock tables? Adding a column with default on large tables locks in some databases.
- [ ] Are new columns nullable or have defaults? Non-nullable without default fails on existing rows.
- [ ] Indexes added concurrently where possible (
CREATE INDEX CONCURRENTLY)? - [ ] Data migration separated from schema migration?
- [ ] Is the migration idempotent (safe to run twice)?
- [ ] Estimated run time tested against production-sized data?
- [ ] Dropping columns has a deprecation path (stop reading first, then drop)?
Common Antipatterns in Reviews
Nitpicking -- Commenting on formatting and cosmetics a linter should catch. If you're debating semicolons, add a linter rule.
Rubber-Stamping -- "LGTM" on a 500-line PR after 2 minutes. If you can't review properly, let someone else.
Bike-Shedding -- Long debates on trivial matters while ignoring real issues. Keep comments proportional to impact.
Gatekeeper Mentality -- Blocking PRs over personal style preferences not in the team's style guide. Enforce shared standards, not individual taste.
Drive-By Reviews -- One vague comment ("this seems off") then disappearing. Either review thoroughly or don't start.
Review Templates by PR Type
Feature PR
Bugfix PR
Refactor PR
Dependency Update PR
Code Ownership and CODEOWNERS
- Keep ownership granular. One team owning everything defeats the purpose.
- Review CODEOWNERS quarterly. Remove departed members. Update assignments.
- Use for mandatory review, not as a notification mechanism.
- Combine with branch protection rules requiring CODEOWNERS approval.
Pair Review vs Async Review
Pair Review (Synchronous)
Best for: Complex architecture, unfamiliar codebases, onboarding, contentious designs.
- Faster resolution. No async back-and-forth.
- Higher bandwidth catches design issues written comments miss.
- Time-expensive. Reserve for PRs where async would take 3+ rounds.
Async Review (Standard)
Best for: Routine changes, well-understood domains, distributed teams.
- Reviewer reads at their own pace. More thoughtful.
- Written feedback creates searchable record.
- Risk of miscommunication. Tone is hard in text.
When to Switch from Async to Pair
- More than 2 rounds of back-and-forth on the same issue.
- Reviewer and author disagree and comments aren't resolving it.
- The PR touches unfamiliar territory needing a walkthrough.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-review/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/1mangesh1/dev-skills-collection/code-review)