code-review
microsoft/vscode · Agent Skill
自動審查程式碼變更,識別錯誤、漏洞並提出改進建議,以提高軟體品質和安全性。
前往安裝 ↓安裝選項
預設為含檢閱步驟的提示。您可以切換到直接指令。
複製提示,貼入 Claude、Codex 或其他助手,它會檢視技能頁面並安裝。
I'd like to install this Claude Code skill: https://github.com/microsoft/vscode/tree/main/src/vs/sessions/skills/code-review Please review the SKILL.md file, verify the skill is legitimate, then copy the skill folder into .claude/skills/ of my project.
直接指令會跳過檢閱 — 請先檢查原始碼。
npx skills add https://github.com/microsoft/vscode/tree/main/src/vs/sessions/skills/code-review
安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。
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.