К основному содержанию
скилл CX Codex

interrogate — скилл для Claude Code: проверка кода и установка

Скилл поручает независимым моделям проверить изменения в коде и сводит их замечания в общий вердикт. Подходит для поиска ошибок и слепых зон перед ревью.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add backnotprop/pstack --skill interrogate -a claude-code
Открыть на GitHub

Что делает interrogate

Сначала скилл определяет, что проверять: указанные файлы, diff или недавнюю работу. Затем формулирует цель изменений; если она неясна, спрашивает пользователя. Для каждого проверяющего он готовит материалы с нужным контекстом и использует шаблон, рубрику и критерии качества кода из файлов проекта.

Модели запускаются как субагенты, а результат собирается в единый отчёт: совпадающие замечания отмечаются, разногласия сохраняются. Каждую находку скилл относит к одной из категорий — от требующей действий до отклонённой — и объясняет решение. Проверяющие работают только на чтение: изменения автоматически не применяются.

Для выбора моделей можно задать строку interrogate reviewers в файле настроек pstack-models; без неё скилл использует модели по умолчанию. В Claude Code ему нужен инструмент субагентов Agent, а для оценки уровня рассуждений и скорости он обращается к скиллу poteto-mode. Без доступного инструмента субагентов проверяющие запускаются по очереди.

Какие задачи решает

  • проверить diff перед отправкой PR
  • найти слепые зоны в изменениях
  • сопоставить независимые замечания моделей
  • отделить блокирующие проблемы от спорных
  • разобрать расхождения между рецензентами

Примеры запросов агенту

  • Проведи interrogate для изменений в текущей ветке и подготовь общий вердикт.
  • Проверь этот diff несколькими независимыми моделями и раздели выводы по категориям.
  • Найди слепые зоны в src/auth.ts и объясни, какие замечания действительно блокируют PR.

Как установить interrogate

1Через Skills CLI (Vercel)

npx skills add backnotprop/pstack --skill interrogate -a claude-code

2Вручную: положить файлы

~/.claude/skills/interrogate/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/interrogate/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора44

principle-fix-root-causes Скилл для отладки: доводит каждый симптом до первого места, где система сломалась, и требует править там. CX Codex +1 5 700установок technical-writing Задаёт четыре слоя стандартов для технического текста: архитектуру Diátaxis, стиль Google, правила STE и Global English. Нужен при оформлении ридми, RFC и PR. CX Codex +1 5 500установок architect Проектирует типы, сигнатуры и структуру модулей до написания кода, предотвращая неверную архитектуру в нетривиальных задачах. CX Codex +1 5 500установок arena Запускает несколько параллельных попыток на одну задачу, оценивает их по рубрике и переносит сильные куски проигравших в выбранную базу. CX Codex +1 5 500установок create-verification-skill Генерирует локальный скилл верификации для репозитория, проверяя работу веб-интерфейса, CLI или сервиса по реальным сценариям пользователя. CX Codex +1 5 300установок poteto-mode Задаёт агенту стиль poteto: короткие ответы с деталями, осознанные субагенты, простой код и проверенная работа. CX Codex +1 5 400установок principle-prove-it-works Заставляет ИИ-агента проверять результат работы на реальных артефактах перед закрытием задачи. Пригодится, чтобы модель не отчитывалась об успехе только потому, что код скомпилировался. CX Codex +1 5 200установок swarm Разворачивает N параллельных воркеров на одну задачу, собирает результаты и возвращает один сводный отчёт. Пригодится для покрытия кода, гонок моделей и разведки. CX Codex +1 5 200установок

Похожие

caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок om-approve-merge-pr open-mercato Скилл принимает номер пул-реквеста, ставит апрувящий ревью и делает squash-merge. Отказывается, если мешает QA-гейт или блокирующий лейбл. CX Codex +1 3 500установок visual-pr humanlayer Скилл автоматизирует описание pull request: читает дифф, собирает контекст и оформляет PR по шаблону так, чтобы ревьюеру было понятно, зачем нужна перемена и как она устроена. CX Codex +1 3 000установок review-pr tirth8205 Скилл анализирует PR или ветку через граф связей кода и показывает затронутые функции, риски и пробелы в тестах. Пригодится для структурированного ревью. CX Codex +1 1 200установок review owainlewis Скилл запускает отдельного субагента, который читает изменение и ищет дефекты, ничего не правя. Пригодится перед мержем, когда нужен второй взгляд. CX Codex +1 748установок finish-pr PinguApps Скилл доводит пул-реквест текущей ветки до состояния, когда его можно отдавать на ревью: разбирается с конфликтами, упавшими проверками и замечаниями. CX Codex +1 540установок

Рядом в теме «Код-ревью и рефакторинг»

Всё по теме «Код-ревью и рефакторинг» →

Вопросы о interrogate

Как установить interrogate в Claude Code?

Выполните npx skills add backnotprop/pstack --skill interrogate -a claude-code. Файл скилла будет доступен по пути ~/.claude/skills/interrogate/SKILL.md.

Что делает interrogate?

Он запускает нескольких моделей для независимого ревью изменений, объединяет их находки и выносит вердикт по каждой. Автоматически правки не применяются.

Что нужно настроить для выбора моделей?

Укажите модели в строке interrogate reviewers файла ~/.claude/rules/pstack-models.md. Если строки нет, используются модели по умолчанию.

Исходный текст

SKILL.md · MIT
---
name: interrogate
description: "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."
disable-model-invocation: true
---

# Interrogate

Spawn one reviewer per configured model to adversarially review code changes. The adversarial signal comes from model diversity, not assigned personas. The deliverable is a synthesized verdict. Do NOT auto-apply changes.

## Step 1, 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 with any surrounding context files the reviewers need to understand the code.

## Step 2, Intent

Before spawning reviewers, state the intent in one clear paragraph from the user's message, commit messages, the PR description if one exists, and the code. If you're unsure about the intent, ask the user before proceeding.

## Step 3, Spawn Reviewers

Launch all reviewers in a single message with the Task tool, one per entry on the `interrogate reviewers` line in the pstack settings file (`~/.cursor/rules/pstack-models.mdc` in Cursor, `~/.claude/rules/pstack-models.md` in Claude Code, `~/.agents/pstack-models.md` in other harnesses), labeled Reviewer A, B, and so on to match the entry count. If the file or that line is missing, use the table defaults.

**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.

| Subagent | Default model |
|----------|---------------|
| Reviewer A | `claude-opus-5-5-xhigh` |
| Reviewer B | `grok-4.7-xhigh-fast` |

Each reviewer gets `subagent_type: generalPurpose`, `readonly: true`, and `model` set to its configured entry, or its table default when there is no configured line. Omit `model` for an `auto` or `inherit-parent` entry, so that reviewer runs on the parent model.

If your subagent tool rejects a configured entry, run that reviewer on its family's table default and say so. Families go by prefix: `claude-*`, and `grok-*` with `cursor-grok-*` and `composer-*`. A refused `composer-*` entry runs on Reviewer B's default. With no family match, use Reviewer A's default. If it rejects a table default, spawn with the closest equivalent from the valid slugs in its error message or your harness's model list (prefer the same family and reasoning tier), 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 same template for every reviewer with the stated intent, the diff or file contents, the rubric from `references/rubric.md`, and the code-quality lens from `references/code-quality-review.md`. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **poteto-mode** skill.

## Step 4, Synthesize

As results come back, build a unified picture. Parse every reviewer's findings. Merge findings that describe the same issue differently, and note which models raised each one. Findings two or more models raised independently are the highest signal. Read a lone model's finding, but weight it accordingly. Note disagreements. If one model flags something and another explicitly says the opposite, that is 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. Put every finding in one of four buckets, with the model(s) that raised it and a one-line rationale.

- **Act on**. Real issues affecting correctness, security, or maintainability given the actual goals. They would block a real PR.
- **Consider**. Legitimate, but you're not sure they outweigh the cost of addressing them now. Worth the user's attention.
- **Noted**. Technically valid but not actionable. Context-dependent, premature optimization, or low-impact at this stage.
- **Dismissed**. Wrong, nitpicky, or missing context, with a brief reason.

## Output Format

### Intent
> [The stated intent paragraph from Step 2]

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

### Act On
[Each: description, which models raised it, why it matters.]

### Consider
[Each: description, which models raised it, the tradeoff.]

### Noted
[Brief list.]

### Dismissed
[Each with a brief rationale.]

### Agreement Map
[Where models agreed and diverged, and what that pattern tells us.]

© backnotprop · MIT · backnotprop/pstack

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой