/pstack-herdr:interrogatefrom pstack-herdr
在 Herdr 里让三家模型评审一份代码改动:Codex 找问题,Gemini 筛掉 Codex 过度防御的部分,Claude 看架构;当前会话汇总给用户。用于 /interrogate、'interrogate'、'对抗评审'、'多模型评审'、'挑挑毛病'。不自动改代码。要求 HC_TERMINAL_ID 已设置。
Ships in pstack-herdr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
改编自 poteto/pstack 的 interrogate。原版是几家模型拿同一份 prompt 各自评审;这里按各家特长分工:
| 谁 | 做什么 | 产出 |
|---|---|---|
| Codex | 找问题:正确性、边界情况、错误处理 | codex.md |
| Gemini(agy) | 读 Codex 的发现,筛掉过度防御的 | gemini.md |
| Claude | 架构评审 | claude.md |
模型和推理强度用 arena skill 模型表里的:Codex、Claude 用参赛者那一行,Gemini 用评审那一行。启动规则按 Herdr 分流规则(hc-spawn,独立 Tab,沿用默认权限)。
不在 Herdr 里(HC_TERMINAL_ID 未设置)就停下来说明,不要用同一家的子 agent 代替。
git diff <base>...HEAD。写入 /tmp/interrogate-<slug>/:diff.patch、intent.md。
hc-spawn --name i-<slug>-codex --cwd <repo-root> -- codex <模型参数> "<Codex prompt>"
hc-spawn --name i-<slug>-claude --cwd <repo-root> -- claude <模型参数> "<Claude prompt>"
Codex prompt:
请评审这份代码改动,把发现写到 /tmp/interrogate-<slug>/codex.md。
意图:/tmp/interrogate-<slug>/intent.md
改动:/tmp/interrogate-<slug>/diff.patch
评审标准:<本 skill 目录>/references/rubric.md
每条发现写:严重程度(critical / warning / nit)、位置(path:line)、问题是什么、为什么是问题。
没有发现就写「没有发现」。
Claude prompt:
请对这份代码改动做架构评审,把发现写到 /tmp/interrogate-<slug>/claude.md。
意图:/tmp/interrogate-<slug>/intent.md
改动:/tmp/interrogate-<slug>/diff.patch
评审标准:<本 skill 目录>/references/code-quality-review.md
只看结构:分层、边界、抽象、有没有更简单的做法。每条发现写位置(path:line)、问题、建议的结构。
没有发现就写「没有发现」。
hc wait i-<slug>-codex,确认 codex.md 非空,再起:
hc-spawn --name i-<slug>-gemini --cwd <repo-root> -- agy <模型参数> "<Gemini prompt>"
Gemini prompt:
/tmp/interrogate-<slug>/codex.md 是另一位评审对一份代码改动的发现,其中一部分可能过度防御:
担心实际不会发生的情况,或者要求加不必要的检查。
请对照改动(/tmp/interrogate-<slug>/diff.patch)、意图(/tmp/interrogate-<slug>/intent.md)和仓库代码,
逐条判断,把结果写到 /tmp/interrogate-<slug>/gemini.md:
- 保留:问题真实存在,一句理由
- 筛掉:过度防御或不成立,一句理由
三份文件都非空且三个 agent 都不在 working 后,读三份文件,向用户汇报:
你有对话上下文,评审没有。和已知约束冲突的发现直接归到「筛掉的」并说明。
不自动改代码。用户确认后再改。评审的终端留着,用户确认后用 hc kill <name> && hc rm <name> 清理。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dengnaichen/pstack-herdr --plugin pstack-herdr31 skills in this plugin
/architectSketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape./arena让不同家族的模型(Claude / OpenAI / Google)在 Herdr 里各自独立出一份方案,由当前会话主持:交叉评审、挑底稿、嫁接其他方案的长处,交给用户拍板。只用于方案类问题:架构、设计、技术选型。用于 /arena、'arena this'、'丢进 arena',以及其他 skill(如 architect)要求运行 arena 时。不写代码。要求 HC_TERMINAL_ID 已设置。/figure-it-outDesign an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies.