bmad-review
它能做什么
这个技能让 AI 智能体从多个角度审查代码或文档,只报告真正的问题。适合希望在改动或文档获得批准前进行仔细审查的人。
适用场景
- ✓当你请求审查差异、拉取请求或文档的时候。
- ✓当你希望在改动发布前进行对抗性批判的时候。
- ✓当你希望审查文档中的文字或结构的时候。
技能链接
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请从多个角度审查这个拉取请求,只告诉我真正的问题。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行一个或多个审查视角,每个视角都有自己的方法和立场。然后它会以统一的格式报告发现,不会为列表凑数。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
BMad Review
Review content through lenses — each a distinct method and stance — and report findings in one canonical shape. Report what is real — never pad to look thorough. Each lens sets its own stance toward the content and toward zero findings: for most an empty result is valid; the adversarial lens requires at least ten concrete findings and treats an empty list as a signal to re-check; the editorial lenses hold content sacrosanct and critique only how it is organized and expressed.
The lens set is whatever {workflow.lenses} resolves to, not a fixed list — overrides add lenses and replace shipped ones. Never claim a capability from this file; read the resolved lenses and work from those.
Inputs
- content — what to review: a diff, branch, uncommitted changes, file, ticket (initiative, epic, story, spike, bug), or any document. Args:
[path]. - lenses (optional) — one or more lens codes or names, however the caller expresses them: a spoken request, or a directive of the form
skill:bmad-review lenses=<code>[,<code>...](the form bmm'sdoc_standardsuses). Default: every applicable lens (a full review). - also_consider (optional) — areas to keep in mind alongside each lens's normal analysis.
- claims (optional) — the change's own narrative: the commit messages it covers, or whatever description of it the caller supplied. Goes to the edge-case lens alone.
- pre-resolved customization (optional) —
[workflow]field values supplied by a forwarding caller. See Execution step 1.
Conventions
- Bare paths (e.g.
references/lens-edge-case-hunter.md) resolve from{skill-root}— this skill's installed directory, wherecustomize.tomllives.{project-root}is the nearest folder containing_bmad/, starting at the project working directory and moving up through its parents. {workflow.<name>}resolves to fields incustomize.toml's[workflow]table (overrides win per BMad merge rules).- In
style_guide,review_guidance, andpersistent_facts, a value prefixedfile:is a path or glob — load that file's contents. If afile:value cannot be read, name the failed file in the output header and continue: the shipped baseline forstyle_guide, the remaining entries otherwise.
Execution
Resolve customization:
uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.- Script not found: BMad is not set up here. Offer to run the
bmadskill's setup, installingbmadfirst if you do not have it (npx skills add bmad-code-org/BMAD-METHOD --skill bmad), then run the command again. - Any other failure: read
{skill-root}/customize.tomldirectly and use defaults.
Forwarded activation: if a caller invoked you with pre-resolved customization fields (e.g. the
bmad-editorial-reviewshim), honor them verbatim for those named fields — they already carry the user's overrides — and resolve only the remaining fields from your owncustomize.toml. Then execute each{workflow.activation_steps_prepend}entry in order, hold{workflow.persistent_facts}as standing context for the session, and treat{workflow.review_guidance}entries as standing review directives for every lens.- Script not found: BMad is not set up here. Offer to run the
Load the content. Stage it once as a file: when the content is a branch, uncommitted work, or a commit range, use the repository's version-control tooling to write the unified diff to a uniquely-named file in the system temp directory and take that file's absolute path as the content. A branch means its diff against the merge base with its base branch; uncommitted work includes untracked files. Stage
claimsto its own file the same way — it is input for one lens, staged separately precisely so the other lenses never see it. If the content is empty or cannot be decoded as text: when the caller expects the raw findings JSON array (e.g. the legacy edge-case forwarder), return[{"location":"N/A","trigger_condition":"Input empty or undecodable","guard_snippet":"Provide valid content to review","potential_consequence":"Review skipped — no analysis performed"}](nolensfield) and stop; otherwise say what's wrong and ask for reviewable content. Classify the content — diff, source file, function, or document — and whether it is code or docs; scope rules and lens applicability both depend on it. A document that defines behavior (a ticket, a plan, requirements) isdocsthat a behavioral lens may s
常见问题
它总能找到问题吗?
不会。该技能只报告真正的发现,对大多数视角来说,空结果也是有效的结论。
什么是视角?
视角是一种审查方法,有其自己的重点,例如边缘情况、结构或文字。
我可以选择运行哪些视角吗?
可以。你可以指定一个或多个视角,也可以运行所有适用的视角。
详情
作者的原始描述
Runs one or more installed review lenses — adversarial critique, edge cases, verification gaps, structure, prose — and reports triaged findings. Use when, and only when, the user asks you to review a diff, a pull request, or an artifact — code or documents, one or many — and actually says "review"; an explicit skill:bmad-review directive from another skill counts as that ask. A request to act on feedback from an earlier review is a change, not a review. Never invoke this uninvited, including on edits you just made.
热度
- GitHub 星标
- 55k
- 排名
- #3359
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
bmad-advanced-elicitation
55k帮你的智能体通过批判性方法推动草稿深入思考,并提出一个修改方案,由你选择接受或拒绝。
bmad-agent-analyst
55k让你的智能体扮演 Mary,一位商业分析师,负责市场调研、竞争分析,并把模糊的需求整理成清晰的需求。
bmad-agent-architect
55k让你的智能体扮演 Winston,一位系统架构师,把需求转化为实用的技术设计,并解释其中的取舍。
bmad-agent-dev
55k让你的智能体扮演 Amelia,一位资深软件工程师,按照测试优先的步骤实现已批准的用户故事,并逐项检查验收标准。