跳到正文
Skillpedia
通用编程29k · #9502

named-persona-adversarial-review

它能做什么

这项技能让智能体通过知名专家的已知工程理念来审查代码,例如 Linus Torvalds 和 Ken Thompson。适合希望获得关于架构和产品影响的具体反馈、而不是泛泛评论的团队。

适用场景

  • ✓当一个拉取请求对架构或用户体验有重大影响的时候。
  • ✓当自动审查显得过于笼统、没有用处的时候。
  • ✓当你希望反馈基于具名工程原则的时候。

技能链接

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/named-persona-adversarial-review/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请像 Linus Torvalds 和 Ken Thompson 那样审查这个拉取请求,并为每一点引用他们的原则。”

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

工作原理

智能体会通过一组具名角色审查变更,每个角色都基于参考文件中记载的理念。它会为每项发现标注严重程度和置信度,最后给出结论。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Named-Persona Adversarial Review

TL;DR: Abstract roles find abstract problems. Named engineers with documented, sourced philosophies find problems you would actually fix — as long as you cite the real principle and never invent the quote.

Triggers: "review this PR with real engineers" | "named persona review" | "philosophy-grounded review"

Example Output

CRITICAL [Torvalds]: Special-case error handling at auth.ts:47 duplicates the
  happy path. Torvalds' documented "good taste" principle: restructure so the
  special case disappears rather than adding a branch. (confidence: high — TED 2016)
WARNING  [Thompson]: parseConfig() does three unrelated things; the Unix
  "do one thing well" principle argues to split it. (confidence: high)
NOTE     [Jobs]: Error "EACCES:13" leaks an errno at the user surface; "start
  from the customer experience" argues for a human message. (confidence: high — WWDC 1997)
Verdict: CONCERNS — fix CRITICAL before merge.

Problem

Abstract adversarial review ("act as a saboteur") produces generic findings — the model imagines what a reviewer might say. This skill grounds each lens in a real, sourced engineering philosophy documented in references/persona_principles.md: what Ken Thompson actually argued about trust, what Linus actually demonstrated about good taste — not what an AI imagines.

How it differs from adversarial-reviewer: abstract roles → surface-level findings; named, sourced personas → findings anchored to a documented principle you can cite and defend.

Cost: 1 round ≈ 8-12 min. Comparable to waiting for CI.

Attribution discipline (read this first — it is the load-bearing rule)

This skill puts named, real people's principles to work. That power is also its failure mode: language models hallucinate quotes. To stay honest:

  1. Cite the principle, not a fabricated verbatim quote. Prefer paraphrasing a documented position ("Thompson's Reflections on Trusting Trust argues you can't trust code you didn't fully create") over inventing quotation marks around words the person may never have said.
  2. Attach a confidence level to every attribution — high (documented, in references/persona_principles.md with a source), moderate (widely attributed, source not pinned), low/unknown (you're inferring). Mirrors productivity/andreessen's citation discipline.
  3. If you cannot ground a persona's lens in a real source, drop that persona. A confidently-wrong quote attributed to a living engineer is worse than one fewer reviewer. Never fabricate a citation to hit the "≥1 finding" bar.
  4. The finding must stand on its own technical merit. The persona is a lens that directs attention, not the authority that makes the finding true. A real bug found "through Carmack's lens" is real because it's a bug, not because Carmack said so.

Rules

  • Ground before role-play. Anchor each persona in references/persona_principles.md (or a verifiable search) first. Ungrounded = invalid.
  • Findings stand on technical merit, with the persona's principle as the lens — see the discipline above.
  • Product persona mandatory every round. Engineers miss UX. Always include one.
  • Honesty over quantity. Don't fabricate findings or citations. Clean dimensions get reported clean (with the zero-finding burden below).
  • Zero-finding burden. "Looks fine" is only valid if you name 3+ principles the code demonstrably satisfies, and how. Non-findings are as expensive as findings.

Persona Pools

Each persona's documented principles + sources + confidence live in references/persona_principles.md.

Product (pick 1 per round — mandatory):

Persona Documented principle Best for
Steve Jobs Start from the customer experience, work back to the tech UX, onboarding
Marty Cagan Fall in love with the problem, not the solution PRDs, feature specs, scope creep
Des Traynor (Intercom) The first 30 seconds decide adoption Docs, READMEs, quick starts

Engineers (pick 2 per round):

Persona Documented principle Best for Blind spot
Ken Thompson Trust boundaries; do one thing well Architecture, supply chain, API UX, docs
Linus Torvalds Eliminate the special case ("good taste"); never break userspace
常见问题

它会编造这些工程师的话吗?

不会。该技能要求只引用真实、有记载的原则,绝不编造引语。

它会给出什么样的结论?

它会以「CONCERNS」之类的结论结束,并说明合并前应修复什么。

包括哪些工程师?

参考文件涵盖 Torvalds、Thompson、Carmack、Beck、Jobs 和 Cagan 等角色。

详情

作者的原始描述

Use when a PR has architectural or UX impact, or automated review feels generic, and you want it reviewed through named engineers' documented views (Torvalds, Thompson, Carmack, Beck, Jobs, Cagan). Cites the source for each persona's critique.

repo: alirezarezvani/claude-skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能