Interrogate

作者 backnotprop3a604672c46c无许可证1.3K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart". Multiple LLM reviewers challenge changes from independent angles.

AI 生成的概览

让多个 LLM 审查者从不同角度审查代码改动,并综合出对抗式评审结论。

功能
该技能通过为每个已配置模型启动一个审查子代理来组织对抗式代码审查,每个审查者收到相同的提示、评分标准和代码质量视角。它根据差异或文件确定审查范围,说明改动意图,然后收集并去重发现,标注共识项和单一模型发现。主审查者将每条发现归类为应处理、可考虑、已记录或已驳回,并输出结构化结论,不会自动应用改动。
适用场景
当用户要求对代码改动进行对抗式、多模型或压力测试审查,或希望发现盲点和质疑时使用。它适合在提交拉取请求前审查分支差异或特定文件。
运行要求
需要具备子代理或任务工具的代理运行环境,并能访问所配置的审查模型;它会读取审查提示、评分标准、代码质量视角和主审查判断框架等参考文件。该技能不附带脚本,也不会自动应用改动。

Interrogate

Spawn one reviewer per configured model to adversarially review code changes. Each model gets the same prompt and rubric. The adversarial signal comes from model diversity, not assigned personas.

The deliverable is a synthesized verdict. Do NOT auto-apply changes.

Step 1, Determine Scope

Identify what to review from context:

  • If the user points at specific files or a diff, use that
  • If on a feature branch, run git diff main...HEAD (or the appropriate base branch) for the full changeset
  • If the user's message references recent work, gather the relevant files

Package the diff (or file contents) plus any surrounding context files the reviewers need to understand the code.

Step 2, State the Intent

Before spawning reviewers, state the intent explicitly. Derive this from:

  • The user's message
  • Commit messages
  • PR description if one exists
  • The code itself

Write one clear paragraph. If you're unsure about the intent, ask the user before proceeding.

Step 3, Spawn Reviewers

Launch all reviewers in a single message using the Task tool.

Other harnesses. The spawns in this skill use Cursor's Task tool. In another harness, use its subagent tool: Agent in Claude Code (subagent_type: general-purpose), task in OpenCode (subagent_type: general), spawn_agent in Codex. Keep the prompt and the model. Drop parameters your tool doesn't have. If your harness has no subagent tool, as in Pi without an extension, run each reviewer yourself, one after another.

Use the interrogate reviewers line in the pstack settings file (~/.cursor/rules/pstack-models.mdc in Cursor, ~/.agents/pstack-models.md in other harnesses), one reviewer per entry, extending or shrinking the Reviewer A/B labels below to the configured entry count. If the file or that line is missing, use the table defaults.

SubagentDefault model
Reviewer Aclaude-opus-5-5-xhigh
Reviewer Bgrok-4.7-xhigh-fast

For each reviewer:

  • subagent_type: generalPurpose
  • model: the configured interrogate reviewers entry, or the table default with no configured line. For an auto or inherit-parent entry, omit model so that reviewer runs on the parent model.
  • readonly: true

If your subagent tool rejects a configured entry, run that reviewer on the table default of its family and say so. Families go by prefix: claude-* and grok-*. With no family match, use Reviewer A's default. If it rejects a table default, check the valid slugs in its error message or your harness's model list, pick the closest equivalent (prefer the same family and reasoning tier), spawn with it, and open a separate PR to update the default table. Do not block the review on the slug issue. Never treat an alias entry as a rejected slug or apply either fallback to it.

Read references/reviewer-prompt.md and fill in the template with:

  1. The stated intent
  2. The diff or file contents
  3. The review rubric from references/rubric.md
  4. The code-quality lens from references/code-quality-review.md

The same filled template goes to all reviewers, so every model applies the code-quality lens.

Step 4, Synthesize

As results come back, build a unified picture:

  1. Parse all findings from the reviewers
  2. Identify consensus. Findings raised by 2+ models independently are highest signal.
  3. Identify lone-model findings. Still worth reading, but weight accordingly.
  4. Deduplicate. Different models may describe the same issue differently. Merge these and note which models raised it.
  5. Note disagreements. If one model flags something and another explicitly says the opposite, that's useful context for the verdict.

Step 5, Lead Judgment

You are the lead reviewer, a pragmatic senior engineer, not a neutral aggregator.

Read references/lead-judgment.md for the full framework.

Categorize every finding using these buckets:

  • Act on. Real issues affecting correctness, security, or maintainability given the actual goals. These would block a real PR.
  • Consider. Legitimate points, but you're not sure they outweigh the cost of addressing them right now. Worth the user's attention.
  • Noted. Technically valid but not actionable. Context-dependent, premature optimization, or low-impact given the current stage.
  • Dismissed. Wrong, nitpicky, or missing context. Brief explanation why.

For each finding, include:

  • Which model(s) raised it
  • The category (act on / consider / noted / dismissed)
  • A one-line rationale for the categorization

Output Format

Present the verdict in this structure:

Intent

[The stated intent paragraph from Step 2]

Reviewers

  • Reviewer [label]: [model name], [N findings] (one bullet per reviewer)

Act On

[Findings that should be addressed. For each: description, which models raised it, why it matters.]

Consider

[Findings worth thinking about. For each: description, which models raised it, tradeoff involved.]

Noted

[Valid but low-priority. Brief list.]

Dismissed

[Rejected findings with brief rationale.]

Agreement Map

[Where did models agree, where did they diverge, and what does the pattern of agreement/disagreement tell us?]

来源与署名

来源:backnotprop/pstack位于skills/interrogate提交3a60467

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架