AGENT SKILL

代码审查

code-review

对当前会话的更改执行代码审查。当用户通过 Changes 工具栏中的 Run Code Review 按钮请求代码审查时使用。

License 许可
MIT
所属仓库
microsoft/vscode
最近更新
2026-11-15
Stars
★ 20w
Forks
4.4w

01 前言 Front Matter

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.

02 资源文件 2

03 SKILL.md 正文

<!-- 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.

04 同仓库更多 Skills

microsoft
microsoft/vscode

vscode-ui

Present metrics, comparisons, tables, bar charts, and expandable details as native visuals inside an Agents window response. Use when numbers or a comparison are clearer shown than described. Not for diagrams, mockups, or standalone documents.

★ 20w
microsoft
microsoft/vscode

html-preview

Create visual reports, implementation plans, code-review explainers, comparisons, diagrams, and static UI mockups as inline HTML previews in the Agents window. Use when the user asks for visual or rendered output, not ordinary HTML code examples.

★ 20w
microsoft
microsoft/vscode

endgame-status

Report VS Code endgame status, focusing on test-plan progress, tester activity, release-branch PRs, and release-build availability.

★ 20w
microsoft
microsoft/vscode

sweeper-query

Answer natural-language questions about the VS Code Sweeper's published issue index (index-<name>.json for microsoft/vscode and the enrolled family repos) — which issues are agent-ready to implement or plan, what the sweeper proposed for an assignee or area, whether the sweeper knows a report as a duplicate, the highest-value open bugs in a lane — and, for one issue, the review's full record (evidence with file citations, fix brief, proposed comment). Use ONLY when the request explicitly names the sweeper — "sweeper", "vscodesweeper", "sweeper-query", a sweeper verdict, record, brief or index, an agent-ready issue — or asks what "the sweeper" found, proposed or knows. Do NOT use for general questions about issues, duplicates, priorities or ranking that do not mention the sweeper. Read-only; discovery only.

★ 20w
microsoft
microsoft/vscode

仓库技能与指令更新

update-skills

当在会话中发现重要经验教训时,创建或更新仓库技能与指令。当用户说"learn!"、识别出重要模式或陷阱,或需要为未来会话捕获可复用的领域知识时使用。

软件开发工程师插件与技能管理
★ 20w
microsoft
microsoft/vscode

Pull Request 更新与推送

update-pr

更新当前会话的拉取请求(Pull Request)。当用户希望把新变更推送到已有 PR 时使用。

软件开发工程师代码仓库协作管理
★ 20w