Chuyển đến nội dung
Skillpedia
Lập trình chung41k · #7023

omc-review

Skill này làm gì

Skill này review các thay đổi mã đã tồn tại trước khi chúng được phát hành. Skill dành cho lập trình viên muốn một kiểm tra độc lập, tìm ra vấn đề thật và xếp hạng theo mức độ nghiêm trọng.

Khi nào nên dùng

  • ✓Khi một thay đổi mã đã xong và bạn muốn kiểm tra trước khi phát hành.
  • ✓Khi bạn muốn review tập trung vào bảo mật, tính đúng đắn hoặc độ phức tạp không cần thiết.
  • ✓Khi bạn muốn biết một thay đổi có đủ độ phủ kiểm thử hay không.

Liên kết skill

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/review/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/review/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy review thay đổi này xem có lỗi và rủi ro bảo mật không, và liệt kê các vấn đề nghiêm trọng nhất trước.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent xác định thay đổi đáng lẽ phải làm gì, kiểm tra tính đúng đắn trước, rồi đến rủi ro và đơn giản hóa. Nó xác minh từng phát hiện trước khi báo cáo, và không tự viết thay đổi mà nó đang review.

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

Use this skill to evaluate work that already exists. Review never authors the change it is judging.

This is the canonical review workflow. ai-slop-cleaner is an opt-in lane within it.

Goal

Find what is actually wrong, ranked by severity, with enough detail to act on.

Workflow

  1. Establish what changed and what it was meant to do.
  2. Read the change against that intent.
  3. Check correctness first, then risk, then simplification.
  4. Verify each candidate finding before reporting it.
  5. Report findings most-severe first.

What to check

  • Correctness — logic defects, edge cases, error paths, concurrency
  • Risk — security boundaries, destructive operations, data integrity
  • Reuse — existing utilities or patterns the change should have used
  • Simplification — code that could be deleted or collapsed
  • Coverage — behavior that ships untested

Two axes, run apart

A substantial diff is reviewed as two parallel sub-agent passes, reported separately — never merged or cross-ranked, because a change can pass one axis and fail the other (standards-conforming but wrong behavior; faithful but convention-breaking):

  • Standards axis — the diff against the repo's documented standards plus a judgement-call-only smell baseline; anything tooling already enforces is skipped. The standards set is discovered, not assumed: search the repo for standards documents (CLAUDE.md/AGENTS.md, docs/standards/ volumes, CONTRIBUTING.md, CODING_STANDARDS.md or equivalents) and review against whatever exists — a standards file you didn't look for is a standard you didn't apply.
  • Intent axis — the diff against what the work was meant to do — the task, spec, or ticket acceptance criteria: requirements missing or partial, behavior nobody asked for, each finding quoting its source line.

Keep each sub-agent brief under ~400 words and pointed at one axis. Aggregate without picking a single winner across axes — that reranking is what the separation exists to prevent; state each axis's verdict on its own. A small diff stays one pass.

Rules

  • Separate lanes: the reviewer must not be the author's same active context.
  • Verify before reporting. A plausible-sounding finding that does not reproduce is noise.
  • State severity honestly; do not pad the list to look thorough.
  • "No findings" is a valid result when the work is sound.
  • Advisory by default — review informs, it does not gate. Hard gates (release, security, destructive operations) stay separate and fail closed.

Output

  • Findings, most-severe first, each with file, line, and concrete failure scenario
  • What was checked and found clean
  • Anything that could not be assessed

Quality Gates

Before finalizing the review, check the existing merged OMC qualityGates["omc-review"] entries (project stage entries replace the user list; see docs/quality-gates-configuration.md). If there are no entries, do not call omc quality-gates list, spawn gate tasks, or add a Quality Gates section or gate records to the review output. If there is at least one entry, call omc quality-gates list --stage omc-review --json and show every validation error. For each available gate, spawn one independent Claude Code Task that loads the named skill from resolvedPath, reviews the same changes, and returns VERDICT: PASS or VERDICT: BLOCK plus findings. Use the configured model override when present; do not pass another reviewer's output to the gate. Reuse the same gate lane if the change is revised and reviewed again.

When gates are configured, record { gate, mode, verdict } for each gate in a Quality Gates section of the review output. Unresolved skills are gate_unavailable with a visible warning, never PASS; they do not fail the review stage. A blocking BLOCK makes the overall result REQUEST CHANGES; advisory results are informational and never block.

Câu hỏi thường gặp

Người review có viết bản sửa không?

Không. Review đánh giá công việc hiện có và không tự viết thay đổi.

Các phát hiện được sắp xếp thế nào?

Từ nghiêm trọng nhất đến ít nghiêm trọng nhất, với đủ chi tiết để bạn hành động.

Nó có xem phong cách mã không?

Nó tách các kiểm tra theo tiêu chuẩn đã ghi trong tài liệu của bạn khỏi các đánh giá mang tính phán đoán, và báo cáo riêng từng loại.

Chi tiết

Mô tả gốc của tác giả

Evaluate finished work for defects, risk, and simplification before it ships

repo: Yeachan-Heo/oh-my-claudecode

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#7023
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự