agentleFS
www-donghanhcungban-orgwww-donghanhcungban-org/X-Templates/.claude/skills/review/SKILL.md

review

Skill16 starsChanged 7 days agoMITView on GitHub

Review diff/PR theo checklist của khung (đúng nghiệp vụ, ca biên, bảo mật, lỗi logic, thống nhất, test) — phát hiện là CLAIM phải có đường tái hiện; reviewer năng lực cao hơn người viết. Dùng khi `xt.py pr next` trả `review`, khi người dùng hỏi "có bug không", "rà nhanh diff", hoặc gõ /review.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan

The file

Files
SKILL.md

/review — review như người gác cổng, không như người viết

Reviewer luôn ở bậc top-1 với effort high (ADR-0110, ADR-0114; Claude Code dùng Opus, Codex dùng model trong bảng bậc của khung; không bậc cao nhất, không effort trên high, kể cả khi phiên chính chạy bậc cao hơn — không giao kèm model/effort của phiên chính). Tuyến: người viết ở bậc bottom/top-2 (executor-mech, executor, researcher, acceptance-author) → reviewer, nhận clean (LOOP-ORCH-005); executor-deep (top-1/medium mặc định của vai, D-627; khai --author-effort medium) → reviewer-alt, nhận, kể cả diff lớp bắt buộc review (guard, hook, workflow — ADR-0095); phiên chính ở bậc top-1 effort ≥ high hay bậc cao nhất tự viết, hoặc executor-deep bị đè effort ≥ high (tham số lần gọi, biến môi trường) → vẫn rà tìm 🔴 nhưng ghi --inconclusive, không khai sai tác giả, không tự nâng reviewer; lớp bắt buộc review không để phiên chính tự viết ở mức đó. maxTurns: 120 là trần lượt một lần chạy, không phải số review mỗi PR; hết lượt chưa đủ bằng chứng → INCONCLUSIVE; ghi pr reviewed kèm --reviewer-effort/--author-effort khi cùng họ; trên Codex khai ID model thực tế của người viết và reviewer; không kết luận được → INCONCLUSIVE (xt.py pr reviewed --inconclusive). Trong autopilot chỉ giao khi xt.py pr next trả review (máy đã biết PR nào cần theo mức rủi ro — ADR-0062: thấp không review AI; trung bình một review tập trung logic, phạm vi, test; cao — auth/phân quyền/thanh toán/mật mã/bí mật/migration — một review độc lập bắt buộc chỉ khi nhánh đích đặt merge_review: required; mặc định optional (ADR-0079) máy merge khi CI xanh — dự án cần review đặt required, hoặc merge_hard_exceptions: human để giữ người cho auth/tiền/PII (không gồm migration). Review 1 lần: sau review đã kết luận còn lỗi pr next trả debt — 🟠/🟢 ghi mở + nợ-review: #N vào sổ audit; 🔴 sửa trong một commit kèm test, ghi đã sửa + nợ-review: #N; xt.py pr debt --pr N --findings … --fixed … rồi merge, không rà lại; PR cắt bản/review_identity → rethink, rà tới khi sạch (tối đa max_rethink lần/PR, PR cắt bản miễn — ADR-0061); nợ trả cuối pha); ngoài autopilot khi người dùng yêu cầu. Phiên chính tổng hợp. Reviewer chỉ nhận diff + SPEC/task (context sạch, không hội thoại của người viết); diff > 150 dòng → đề nghị tách PR (review trên diff lớn kém tin cậy).

Trong bản cài Codex kế thừa model phiên, chạy reviewer từ phiên dùng model top-1 hoặc ghim model qua --codex-models. Chọn tuyến theo model và effort thực tế của người viết. Nếu reviewer chạy ngoài bậc top-1 hoặc thiếu thông tin để chứng minh đủ năng lực, ghi --inconclusive.

Thứ tự rà

  1. Đúng việc: diff làm đúng SPEC/task? có sửa nhầm chỗ khác? phạm vi phình?
  2. Lỗi logic & ca biên: rỗng/null vs 0, off-by-one, race/idempotency, thời gian (UTC, DST, cuối tháng), tiền (số nguyên, làm tròn), Unicode/tiếng Việt, giới hạn kích thước, lỗi mạng/timeout có nhánh xử lý.
  3. Bảo mật: input validate ở biên, quyền kiểm ở server cho mọi hành động, không secret/PII vào log, SSRF/injection/XSS, phụ thuộc mới (license, trạng thái).
  4. Thống nhất: cùng cách xử lý lỗi/phân trang/đặt tên như phần còn lại; không trùng lặp logic đã có (tìm trước khi viết mới).
  5. Test: có test cho nhánh mới + ca biên; test có assert thật, không test "cho có"; không skip/disable.
  6. Vận hành: migration có đường lùi; cấu hình mới có default an toàn; log/metric đủ để debug sự cố.
  7. Tài liệu: CHANGELOG/ADR/README cập nhật khi đổi hành vi/API.

Cách báo

Mỗi phát hiện: file:dòng · mức (🔴 chặn merge / 🟠 nên sửa / 🟢 gợi ý) · đường tái hiện cụ thể (input → kết quả sai) · đề xuất sửa ngắn. Không tái hiện được → không báo là lỗi (tối đa một dòng "nghi ngờ" 🟢, không chặn merge) — chống sửa thừa. Phát hiện của công cụ AI khác cũng là claim cần verify. Lỗi có từ trước (tái hiện được cả ở base, diff không tạo ra, không làm tệ hơn, không nằm trên đường mã diff vừa thêm) không chặn PR này: báo riêng mục "Có từ trước" kèm mức thật để phiên chính ghi sổ audit + task mới — 🔴 mở trong sổ vẫn chặn phát hành (audit check --strict), không chặn merge; sửa trong PR đang mở làm PR phình và mỗi lượt lộ lỗi cũ mới (ADR-0056). Kết luận: APPROVE / REQUEST CHANGES + lý do.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.