review-brief
它能做什么
它会为一个分支或拉取请求生成便于快速浏览的摘要,展示核心改动以及最关乎安全的代码。适合希望在不阅读完整差异的情况下批准改动的审查者。
适用场景
- ✓当分支或拉取请求已准备好,审查者需要快速摘要时。
- ✓当你想知道在大型改动中应先看哪里时。
- ✓当你询问如何审查某项改动,或它改了什么时。
技能链接
https://github.com/every-app/open-seo/blob/main/.agents/skills/review-brief/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的分支写一份审查摘要,让我看到改了什么,以及应该先看哪些地方。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会阅读差异和改动的文件,找出核心改动,并按风险对每个部分进行分类。数据结构定义、数据库写入、安全和核心逻辑会以代码形式展示,其余部分则简要概括。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Review brief
The reader will not read the diff. They will skim for 30 seconds, then read only the code that could hurt them. Optimize for that.
Process
- Get the diff (
git log --oneline main..HEAD,git diff --stat main..HEAD) and read every non-trivial changed file in full. - Find the invariant core: what was broken, what is true now. One sentence.
- Classify every hunk. Anything matching the crucial criteria below goes into the code section verbatim. Everything else gets one table row or is folded.
- Write the brief in the layout below. Every line number cited must be verified against the working tree.
- Run a second agent as a reviewer of the CODE, not the prose: "what is wrong, overstated, or missing?" Fix real bugs before delivering, and say you did.
Crucial code criteria
A hunk is crucial and must be shown as code if it touches any of:
- Schema. Drizzle tables, columns, indexes, migrations, Zod schemas at a trust boundary, MCP tool input or output schemas.
- Database writes. New or changed INSERT/UPDATE/DELETE, conditional WHERE clauses, anything that runs inside a workflow step or a cron.
- Security. Auth checks, scope or org or project gating, secrets, external calls with credentials, anything that fails open.
- Core logic. The branch or expression that decides the outcome the bug was about: a status assignment, a validation gate, a ranking comparator, a retry or timeout policy.
- Jank. Anything you would be embarrassed to defend in review. String-matching
a vendor error message to pick UI copy. A regex standing in for a parser. A
hard-coded lookup table. A
console.warnwhere a metric belongs. A swallowed catch. A magic timeout. A DB read added to work around a missing parameter. A fallback that quietly changes behaviour. Show it, name it as jank in the sentence above, and say whether it is acceptable for now or should block.
Show each as 5 to 20 lines, trimmed to the decision, with one sentence above saying what to notice and one line below naming the failure mode if it is wrong. Three to six excerpts is normal. If there are more than six, the PR should probably be split; say so.
Layout
One sentence stating what was broken and what is true now.
Before / after diagram. One ASCII flow, two columns, showing the user-visible path. Boxes are steps, arrows are what flows. Label the bug locations.
The code that matters. The crucial excerpts, in reading order by risk. This section is the point of the brief. Do not defer it to a follow-up.
Everything else, in one table. Sorted by risk:
| # | File | What it does | The one thing to check |
One row per remaining meaningful change. Fold registrations, renames, formatting, and fixtures into a single final row.
What does NOT exist. Bullets naming the things a reader would assume were added and were not: no migration, no new dependency, no change to a persisted shape, no new auth path.
Decisions you might disagree with. Two to four bullets. Each: the choice, the alternative, the cost of the choice. No defence longer than one sentence.
Status table. Whatever numbers gate the merge: tests, dry-run counts, "applied to prod: No".
Try it in two minutes. The two or three commands that exercise the change.
Branch state. Commits, pushed or not, PR link or "no PR yet".
Rules
- No paragraph over two sentences anywhere.
- Bold the first few words of every bullet so the list skims by its openers.
- Tables for anything with three or more parallel facts.
- Code goes in fences, never in prose. Name a file only when the reader has to go there.
- Cut history, rejected alternatives, and migration narrative unless asked.
- Never simplify into inaccuracy. A detail that changes what the reader would do stays, as one line.
- Under 600 words of prose. Code excerpts and tables do not count.
Anti-patterns
- A numbered walkthrough with paragraphs per stop and a "Check:" paragraph.
- Describing a WHERE clause, an auth check, or a status expression in words instead of showing it.
- Hiding jank in a "decisions you might disagree with" bullet. If it is in the code, show the code.
- Saving the code for "want me to show you the code?" The reader asked for a review brief; the code is the brief.
- A draft PR description inline. Put it in a file and link it.
常见问题
什么算关键代码?
数据结构定义、数据库写入、安全检查,以及决定结果的逻辑的改动。
它会检查自己的摘要吗?
会。它会对代码再进行一轮审查,并在交付前修正真正的错误。
它只适用于特定规模的改动吗?
分支和拉取请求的任何规模都适用,但在审查者需要快速概览时最有用。
详情
作者的原始描述
Produce a scannable review brief for a branch or PR so the maintainer can approve without reading the whole diff. Use when the user asks "how do I review this", "summarize the changes", "what should I look at", or wants to understand a PR in under two minutes.
repo: every-app/open-seo
热度
- GitHub 星标
- 26k
- 排名
- #9979
- 许可证
- MIT
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
ai-prompt-research
26k帮你的智能体找出人们向 AI 助手询问你所在市场的问题,以及这些 AI 回答通常引用哪些网站。
ai-visibility-audit
26k帮你的智能体找出 AI 助手为什么推荐竞争对手而不是你的品牌,并提出最有可能让你被提及的少数几项改动。
competitive-landscape
26k帮你的智能体梳理搜索营销市场中的领先者、他们行之有效的内容主题,以及你可以用来竞争的空白点。
competitor-analysis
26k帮你的智能体研究某一个竞争对手的自然搜索表现,包括其排名关键词、内容主题、外链和薄弱环节。