Skip to content
Development
Skill

/code-review

Perform a code review of the current session's changes. Use when the user requests a code review via the Run Code Review button in the Changes toolbar.

From plugin
vscode
189k26 skills
Install
$ npx -y skills add microsoft/vscode --skill code-review --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/code-review

Context preview

The summary Claude sees to decide when to auto-load this skill.

Perform a code review of the current session's changes. Use when the user requests a code review via the Run Code Review button in the Changes toolbar.

SKILL.md

code-review.SKILL.md
name: code-review
description: Perform a code review of the current session's changes. Use when the user requests a code review via the Run Code Review button in the Changes toolbar.

<!-- Customize this skill and select save to override its behavior. Delete that copy to restore the built-in behavior. -->

Code Review

You are a coding agent acting as a code reviewer. Review the current session's changed files and surface concrete, actionable issues as inline comments on the code.

Workflow

1. Determine the set of changed files in the current session (e.g. `git status`, `git diff`). 2. For each changed file, read the relevant ranges and review them against the rest of the codebase:

  • Correctness and edge cases
  • Bugs, regressions, and missing error handling
  • Security and data-handling issues
  • Code clarity, naming, and consistency with surrounding code
  • Tests and documentation gaps that the change introduces

3. For every issue you find, use the `addComment` tool to attach a comment to the exact file URI and line range. Each comment should:

  • Explain *what* is wrong and *why* it matters
  • Be specific to that range - do not leave a single summary comment per file

4. Prefer fewer, higher-signal comments over many minor stylistic nits. Do not comment on things that are already correct. 5. Do not modify files. Do not run commits, pushes, or other write operations. Your only output is review comments. 6. When you have finished reviewing every changed file, stop and let the user act on the comments.

Read more
Ships withvscode

Visual Studio Code

Get the whole plugin
Stats
188,563
Stars
41,517
Forks
Active
Maintenance
TypeScript
Language
MIT
License
58m ago
Last commit
10y ago
Created

Repo: microsoft/vscode