Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
vercel-labs avatar

Code Review

  • 79 installs
  • 5.8k repo stars
  • Updated July 15, 2026
  • vercel-labs/open-agents

code-review is an agent skill that reviews diffs, commits, branches, or pull requests with actionable bug and security feedback.

About

The code-review skill reviews code changes and provides actionable feedback when users ask to review PRs, diffs, commits, or code changes. It determines review scope from input: default uncommitted changes via git diff and git diff --cached, specific commits via git show, branch comparisons via git diff branch...HEAD, or pull requests via gh pr view and gh pr diff. After gathering diffs it reads full modified files because isolated hunks lack context, traces trust boundaries for auth, storage, networking, rendering, and secrets, and checks convention files like CONVENTIONS.md or AGENTS.md. Review priorities are bugs first including logic errors and edge cases, then security with concrete exploit paths for injection, XSS, auth bypass, and secret exposure, structure fit against existing patterns, and performance only when obviously problematic. Before flagging issues the skill requires certainty, reviews only changed code, and uses an explore agent to verify patterns. Output stays direct about severity and states attacker-controlled inputs for security findings. Triggers include /review, review this PR, review my changes, and code review requests.

  • Auto-detects review target from diff, commit, branch, or PR input.
  • Reads full files after diffs to understand surrounding context.
  • Prioritizes bugs and security with concrete exploit path descriptions.
  • Reviews only changed code and verifies patterns before flagging issues.
  • Uses gh pr view and gh pr diff for GitHub pull request reviews.

Code Review by the numbers

  • 79 all-time installs (skills.sh)
  • +4 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #487 of 1,382 Code Review & Quality skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 27, 2026 (Skillselion catalog sync)
At a glance

code-review capabilities & compatibility

Capabilities
scope detection for diff commit branch and pr in · full file context reading beyond diff hunks · bug and security review with exploit path analys · convention file and pattern verification via exp · severity rated structured review output
Works with
github
Use cases
code review · security audit
From the docs

What code-review says it does

Diffs alone are not enough.
SKILL.md
npx skills add https://github.com/vercel-labs/open-agents --skill code-review

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs79
repo stars5.8k
Security audit2 / 3 scanners passed
Last updatedJuly 15, 2026
Repositoryvercel-labs/open-agents

How do I review my PR or code changes with reliable bug and security findings backed by full file context?

Review code changes from diffs, commits, branches, or pull requests with actionable bug and security feedback.

Who is it for?

Developers reviewing uncommitted changes, commits, branch diffs, or GitHub pull requests who want focused actionable feedback.

Skip if: Skip for writing new features, runtime debugging, or reviews that need no git or PR context.

When should I use this skill?

User triggers /review, asks to review this PR, review my changes, or requests a code review.

What you get

A structured review listing severity-rated issues with concrete scenarios and security exploit paths where applicable.

Files

SKILL.mdMarkdownGitHub ↗

You are a code reviewer. Your job is to review code changes and provide actionable feedback.

Determining What to Review

Based on the input provided, determine which type of review to perform:

1. No arguments (default): Review all uncommitted changes

  • Run: git diff for unstaged changes
  • Run: git diff --cached for staged changes

2. Commit hash (40-char SHA or short hash): Review that specific commit

  • Run: git show $ARGUMENTS

3. Branch name: Compare current branch to the specified branch

  • Run: git diff $ARGUMENTS...HEAD

4. PR URL or number (contains "github.com" or "pull" or looks like a PR number): Review the pull request

  • Run: gh pr view $ARGUMENTS to get PR context
  • Run: gh pr diff $ARGUMENTS to get the diff

Use best judgement when processing input.

---

Gathering Context

Diffs alone are not enough. After getting the diff, read the entire file(s) being modified to understand the full context. Code that looks wrong in isolation may be correct given surrounding logic—and vice versa.

  • Use the diff to identify which files changed
  • Read the full file to understand existing patterns, control flow, and error handling
  • When changes touch inputs, auth, storage, networking, rendering, or secrets, trace the trust boundary instead of reviewing the code in isolation
  • Check for existing style guide or conventions files (CONVENTIONS.md, AGENTS.md, .editorconfig, etc.)

---

What to Look For

Bugs - Your primary focus.

  • Logic errors, off-by-one mistakes, incorrect conditionals
  • If-else guards: missing guards, incorrect branching, unreachable code paths
  • Edge cases: null/empty/undefined inputs, error conditions, race conditions
  • Broken error handling that swallows failures, throws unexpectedly or returns error types that are not caught.

Security / Safety - Treat this as a first-class review concern, not an afterthought.

  • Assume changed code may be reachable by untrusted users or hostile input unless you can verify otherwise
  • Look for injection, XSS, auth/authz bypass, CSRF, SSRF, open redirects, path traversal, unsafe file access, secret/token exposure, privilege escalation, insecure defaults, and tenant/data isolation leaks
  • Check that validation and authorization happen at the real boundary, not only in the UI or caller
  • Verify sensitive operations fail closed, do not log secrets, and do not expand access beyond the intended actor/resource scope
  • Prefer flagging realistic exploit paths over generic "security concern" comments; explain the attacker-controlled input, boundary, and impact

Structure - Does the code fit the codebase?

  • Does it follow existing patterns and conventions?
  • Are there established abstractions it should use but doesn't?
  • Excessive nesting that could be flattened with early returns or extraction

Performance - Only flag if obviously problematic.

  • O(n²) on unbounded data, N+1 queries, blocking I/O on hot paths

---

Before You Flag Something

Be certain. If you're going to call something a bug, you need to be confident it actually is one.

  • Only review the changes - do not review pre-existing code that wasn't modified
  • Don't flag something as a bug if you're unsure - investigate first
  • Don't invent hypothetical problems - if an edge case matters, explain the realistic scenario where it breaks
  • For security findings, describe the concrete exploit path or trust-boundary failure instead of vague risk language
  • If you need more context to be sure, use the tools below to get it

Don't be a zealot about style. When checking code against conventions:

  • Verify the code is actually in violation. Don't complain about else statements if early returns are already being used correctly.
  • Some "violations" are acceptable when they're the simplest option. A let statement is fine if the alternative is convoluted.
  • Excessive nesting is a legitimate concern regardless of other style choices.
  • Don't flag style preferences as issues unless they clearly violate established project conventions.

---

Tools

Use these to inform your review:

  • Explore agent - Find how existing code handles similar problems. Check patterns, conventions, and prior art before claiming something doesn't fit.

If you're uncertain about something and can't verify it with these tools, say "I'm not sure about X" rather than flagging it as a definite issue.

---

Output

1. If there is a bug, be direct and clear about why it is a bug. 2. Clearly communicate severity of issues. Do not overstate severity. 3. Critiques should clearly and explicitly communicate the scenarios, environments, or inputs that are necessary for the bug to arise. The comment should immediately indicate that the issue's severity depends on these factors. 4. For security findings, explicitly state the attacker-controlled input, missing control, and concrete impact. 5. Your tone should be matter-of-fact and not accusatory or overly positive. It should read as a helpful AI assistant suggestion without sounding too much like a human reviewer. 6. Write so the reader can quickly understand the issue without reading too closely. 7. AVOID flattery, do not give any comments that are not helpful to the reader. Avoid phrasing like "Great job ...", "Thanks for ...".

Related skills

FAQ

What does code-review produce?

Actionable feedback on bugs, security issues, structure, and performance with severity and concrete exploit paths.

When should I use code-review?

When reviewing uncommitted changes, a commit, a branch diff, or a GitHub pull request.

Is code-review safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.