Skip to main content

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.

跳到安装

来源信息

仓库
microsoft/vscode
最近来源活动
2026年6月10日 14:47
检测到的 SKILL.md 语言
英语
星标
192,746
分支
42,911

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

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.
在 GitHub 查看