Agent Skills
› asJEI/vscode
› code-review
code-review
GitHub该技能用于对当前会话中的代码变更进行审查。通过分析文件差异,检查正确性、安全性、清晰度及测试覆盖等,并使用工具在特定行号添加具体可操作的改进建议,仅输出评论不修改代码。
触发场景
用户请求代码审查
点击运行代码审查按钮
安装
npx skills add asJEI/vscode --skill code-review -g -y
SKILL.md
Frontmatter
{
"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."
}
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
- 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.
版本历史
- ce4db66 当前 2026-07-19 08:58


