ce-code-review
Skill này làm gì
Skill này xem xét một thay đổi mã hoặc pull request và liệt kê những vấn đề quan trọng. Skill dành cho lập trình viên muốn một lần xem kỹ thêm trước khi merge hoặc phát hành.
Khi nào nên dùng
- ✓Khi bạn muốn một pull request được review về lỗi và hồi quy trước khi merge.
- ✓Khi bạn muốn biết một thay đổi mã đã có đủ kiểm thử chưa.
- ✓Khi một bước phát hành yêu cầu có bản ghi review cho thay đổi.
Liên kết skill
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-code-review/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
“Bạn có thể review pull request số 42 để tìm lỗi, hồi quy và thiếu kiểm thử không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đọc diff hoặc pull request đã nêu tên, đối chiếu với hành vi dự kiến và quy tắc của dự án, rồi báo cáo các phát hiện có căn cứ. Nó cũng có thể áp dụng sửa cục bộ nếu bạn yêu cầu.
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.
Code Review
Help the caller deliver a correct change within the agreed scope. Find defects and improvements whose consequences justify action; judge the code against its intended behavior and project requirements, not a preferred rewrite. Serious defects remain important even when the diff is small. An adequate change needs no findings.
Done when: required review and validation are complete, retained findings are supported by the source, and the caller has a clear result with any remaining coverage limits. Apply only when the invocation authorizes it, under the rules below.
Artifact Root
<!-- ce-docs-root:start -->Resolve the CE artifact root <root> before composing any artifact path.
- Read
docs_rootfrom<repo-root>/.compound-engineering/config.yamlonly (<repo-root>=git rev-parse --show-toplevel). Do not read it fromconfig.local.yaml. Unset -><root>isdocs, exactly as before. - Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under
.git/. Otherwise stop with an error namingdocs_rootand the value -- never fall back todocs. - Use
<root>as the sole artifact location: create it if absent, compose each path as<root>/<subdir>with this skill's own subdirectory, and never also readdocs.
Execution spine
Follow these steps in order; the references supply the detail but never change the order. Read each reference when you enter the step whose own work it governs; a read made before that step does not satisfy it, and a reference you only hand to a leaf is not one you read.
- Read
references/modes-and-output.mdfirst. It settles arguments, conflicts, the quick-review short-circuit, the Review depth gate, and what this invocation returns. - Stage 1. Read
references/scope.mdand resolve the reviewed diff, the scope mode, and the deterministic scope signals. Then apply that Review depth gate before Stage 2. Lite ends the run without the later spine references; lite and focused each run from this context byreferences/depth-paths.md. - Stage 2. Read
references/intent-and-plan.md, write the intent summary every reviewer receives, and discover the plan Stage 6 verifies requirements against. - Stage 3. Read
references/persona-catalog.mdandreferences/select-and-route.md, then select the reviewers the change's risks call for, find the applicable standards files, and decide how the adversarial review will run. - Stage 3d. When adversarial is selected for a local reviewed tree, start and persist the sanctioned cross-model job that
references/cross-model-review.mddefines, before any local persona dispatch. Invoking this skill is itself the authorization for its configured or allowlisted peer route, once you have made the required disclosure of the recipient and of the code that leaves the machine. Do not ask the user to confirm a second time, and do not skip the peer because the user did not repeat that authorization. An explicit user prohibition on external review overrides it, as does a checkout that setscross_model_review_mode: offwith no live opt-in; both are resolved before you bind a route. A started peer replaces the local adversarial persona at this stage, and only a real failure to scope, allowlist, reach, authenticate, or start it leaves the local fallback in the roster; a later stage may still restore the local reviewer under the conditions that reference states. - Stage 4. Read
references/dispatch-reviewers.md. Dispatch the selected local reviewers as one concurrent batch collected in this turn, sized to the host's active-agent cap. Every successful launch is collected only when its terminal outcome is in hand: a valid compact return is consumed, a tool error or malformed output is recorded as a failed reviewer, and a launch acknowledgement alone is not a result. Use the host's blocking collection capability for asynchronous receipts within the bound that reference states, after which an uncollected reviewer is a failed reviewer; a terminal outcome may arrive as the call's return, a blocking wait's return, or a host-delivered terminal message that names the launch and carries its payload; a progress update is not one. If launched work cannot be collected reliably, stop it, and for any persisted peer (the cross-model job) run the cleanup its reference describes before returning the failur
Câu hỏi thường gặp
Skill có tự thay đổi mã của tôi không?
Chỉ khi bạn cho phép. Mặc định nó chỉ báo cáo phát hiện, và chỉ sửa cục bộ khi bạn yêu cầu.
Skill có review phản hồi đã để lại trên pull request không?
Không. Một skill khác xử lý phản hồi mà ai đó đã để lại trên pull request.
Thay đổi nhỏ có luôn có phát hiện không?
Không. Skill cho rằng một thay đổi đầy đủ thì không cần phát hiện nào.
Chi tiết
Mô tả gốc của tác giả
Review a named diff or PR for bugs, regressions, tests, and standards. Use when asked to review code or when a shipping skill needs a review receipt. Use when asked to apply this review's findings locally. Use ce-resolve-pr-feedback for feedback already left on a PR.
Độ phổ biến
- Sao GitHub
- 26k
- Vị trí xếp hạng
- #10021
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
ce-babysit-pr
26kGiúp agent của bạn theo dõi pull request GitHub đang mở, xử lý bình luận review, kiểm tra lỗi và nhánh cũ để nó tiến tới khi được merge.
ce-bakeoff
26kGiúp agent của bạn xây dựng nhiều giải pháp cạnh tranh cho một vấn đề, so sánh chúng và kết hợp các phần mạnh nhất thành một cách tiếp cận được đề xuất.
ce-brainstorm
26kGiúp agent của bạn biến một ý tưởng mơ hồ thành tập yêu cầu rõ ràng, vừa đủ quy mô, trước khi bắt đầu làm, qua một cuộc trò chuyện có hướng dẫn ngắn.
ce-commit-push-pr
26kGiúp agent của bạn commit thay đổi, đẩy nhánh lên và mở pull request GitHub với mô tả rõ ràng, trong một luồng có hướng dẫ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á.