跳到正文
Skillpedia
通用编程5.1k · #15084

omh-code-review

它能做什么

它审查拉取请求、差异或论断,按严重程度列出漏洞和风险,并指出测试中的缺口。适合希望在合并前进行谨慎、有证据支持的审查的开发者。

适用场景

  • ✓当你希望审查拉取请求中的漏洞和回归问题时。
  • ✓当你希望对照证据检查 README 或发布说明中的论断时。
  • ✓当你希望在发布前进行发布关卡或证据审计时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-code-review/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-code-review/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请审查这个拉取请求中的安装和更新回归问题,并告诉我缺少哪些测试。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体阅读改动,先列出发现的问题,按严重程度排序,并把每项都关联到文件、差异或命令输出。测试缺口单独列出,修复是另一个步骤。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Code Review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

code-review exists to make review bug-first and evidence-grounded: findings must cite concrete files, diffs, commands, or artifacts before any summary or fix proposal.

Do Not Use When

  • The user asks to implement the fix rather than review existing code or claims.
  • There is no diff, file set, claim, artifact, or expected behavior to review.
  • The request is broad product critique, strategy, or planning rather than code or evidence review.

Examples

Good example:

  • Prompt: $code-review review this PR for install/update UX regressions and missing tests.
  • Expected behavior: Lead with ranked findings, cite concrete evidence, then list open questions and test gaps.
  • Why: The task is explicitly review-shaped and has a behavioral risk surface.

Bad example:

  • Prompt: $code-review add the missing setup flag and commit it.
  • Expected behavior: Route implementation to a selected executor/runtime after review findings are established.
  • Why: Review can identify the issue, but code mutation is a separate execution step.

Completion Checklist

  • Findings come first: rank ordinary findings by severity; keep gaps unranked in verification_gaps.
  • Every finding cites file, diff, command output, artifact, or expected behavior evidence.
  • Both axes appear in the report: correctness/risk findings, and a spec-axis verdict naming its Claim source or the not_assessed reason.
  • No-issue reviews still name residual risk, missing tests, and independent review evidence if unavailable.
  • The closing carries the checked-and-clean list and the could-not-assess list, each naming its surfaces.
  • The dispatch schema matches the return, candidate validation states remain distinct, and selected checks are not reported as observed coverage.
  • Fix implementation, architecture follow-up, and CI/merge claims stay separate from the review result.

Recovery Notes

  • If no diff, file set, PR, or artifact is available, inspect the requested target or ask one target question before reviewing.
  • If tests fail or are missing, cite the exact command gap and do not approve the change as verified.
  • If independent review evidence is unavailable, say so directly instead of implying a second reviewer passed it.
  • To dispatch a reviewer rather than write the findings yourself, load omh-code-review/references/review-dispatch.md; it carries the base-SHA rule, the findings schema the return is checked against, and the implementer status contract.
  • When findings arrive for work you own, load omh-code-review/references/review-response.md before changing anything.
  • For maintainability judgement calls, load omh-code-review/references/smell-baseline.md; it finds the repository's standards files first, then names the twelve baseline smells with their fixes and the repo-standards-override rule.
  • Load omh-code-review/references/risk-selection.md to select depth; when additional lenses are justified, load omh-code-review/references/review-lenses.md and run only those selected as separate passes.
  • Before final findings, load omh-code-review/references/finding-validation.md for candidate confirmation, rejection, and unresolved-risk handling; load omh-code-review/references/architecture-delta.md when ownership, contracts, dependencies, or shared-code extraction change.

When to Use

Use for review-shaped requests; findings come first and must cite concrete evidence.

Strong routing signals: `code-review`, `$code-review`, `review`, `audit`, `find bugs`, `release gate`, `claim audit`, `evidence audit`, `README claim`, `what actually happened`, `code review`, `review gate`, `コードレビュー`, `バグを見つけて`, `実際に何をしたか`, `리뷰`, `코드 리뷰`, `리뷰까지`, `릴리즈 전`, `실제 코드와 맞는가`, `실제로 뭐 했는지`, `검증된 결과`, `сделай ревью кода`, `ревью моего кода`, `ревью изменений`, `проверь код на баги`, `проревьюй`, `ревью пул реквеста`, `проверь мой код`, `проверить мой код`, `сделай код ревью`, `найди баги`, `ревьюни`, `ревью этого кода`, `代码评审`, `代码审查`, `找出缺陷`, `tinjau kode`, `review kode ini`, `bantu tinjau kode PR ini`, `tolong periksa diff ini untuk mencari bug`, `cek perubahan kode sebelum merge`, `ulas pull request ini`, `cari bug di perubahan ini`, `review PR ini dong`, `rà soát mã nguồn`, `review mã nguồn này`, `giúp rà soát PR này`, `hãy kiểm tra diff này tìm bug`, `kiểm tra đoạn code trước khi ráp vô`, `
常见问题

审查会修改我的代码吗?

不会。它只审查并报告。实施修复是单独的步骤。

为什么发现的问题排在最前面?

该技能以漏洞为先,因此最重要的问题会排在任何总结之前。

没有差异也能审查吗?

它需要差异、文件集、论断或产物才能审查。没有这些,它无法审查。

详情

作者的原始描述

[omh] Pull request or changes to vet: bug-first review with evidence. Use when the user says: code-review, review, audit, find bugs, release gate, claim audit, evidence audit, README claim.

repo: rlaope/oh-my-hermes

热度

GitHub 星标
5.1k
排名
#15084
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能