Agent Skills › HKUDS/DeepCode › review-agent

review-agent

GitHub

只读代码审查代理,专注缺陷发现。读取指定变更或分支差异,识别影响正确性、安全性的具体问题,验证测试与调用路径,按严重等级输出可操作修复建议,不修改文件。

core/skills/builtin/review-agent/SKILL.md HKUDS/DeepCode

触发场景

需要审查未提交代码变更时 请求基于基础分支的差异对比审查时 指定特定 commit 进行代码审查时

安装

npx skills add HKUDS/DeepCode --skill review-agent -g -y
更多选项

非标准路径

npx skills add https://github.com/HKUDS/DeepCode/tree/main/core/skills/builtin/review-agent -g -y

不安装直接使用

npx skills use HKUDS/DeepCode@review-agent

指定 Agent (Claude Code)

npx skills add HKUDS/DeepCode --skill review-agent -a claude-code -g -y

安装 repo 全部 skill

npx skills add HKUDS/DeepCode --all -g -y

预览 repo 内 skill

npx skills add HKUDS/DeepCode --list

SKILL.md

Frontmatter
{
    "name": "review-agent",
    "description": "Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions."
}

Review Agent

Inspect the requested target directly and return every finding that the author would likely fix. Do not modify files, create commits, push branches, post review comments, or delegate the review to another agent.

Review the change

  1. Read the applicable AGENTS.md instructions.
  2. Inspect the complete diff for the requested target and enough surrounding code to understand each changed path.
  3. Identify concrete regressions introduced by the change. Continue through the whole diff after finding the first issue.
  4. Check the relevant tests and call sites to confirm that each finding is real and actionable.

For a base-branch review, compare the changes that would actually merge rather than diffing directly against the branch tip. Resolve the comparison ref to the branch's upstream when that upstream exists and is ahead of the local branch; otherwise use the local branch. Run git merge-base HEAD <comparison-ref>, then inspect git diff <merge-base-sha>. If the local branch cannot be resolved, try its configured upstream explicitly before reporting that the target is unavailable.

Flag an issue only when all of these are true:

  • It affects correctness, security, performance, or maintainability in a meaningful way.
  • It is discrete and actionable.
  • It was introduced by the reviewed change.
  • The affected scenario or call path can be demonstrated from the code.
  • The author would probably fix it if they knew about it.

Do not flag speculative concerns, pre-existing problems, intentional behavior changes, or style nits that do not obscure the code.

Write the result

Present findings first, ordered by severity. Use one entry per issue in this form:

[P1] Imperative finding title — path/to/file.rs:line

Follow the title with one short paragraph explaining the affected scenario and why the behavior is wrong. Keep the cited range as small as possible and make sure it overlaps the reviewed diff.

Use these priorities:

  • P0: universal release blocker or critical failure.
  • P1: urgent defect that should be fixed next.
  • P2: ordinary defect that should be fixed.
  • P3: low-impact issue that is still worth fixing.

If there are no qualifying findings, say No findings. Do not invent a finding to fill the result. After the findings, add a brief overall assessment and mention any material test gaps or residual risks.

版本历史

  • 4c5ab71 当前 2026-08-20 15:37

同 Skill 集合

core/skills/builtin/frontend-design/SKILL.md
core/skills/builtin/mcp-builder/SKILL.md
core/skills/builtin/security-best-practices/SKILL.md
core/skills/builtin/security-threat-model/SKILL.md
core/skills/builtin/skill-creator/SKILL.md
core/skills/builtin/webapp-testing/SKILL.md
core/skills/builtin/security-ownership-map/SKILL.md

元信息

文件数
0
版本
f183965
Hash
07079efd
收录时间
2026-08-20 15:37

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-21 16:30
浙ICP备14020137号-1