跳到正文
Skillpedia
测试48k · #4350

debate-review

它能做什么

这个工具会让两个 AI 在代码发布前对其进行审查。一个 AI 负责找出问题,另一个则尝试为这些问题辩护或发现新的问题,从而让分析更加全面。

适用场景

  • ✓当你希望对即将发布的代码(PR/MR)进行详细审查时。
  • ✓当你想发现常规审查中可能漏掉的“盲点”时。
  • ✓当你还没创建审查请求,想先在本地审查代码时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/debate-review/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请帮我审查这段代码。”

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

工作原理

你运行一条命令,代码就会被发送给两个 AI。它们会就发现的问题进行“辩论”,然后生成最终的审查意见,并直接显示在你的代码请求上。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

debate-review

When to Use

  • You have a GitHub PR or GitLab MR that needs a thorough pre-merge review.
  • You want a two-model debate (main reviewer vs. debate reviewer) to catch blind spots before posting inline comments.

Two models argue before anything is posted. A main reviewer finds issues. A debate reviewer tries to knock them down and may add its own. The main reviewer then makes the final call, and one review with inline comments lands on the PR or MR. It posts from the user's own gh, glab or az account as a non-approval review or comment. It never approves and never requests changes.

You are the orchestrator. You run one command and relay the result. You do not review the diff yourself, and you do not touch the PR.

Run it

node "<skill-dir>/scripts/review-pr.mjs" --local [--base <ref>]
node "<skill-dir>/scripts/review-pr.mjs" <pr-url | number> [--dry-run]
  • If the user wants a review and there is no PR/MR URL, run --local from the repo (or --repo-dir). Do not invent a URL. Relay stdout. --local never talks to a forge and rejects non-UTF-8 Git paths rather than decoding them lossily.
  • <pr-url> is a GitHub /pull/N, GitLab /-/merge_requests/N, or Azure DevOps /_git/<repo>/pullrequest/N URL (dev.azure.com or the legacy *.visualstudio.com). A bare number resolves against the cwd's origin, including Azure DevOps https and ssh.dev.azure.com:v3/ remotes.
  • --dry-run prints a live PR review instead of posting it. It does not combine with --local.
  • Azure DevOps needs az logged in (az login) with access to the project. No extension is required, the script talks to the REST API through az rest. A review there is N inline comment threads plus one closed summary thread, since Azure DevOps has no single review object; the alert blockquotes render as plain quotes, which still read.
  • The reviewers are two delegate-skills lanes, review-main and review-debate. If either is missing the script says so. Add them with delegate-setup. Pick two different implementers, since the debate is only worth something when the second model doesn't share the first one's blind spots (main claude or grok, debate codex at high effort is a good pair). For a one-off, pass --main <implementer> or --debate <implementer>. Only implementers whose relay has --read-only are accepted. These two lanes belong to the reviewer. Don't point them at a lane you use for other work, such as a plan-debate lane.
  • Exit code 3 means this head sha already has a debate-review. Re-run with --force to post again.
  • A run takes minutes, since it is two or three implementer sessions back to back. Run it in the background and report the printed URL when it finishes. Don't poll tightly.

All flags: --help. Contracts: references/schema.md. What gets posted: references/comment-format.md. The reviewer briefs live in assets/prompts/ and the script fills them in; you don't need to read them.

After it posts

Each posted comment carries a <!-- debate-review:<id> status=... --> marker. babysit-pr handles GitHub and GitLab rounds (verify, fix blockers, reply, resolve). It cannot harvest Azure DevOps yet, so relay Azure findings directly to the user. Don't act on the findings yourself unless asked.

Artifacts

~/.cache/debate-review/<owner>__<repo>/<N>/<head>/ holds run.json (all three documents, timings, what was posted) plus main/, debate/, and final/, each with the brief sent and the relay's result.json. --local writes under ~/.cache/debate-review/local/<repo>/<branch>/<head>/ instead.

Limitations

  • Requires delegate-skills with review-main and review-debate lanes and authenticated gh/glab.
  • Docs-only import — executable helpers (scripts/) not included; see upstream for full runtime. Posts a single COMMENT review only.

Adapted from amElnagdy/review-skills (MIT) — docs-only, runtime not bundled.

常见问题

我需要会编程才能使用吗?

不需要,你只需要知道如何请求审查即可,技术部分由工具完成。

“PR”和“MR”是什么?

这是 “Pull Request”(GitHub/Azure DevOps 中使用)和 “Merge Request”(GitLab 中使用)的缩写,是请求将你的代码改动合并到更大项目中的方式。

AI 会批准我的代码吗?

不会。AI 从不批准代码,也不会要求修改,它只会指出可以改进的地方。

详情

作者的原始描述

Two-model debate review of a GitHub PR, GitLab MR, Azure DevOps PR, or local working tree, posted as inline comments or printed. Use for any PR/MR review request, or a local review before a PR exists.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4350
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能