adversarial-reviewer
Что он делает
Этот скилл заставляет агента проверять изменения кода так, как проверял бы жёсткий рецензент, с трёх критических позиций. Он нужен разработчикам, которым нужна резкая проверка перед слиянием, а не вежливый взгляд.
Когда использовать
- ✓Когда вы собираетесь слить pull request и хотите строгого ревью.
- ✓Когда ваша собственная проверка кода кажется слишком благосклонной.
- ✓Когда изменение затрагивает безопасность или поведение в продакшене и требует внимательного чтения.
Ссылка на скилл
https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/adversarial-reviewer/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверь мой pull request как враждебный рецензент, прежде чем я его влью.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент проверяет diff через три персоны: одна ищет то, что может сломать продакшен, вторая проверяет, сможет ли новый сотрудник разобраться в коде, третья ищет проблемы безопасности. Затем он выносит вердикт: блокировать, есть замечания или чисто.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Adversarial Code Reviewer
Description
Adversarial code review skill that forces genuine perspective shifts through three hostile reviewer personas (Saboteur, New Hire, Security Auditor). Each persona MUST find at least one issue — no "LGTM" escapes. Findings are severity-classified and cross-promoted when caught by multiple personas.
Features
- Three adversarial personas — Saboteur (production breaks), New Hire (maintainability), Security Auditor (OWASP-informed)
- Mandatory findings — Each persona must surface at least one issue, eliminating rubber-stamp reviews
- Severity promotion — Issues caught by 2+ personas are promoted one severity level
- Self-review trap breaker — Concrete techniques to overcome shared mental model blind spots
- Structured verdicts — BLOCK / CONCERNS / CLEAN with clear merge guidance
Usage
/adversarial-review # Review staged/unstaged changes
/adversarial-review --diff HEAD~3 # Review last 3 commits
/adversarial-review --file src/auth.ts # Review a specific file
Examples
Example: Reviewing a PR Before Merge
/adversarial-review --diff main...HEAD
Produces a structured report with findings from all three personas, deduplicated and severity-ranked, ending with a BLOCK/CONCERNS/CLEAN verdict.
Problem This Solves
When Claude reviews code it wrote (or code it just read), it shares the same mental model, assumptions, and blind spots as the author. This produces "Looks good to me" reviews on code that a fresh human reviewer would flag immediately. Users report this as one of the top frustrations with AI-assisted development.
This skill forces a genuine perspective shift by requiring you to adopt adversarial personas — each with different priorities, different fears, and different definitions of "bad code."
Table of Contents
- Quick Start
- Review Workflow
- The Three Personas
- Severity Classification
- Output Format
- Anti-Patterns
- When to Use This
Quick Start
/adversarial-review # Review staged/unstaged changes
/adversarial-review --diff HEAD~3 # Review last 3 commits
/adversarial-review --file src/auth.ts # Review a specific file
Review Workflow
Step 1: Gather the Changes
Determine what to review based on invocation:
- No arguments: Run
git diff(unstaged) +git diff --cached(staged). If both empty, rungit diff HEAD~1(last commit). --diff <ref>: Rungit diff <ref>.--file <path>: Read the entire file. Focus review on the full file rather than just changes.
If no changes are found, stop and report: "Nothing to review."
Step 2: Read the Full Context
For every file in the diff:
- Read the full file (not just the changed lines) — bugs hide in how new code interacts with existing code.
- Identify the purpose of the change: bug fix, new feature, refactor, config change, test.
- Note any project conventions from CLAUDE.md, .editorconfig, linting configs, or existing patterns.
Step 3: Run All Three Personas
Execute each persona sequentially. Each persona MUST produce at least one finding. If a persona finds nothing wrong, it has not looked hard enough — go back and look again.
IMPORTANT: Do not soften findings. Do not hedge. Do not say "this might be fine but..." — either it's a problem or it isn't. Be direct.
Step 4: Deduplicate and Synthesize
After all three personas have reported:
- Merge duplicate findings (same issue caught by multiple personas).
- Promote findings caught by 2+ personas to the next severity level.
- Produce the final structured output.
The Three Personas
Persona 1: The Saboteur
Mindset: "I am trying to break this code in production."
Priorities:
- Input that was never validated
- State that can become inconsistent
- Concurrent access without synchronization
- Error paths that swallow exceptions or return misleading results
- Assumptions about data format, size, or availability that could be violated
- Off-by-one errors, integer overflow, null/undefined dereferences
- Resource leaks (file handles, connections, subscriptions, listeners)
Review Process:
- For each function/method changed, ask: "What is the worst input I could send this?"
- For each external call, ask: "What if this fails, times out, or returns g
Частые вопросы
Какие три точки зрения у рецензентов?
Саботажник, который ищет поломки продакшена, новичок, который проверяет поддерживаемость, и аудитор безопасности, который ищет риски.
Найдёт ли обзор хоть что-то всегда?
Скилл требует от каждой точки зрения найти хотя бы одну проблему, поэтому обзор реже просто всё одобряет.
Что означают вердикты?
Блокировать значит не сливать пока, замечания значит сначала разобрать проблемы, чисто значит серьёзных проблем не найдено.
Подробности
Оригинальное описание автора
Use before merging a PR or when a self-review feels too agreeable and the change needs a genuinely critical read. Reviews the diff through hostile reviewer personas that catch blind spots the author and a friendly reviewer share.
Популярность
- Звёзды на GitHub
- 29k
- Место в рейтинге
- #9488
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
agent-launcher-orchestrator
29kПомогает агенту пошагово спланировать, собрать, протестировать и запланировать управляемого агента Claude в вашем собственном аккаунте, начиная с одной понятной цели.
grade-iterate
29kПозволяет агенту оценивать работу управляемого ИИ-агента по рубрике и улучшать её за фиксированное число раундов, чтобы процесс никогда не зацикливался.
interview
29kПозволяет агенту взять у вас интервью об идее ИИ-агента и превратить ваши ответы в простой план сборки до запуска чего-либо.
run-without-you
29kПомогает агенту настроить управляемого ИИ-агента на запуск по расписанию или при наступлении события, с проверкой времени cron перед запуском.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.