code-review
작성자: microsoft
현재 세션의 변경 사항에 대한 코드 리뷰를 수행합니다. 사용자가 변경 사항 도구 모음의 코드 리뷰 실행 버튼을 통해 코드 리뷰를 요청할 때 사용합니다.
npx skills add https://github.com/microsoft/vscode --skill code-reviewCode 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
- Determine the set of changed files in the current session (e.g.
git status,git diff). - 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
- For every issue you find, use the
addCommenttool 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
- Prefer fewer, higher-signal comments over many minor stylistic nits. Do not comment on things that are already correct.
- Do not modify files. Do not run commits, pushes, or other write operations. Your only output is review comments.
- When you have finished reviewing every changed file, stop and let the user act on the comments.