adr-review
它能做什么
这份指南指导你的智能体像新团队成员一样阅读决策文档,并指出其中做了过多假设的地方。适合编写架构决策记录、并希望其表述清楚的团队。
适用场景
- ✓当你的架构决策记录难以理解的时候。
- ✓当你希望对一组决策记录进行审阅并重写,使其更清晰的时候。
- ✓当决策记录假设了未来读者不会具备的上下文的时候。
技能链接
https://github.com/prisma/orm/blob/main/skills-contrib/adr-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请以新团队成员的视角审阅这份架构决策记录,并把它重写得更清楚。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先列出它发现的问题,例如被埋没的决定或缺失的上下文,供你回应。然后它会重写每份记录以解决这些问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Reviewing and Rewriting ADRs
Read each ADR with fresh eyes. Pretend you're a member of the team who doesn't have all the context the author has. The goal is to find places where the document assumes context the reader doesn't have, buries the decision, or carries baggage that won't make sense to a future reader.
This skill applies whether you're working on a single ADR or a batch. Treat each ADR independently — do the analysis and rewrite per document — even when several are in scope at once.
Workflow
- Analyze first, in chat. Before touching any file, list the issues you found and explain them. Do not rewrite silently. When multiple ADRs are in scope, group your analysis per ADR so the user can react to each one before rewrites land.
- Then rewrite each document to address the issues you identified.
What a good ADR looks like
- Starts with a clear grounding example. Give the reader something concrete to pin understanding to before the abstract reasoning starts.
- Has a strong narrative that builds the topic up bit by bit, explaining clearly throughout. Don't compress; let ideas breathe.
- Leads with the decision. State what's being decided up front. The reader should know the conclusion before working through the reasoning.
- Ends with alternatives considered. Put rejected options last so the reader isn't loaded down with information about paths the document is making irrelevant.
What an ADR must NOT contain
ADRs are long-lived documentation. They should not contain:
- References to Linear tickets, GitHub issues, or other ticket trackers.
- Milestones from the project that produced the ADR.
- States the system passed through during or preceding a refactor that will never be seen again — interim names, deprecated wrappers being removed, "current" qualifiers, "we used to" framing.
If a piece of context only makes sense to someone who lived through the change, cut it or rewrite it as a fact about the system as it is.
Output shape
When invoked:
- Read the ADR (or ADRs) in scope.
- Write your analysis in the chat — what's missing, what's buried, what's transient, what's unclear to a fresh reader. Be specific; quote or cite the parts you're flagging. For multiple ADRs, label each block clearly.
- Then rewrite each file end-to-end so it follows the structure above.
常见问题
它会不经询问就直接重写吗?
不会。该技能说明,应先在对话中列出问题,然后再进行重写。
一份好的决策记录应该是什么样?
该技能说明,它应当先说明决定,以一个具体的例子开头,并以所考虑的备选方案结尾。
它能同时处理多份记录吗?
可以。即使有多份记录在范围内,它也会逐一审阅。
详情
作者的原始描述
Review one or more ADRs with fresh eyes (as a team member without prior context), identify narrative and structural issues, then rewrite them. Use when the user asks to review, improve, rewrite, or take a fresh-eyes pass on an ADR or a set of ADRs (Architecture Decision Records).
repo: prisma/orm
热度
- GitHub 星标
- 48k
- 排名
- #6308
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
ast-visitor-pattern
48k教你的智能体一种代码模式,用于处理在多个位置被使用的联合类型,使新增的变体能被编译器捕获。
markdown-no-artificial-line-wraps
48k帮你的智能体把整段文字写在同一行中,让文字在屏幕上自然换行,并保持文件改动清晰。
multiline-commit-messages
48k向你的智能体展示一种在 shell 中安全编写多行 git 提交信息的方法,使信息不会出现乱码。
product-direction
48k帮你的智能体依据项目已书面记录的产品方向来评判功能请求,给出有理由的结论,并记录每一次否决。