omc-review
它能做什么
这项技能在代码更改发布之前,审查已经存在的代码更改。适合希望获得独立检查、找出真正问题并按严重程度排序的开发者。
适用场景
- ✓当代码更改已经完成,你希望在发布前进行检查的时候。
- ✓当你希望审查重点放在安全性、正确性或不必要的复杂性上的时候。
- ✓当你想知道某项更改的测试覆盖是否足够的时候。
技能链接
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查这项更改是否有错误和安全风险,并把最严重的问题排在最前面。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先弄清楚这项更改应该做什么,先检查正确性,然后检查风险和可简化之处。它会先验证每项发现再进行报告,并且不会编写它正在审查的更改。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- Establish what changed and what it was meant to do.
- Read the change against that intent.
- Check correctness first, then risk, then simplification.
- Verify each candidate finding before reporting it.
- 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.mdor 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.
常见问题
审查者会编写修复吗?
不会。审查只评判已有的工作,不会自己编写更改。
发现的问题如何排序?
从最严重到最不严重排列,并提供足够的细节,便于据此采取行动。
它也检查代码风格吗?
它会把依据你记录的规范进行的检查与主观判断区分开,并分别报告。
详情
作者的原始描述
Evaluate finished work for defects, risk, and simplification before it ships
热度
- GitHub 星标
- 41k
- 排名
- #7023
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-doc-discipline
41k教你的智能体编写其他 AI 智能体能够独立遵循的说明,规则可以检验,并且每条规则都附有明确的理由。
ai-slop-cleaner
41k帮你的智能体整理 AI 写出的代码,这些代码能运行但臃肿或重复,在不改变其功能的前提下删除多余部分。
architecture-survey
41k帮你的智能体审查代码库的结构,列出越来越难修改的部分并附上证据,且自身不做任何更改。
ask-navigator
41k帮你的智能体把模糊的项目整理成一张清晰的决策问题图,然后逐个处理,直到路径变得清楚。