pr
它能做什么
这项技能为代码拉取请求起草描述,让审阅者能快速理解更改。适合希望审阅者能看到证据和回滚方案的开发者。
适用场景
- ✓当你准备发起拉取请求,需要一份清晰描述的时候。
- ✓当会话之外的审阅者需要快速理解某项更改的时候。
- ✓当你希望请求中包含回滚方案和证据的时候。
技能链接
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/pr/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为这项更改撰写拉取请求描述,包括简短的摘要,以及我们如何回滚它。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会利用已完成的工作来组织描述,例如测试结果和前后对比的证据。它会在有帮助的地方添加一个简短的视觉图,说明该更改撤销的难易程度以及它影响的范围,但不会收集新的证据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
PR Body
When work lands behind a review, the PR body is the one artifact a reviewer outside the session reads. Everything it needs already exists in the paper trail — this skill assembles it and adds nothing that was not already established. The summary-visual discipline is inspired by show-me (credited in the frontmatter).
Template
## Summary
<one-line claim, then the smallest visual that proves it>
## Evidence
- **Before:** <output / failing check>
**After:** <output / passing check>
## Reversibility
<Rollback: cheap via <mechanism> | expensive because <reason>>
<Blast radius: one line>
Sections
Summary
State the change in one sentence, then show the smallest view that makes the point. Match the visual to the change:
- logic or an algorithm → pseudocode
- runtime control flow → a call tree
- UI structure → a component tree
- file responsibility or a broad refactor → a shallow file tree
- component interaction or data flow → a Mermaid diagram
- the delta itself → a diff shaped like the change (component, layout, call tree, or state machine)
Show the whole block only when most of it is new, omitted context would hide ownership, or the reviewer needs a copyable target shape. One visual usually suffices; never all forms.
Evidence
Consume the verify protocol's output — BUILD, TEST, LINT, FUNCTIONALITY evidence, freshness rule inherited. Present before/after pairs: the exact check that failed before and passes after, quoted from the output itself. When the change is visual, prefer a captured screenshot; qa-tester can drive the runtime for one. Never re-collect evidence here and never claim evidence the verify pass did not produce.
Reversibility
Run the ADR test on the diff itself — the same three questions launch applies to decisions: hard to reverse? surprising without context? the result of a real trade-off? A no on all three is a cheap rollback: say by what mechanism (revert the merge, toggle the flag). Any yes means an expensive rollback: say why. Classify the door first: a two-way door (undo is cheap and ordinary) needs no ceremony beyond naming the undo; a one-way door says so explicitly and names what makes the step irreversible. Link the ADR when the change implements or touches one. Close with the blast radius in one line — what else this change can move.
Language
Terms come from GLOSSARY.md where a glossary exists (legacy yards not yet migrated keep it in CONTEXT.md). The PR is read outside the session; the glossary is the only vocabulary the reader shares with it.
Triggers
- launch Phase 5, when the platform reviews through PRs: the completion report carries a PR body drafted by this skill.
- Any session that opens or materially updates a PR.
Output
- The PR body, ready to paste
- The paper-trail pointers it relies on (verify evidence, ADRs, spec)
常见问题
它会为描述运行新的测试吗?
不会。它使用验证过程中已经收集的证据。
回滚说明包括什么?
更改可以被撤销的难易程度,以及它涉及系统的哪些部分。
它会包含图表吗?
只有当一个小的视觉图比文字更清楚地证明更改时才会包含。
详情
作者的原始描述
Draft a PR body from OMC's paper trail — the smallest visual that proves the change, evidence consumed from the verify protocol (never re-collected), reversibility from the ADR test on the diff, glossary language throughout.
热度
- GitHub 星标
- 41k
- 排名
- #7015
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-doc-discipline
41k教你的智能体编写其他 AI 智能体能够独立遵循的说明,规则可以检验,并且每条规则都附有明确的理由。
ai-slop-cleaner
41k帮你的智能体整理 AI 写出的代码,这些代码能运行但臃肿或重复,在不改变其功能的前提下删除多余部分。
architecture-survey
41k帮你的智能体审查代码库的结构,列出越来越难修改的部分并附上证据,且自身不做任何更改。
ask-navigator
41k帮你的智能体把模糊的项目整理成一张清晰的决策问题图,然后逐个处理,直到路径变得清楚。