review-agent
Skill này làm gì
Skill này để agent đọc một tập thay đổi mã và báo cáo các lỗi và rủi ro mà không sửa bất kỳ file nào. Skill dành cho lập trình viên muốn một cái nhìn cẩn thận thứ hai trước khi hợp nhất.
Khi nào nên dùng
- ✓Khi bạn muốn ý kiến thứ hai về các thay đổi chưa commit trước khi commit.
- ✓Khi bạn cần rà soát sự khác biệt của một nhánh so với nhánh gốc.
- ✓Khi một agent khác hoặc đồng nghiệp yêu cầu kiểm tra chỉ đọc một commit cụ thể.
Liên kết skill
https://github.com/HKUDS/DeepCode/blob/main/core/skills/builtin/review-agent/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy rà soát các thay đổi chưa commit của tôi và cho biết những vấn đề thật, mà không thay đổi file nào.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc diff và đoạn mã xung quanh, kiểm tra các kiểm thử và nơi gọi liên quan, rồi chỉ báo cáo những vấn đề nó có thể xác nhận. Nó không sửa, commit hay đăng bất cứ thứ gì.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Read the applicable
AGENTS.mdinstructions. - Inspect the complete diff for the requested target and enough surrounding code to understand each changed path.
- Identify concrete regressions introduced by the change. Continue through the whole diff after finding the first issue.
- 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.
Câu hỏi thường gặp
Nó có thay đổi mã của tôi không?
Không. Việc rà soát chỉ đọc, nên không sửa file, tạo commit hay đăng bình luận.
Nó có báo cáo các góp ý nhỏ về phong cách không?
Nó tập trung vào các vấn đề có ý nghĩa và có thể hành động, ảnh hưởng đến tính đúng đắn, bảo mật, hiệu năng hoặc khả năng bảo trì.
Nó có thể rà soát những gì?
Nó có thể rà soát các thay đổi chưa commit, nhánh so với nhánh gốc, một commit, hoặc các hướng dẫn tùy chỉnh bạn đưa ra.
Chi tiết
Mô tả gốc của tác giả
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.
repo: HKUDS/DeepCode
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10798
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.