adversarial-reviewer

审查 · 75
已收录

Adversarial code review that breaks the self-review monoculture. Use when you want a genuinely critical review of recent changes, before merging a PR, or when you suspect Claude is being too agreeable about code quality. Forces perspective shifts through hostile reviewer personas

Verified installs0
Stars24.8K
版本2.9.0
质量91/100 · 优秀
信任75/100 · 仅限沙盒
审计88/100 · 需审查

供给资产档案

编程与开发 Agent

代码审查、仓库分析、测试、CI、GitHub、DevOps 与开发工作流 Skill。

浏览赛道

场景

编程 Agent

我需要一个能理解仓库、修改代码并审查 Pull Request 的编程 Agent。

适配 Agent

Claude Code + CLI + Codex

适用于 Codex、Claude Code、Cursor、CLI 或自定义 Agent。

安装

就绪

npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer

维护状态

新鲜

今天有推送

风险

需审查

Permission surface may require sandboxing

GitHub 质量

25K

91/100 质量 · 83/100 信任

覆盖标签

编程编程 Agentengineering / code qualityagent-skill

审查说明

Permission surface may require sandboxing · Quality score needs review

Agent 采用评分卡

一眼查看信任、审计与安装准备度

这些分数综合公开仓库元数据、OpenAgentSkill 审查信号、维护新鲜度与安装准备度。它用于候选筛选,不替代人工审查。

质量

优秀
91

高置信候选,具有较强的采用度与健康维护信号。

信任

仅限沙盒
75

有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。

审计

需审查
88

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

OpenAgentSkill 信任评分 v5

安装前需人工审查

仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。

CodexClaude CodeCursorOpenAgentSkill CLI

Stars

25K 个 GitHub Stars

仓库活跃度

25K 个 Star,3.5K 个 Fork

维护状态

今天有推送

许可证

MIT

安装

npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer

安装安全性

标准软件包或运行时安装路径

权限范围

shell or command execution, filesystem or document access

Agent 结果

暂未有 Agent 结果数据

文档

README/SKILL.md 上下文充分

风险摘要

生产前审查

  • Quality score needs review
  • Permission surface needs review: shell or command execution, filesystem or document access
  • Permission surface: shell or command execution, filesystem or document access

安装准备度

安装路径可用

  • 安装路径可用
  • 仓库证据可用
  • 已声明许可证
  • 暂无 Agent 验证结果证据

Agent 可读元数据

这个 Skill 的机器可读决策数据。

使用此区块或内嵌 JSON 判断 Agent 是否应安装该 Skill、选择替代方案,或先请求人工审查。

打开 JSON

适用任务

  • Security and compliance 工作流
  • Claude Code 团队
  • 重视 GitHub 采用信号的团队
  • Inspect risky files

适用 Agent

CodexClaude CodeCursorOpenAgentSkill CLICLI

安装决策

命令
npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
策略
审查
人工审查

信任与风险

信任
75/100
审计
88/100
风险级别
需审查

结果闭环

端点
/api/agent/outcome
事件 ID
resolve
结果
5

安装命令

npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer

不适用场景

  • 需要厂商支持 SLA 的团队
  • 没有内部安全审查的高合规环境
  • 暂未有 OpenAgentSkill 使用反馈数据
  • 高风险权限提示:Shell or command execution, Secrets or environment access
  • Permission surface may require sandboxing
暂未收录接近的替代方案。

Agent 安全 v2

44/100 · 避免自动安装

实验性审查

Sparse or mixed signals. Useful for discovery, but not for autonomous installation.

Test manually in an isolated workspace and compare against safer alternatives.

通过 API 解析

Shell 或命令执行

Skill 元数据引用了终端、CLI、Shell、子进程或命令执行工作流。

网络访问

Skill 可能访问远程页面、API、仓库或外部服务。

文件系统访问

Skill 可能读取或写入项目文件、文档、生成产物或本地工作区状态。

Secrets or environment access

Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.

  • 高风险权限提示:Shell or command execution, Secrets or environment access
  • Permission surface may require sandboxing

安装目标

在你的 Agent 工作流中安装此 Skill

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

skill install

OpenAgentSkill CLI

Resolve policy, run the source installer safely, and report a verified install receipt.

$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install alirezarezvani-adversarial-reviewer

Agent 解析计划

让 Agent 在安装前验证匹配度。

Resolve API 返回首选 Skill、替代方案、安全策略、审计说明、安装目标和可直接执行的提示词,无需抓取此页面。

打开文本计划

Agent 应检查

  • 从 Resolve API 检查任务匹配与替代方案。
  • 检查审计评分、信任评分和安全策略警告。
  • 检查 Codex、Claude Code、Cursor 或 CLI 的安装目标兼容性。

复制提示词

Task: Use adversarial-reviewer in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20adversarial-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/alirezarezvani-adversarial-reviewer/install
Install command: npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent 交接

把安装路径交给 Agent,而不是再给一个目录页。

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

打开安装 API

Agent 提示词

Use adversarial-reviewer for this task. Review https://www.openagentskill.com/api/skills/alirezarezvani-adversarial-reviewer/install, then install with: npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer

Registry 元数据

用于自动选择 Skill 的 Agent 可读档案。

本页通过 Registry API 提供相同的决策、信任、审计、场景和安装信号,让 Agent 无需抓取界面即可排序。

打开 Manifest

适配 Agent

100/100

Security and compliance

平台

Claude Code

审计报告

需审查 · 88/100

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

查看审计报告查看评估报告

Agent 决策面板

适合 Security and compliance 的首选

将其作为优先候选,再在你的 Agent 环境中验证 README 与安装路径。

100
就绪度
采用
阶段

栈中角色

首选

主要匹配

Security and compliance

信任标签

可用于生产

安装路径

命令已就绪

适用场景

  • Security and compliance 工作流
  • Claude Code 团队
  • 重视 GitHub 采用信号的团队

证据

  • 24,795 个 GitHub Stars
  • 仓库近期活跃
  • 已提供安装命令或 GitHub 仓库
  • 91/100 质量档案

先审查

  • 暂未有 OpenAgentSkill 使用反馈数据

实施路径

  1. 1在沙盒 Agent 中安装它,并端到端完成一次Security and compliance任务。
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

信任档案

仅限沙盒

有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。

75
OpenAgentSkill 信任评分

GitHub 采用度

通过

25K 个 GitHub Stars

Star/Fork 活跃度

通过

25K 个 Star,3.5K 个 Fork; 当前元数据中没有议题活跃度信息

近期维护

通过

今天有推送

许可证清晰度

通过

MIT

积极信号

  • AI 审查已通过
  • 安装路径可用
  • 仓库证据可用
  • 近期维护的仓库
  • Large GitHub adoption signal
  • 安装命令未发现明显高风险模式
  • 结果闭环已就绪,但需要首次真实 Agent 运行

安装前审查

  • Quality score needs review
  • Permission surface needs review: shell or command execution, filesystem or document access
  • Permission surface: shell or command execution, filesystem or document access
  • 暂未有真实 Agent 结果报告
  • 无人值守安装前需要人工审查

建议操作

仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。

质量档案

优秀 适用于 Agent 工作流的候选

高置信候选,具有较强的采用度与健康维护信号。

91
GitHub Stars
25K
新鲜度
今天
安装就绪
许可证
MIT

工作流匹配

在这些场景使用此 Skill

工作流匹配

加入完整工作流

概览

--- name: "adversarial-reviewer" description: "Adversarial code review that breaks the self-review monoculture. Use when you want a genuinely critical review of recent changes, before merging a PR, or when you suspect Claude is being too agreeable about code quality. Forces perspective shifts through hostile reviewer personas that catch blind spots the author's mental model shares with the reviewer." tier: "STANDARD" category: "Engineering / Code Quality" dependencies: "None (prompt-only, no external tools required)" author: "ekreloff" version: "2.9.0" license: "MIT" ---

# 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

1. [Quick Start](#quick-start) 2. [Review Workflow](#review-workflow) 3. [The Three Personas](#the-three-personas) 4. [Severity Classification](#severity-classification) 5. [Output Format](#output-format) 6. [Anti-Patterns](#anti-patterns) 7. [When to Use This](#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, run `git diff HEAD~1` (last commit). - **`--diff <ref>`:** Run `git 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: 1. Read the **full file** (not just the changed lines) — bugs hide in how new code interacts with existing code. 2. Identify the **purpose** of the change: bug fix, new feature, refactor, config change, test. 3. 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: 1. Merge duplicate findings (same issue caught by multiple personas). 2. Promote findings caught by 2+ personas to the next severity level. 3. 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:** 1. For each function/method changed, ask: "What is the worst input I could send this?" 2. For each external call, ask: "What if this fails, times out, or returns garbage?" 3. For each state mutation, ask: "What if this runs twice? Concurrently? Never?" 4. For each conditional, ask: "What if neither branch is correct?"

**You MUST find at least one issue. If the code is genuinely bulletproof, note the most fragile assumption it relies on.**

---

### Persona 2: The New Hire

**Mindset:** "I just joined this team. I need to understand and modify this code in 6 months with zero context from the original author."

**Priorities:** - Names that don't communicate intent (what does `data` mean? what does `process()` do?) - Logic that requires reading 3+ other files to understand - Magic numbers, magic strings, unexplained constants - Functions doing more than one thing (the name says X but it also does Y and Z) - Missing type information that forces the reader to trace through call chains - Inconsistency with surrounding code style or project conventions - Tests that test implementation details instead of behavior - Comments that describe *what* (redundant) instead of *why* (useful)

**Review Process:** 1. Read each changed function as if you've never seen the codebase. Can you understand what it does from the name, parameters, and body alone? 2. Trace one code path end-to-end. How many files do you need to open? 3. Check: would a new contributor know where to add a similar feature? 4. Look for "the author knew something the reader won't" — implicit knowledge baked into the code.

**You MUST find at least one issue. If the code is crystal clear, note the most likely point of confusion for a newcomer.**

---

### Persona 3: The Security Auditor

**Mindset:** "This code will be attacked. My job is to find the vulnerability before an attacker does."

**OWASP-Informed Checklist:**

| Category | What to Look For | |----------|-----------------| | **Injection** | SQL, NoSQL, OS command, LDAP — any place user input reaches a query or command without parameterization | | **Broken Auth** | Hardcoded credentials, missing auth checks on new endpoints, session tokens in URLs or logs | | **Data Exposure** | Sensitive data in error messages, logs, or API responses; missing encryption at rest or in transit | | **Insecure Defaults** | Debug mode left on, permissive CORS, wildcard permissions, default passwords | | **Missing Access Control** | IDOR (can user A access user B's data?), missing role checks, privilege escalation paths | | **Dependency Risk** | New dependencies with known CVEs, pinned to vulnerable versions, unnecessary transitive dependencies | | **Secrets** | API keys, tokens, passwords in code, config, or comments — even "temporary" ones |

**Review Process:** 1. Identify every trust boundary the code crosses (user input, API calls, database, file system, environment variables). 2. For each boundary: is input validated? Is output sanitized? Is the principle of least privilege followed? 3. Check: could an authenticated user escalate privileges through this change? 4. Check: does this change expose any new attack surface?

**You MUST find at least one issue. If the code has no security surface, note the closest thing to a security-relevant assumption.**

## Severity Classification

| Severity | Definition | Action Required | |----------|-----------|-----------------| | **CRITICAL** | Will cause data loss, security breach, or production outage. Must fix before merge. | Block merge. | | **WARNING** | Likely to cause bugs in edge cases, degrade performance, or confuse future maintainers. Should fix before merge. | Fix or explicitly accept risk with justification. | | **NOTE** | Style issue, minor improvement opportunity, or documentation gap. Nice to fix. | Author's discretion. |

**Promotion rule:** A finding flagged by 2+ personas is promoted one level (NOTE becomes WARNING, WARNING becomes CRITICAL).

## Output Format

Structure your review as follows:

```markdown ## Adversarial Review: [brief description of what was reviewed]

**Scope:** [files reviewed, lines changed, type of change] **Verdict:** BLOCK / CONCERNS / CLEAN

### Critical Findings [If any — these block the merge]

### Warnings [Should-fix items]

### Notes [Nice-to-fix items]

### Summary [2-3 sentences: what's the overall risk profile? What's the single most important thing to fix?] ```

**Verdict definitions:** - **BLOCK** — 1+ CRITICAL findings. Do not merge until resolved. - **CONCERNS** — No criticals but 2+ warnings. Merge at your own risk. - **CLEAN** — Only notes. Safe to merge.

## Anti-Patterns

### What This Skill is NOT

| Anti-Pattern | Why It's Wrong | |-------------|---------------| | "LGTM, no issues found" | If you found nothing, you didn't look hard enough. Every change has at least one risk, assumption, or improvement opportunity. | | Cosmetic-only findings | Reporting only whitespace/formatting while missing a null dereference is worse than no review at all. Substance first, style second. | | Pulling punches | "This might possibly be a minor concern..." — No. Be direct. "This will throw a NullPointerException when `user` is undefined." | | Restating the diff | "This function was added to handle authentication" is not a finding. What's WRONG with how it handles authentication? | | Ignoring test gaps | New code without tests is a finding. Always. Tests are not optional. | | Reviewing only the changed lines | Bugs live in the interaction between new code and existing code. Read the full file. |

### The Self-Review Trap

You are likely reviewing code you just wrote or just read. Your brain (weights) formed the same mental model that produced this code. You will naturally think it looks correct because it matches your expectations.

**To break this pattern:** 1. Read the code **bottom-up** (start from the last function, work backward). 2. For each function, state its contract **before** reading the body. Does the body match? 3. Assume every variable could be null/undefined until proven otherwise. 4. Assume every external call will fail. 5. Ask: "If I deleted this change entirely, what would break?" — if the answer is "nothing," the change might be unnecessary.

## When to Use This

- **Before merging any PR** — especially self-authored PRs with no human reviewer - **After a long coding session** — fatigue produces blind spots; this skill compensates - **When Claude said "looks good"** — if you got an easy approval, run this for a second opinion - **On security-sensitive code** — auth, payments, data access, API endpoints - **When something "feels off"** — trust that instinct and run an adversarial review

## Cross-References

- Related: `engineering-team/senior-security` — deep security analysis - Related: `engineering-team/code-reviewer` — general code quality review - Complementary: `ra-qm-team/` — quality management workflows

技术详情

版本
2.9.0
许可证
MIT
最近更新
2026年8月22日
发布时间
2026年8月22日

决策摘要

首选

100
就绪
采用
阶段

24,795 个 GitHub Stars

审计

安装审查

安装与采用审查

88
需审查
安全性
82/100
维护状态
100/100
安装
92/100
打开完整审计查看评估报告

Agent 验证证据

Agent 验证证据

来自解析、审查、安装和一次小范围运行后的结果报告。

0
已验证
Needs first agent run自动安装: 先审查最近: 未知
成功率
近期失败
结果
0
输出质量
失败
0
不相关
0
安装次数
0
风险拦截
0
需要配置
0
生产环境
0

暂时没有 Agent 结果数据。首次 Agent 执行可以通过 /api/agent/outcome 报告成功、需要设置、风险拦截、失败或不相关。

安装

加入 Agent 工作流

免费且开源. 在生产 Agent 中安装前请先审查报告。

增长闭环

分享工具包

X

为 adversarial-reviewer 准备的场景化草稿,可手动发布到 X。

策展说明
adversarial-reviewer: Adversarial code review that breaks the self-review monoculture. Use when you want a genuinel...

24.8K stars

https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer?ref=x
打开 X 草稿
可选:带安装命令的回复
Listing + install path for adversarial-reviewer:
https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer?ref=x

Install: npx skills add alirezarezvani/claude-skills --skill adversarial-reviewer
打开回复草稿

收录来源

Registry 收录

可认领

此列表来自公开来源,维护者认领获批前不会标记为官方。

创作者
ekreloff
收录方
OpenAgentSkill 社区索引

归属链接指向公开仓库或创作者主页。创作者可认领列表以更新所有权信号。

认领此 Skill

所有者认领

认领此 Skill 页面

这条 Registry 收录 列表归属于 ekreloff,但尚未标记为官方。认领后可增加已验证所有者信号,使后续发布、安装和审计更新更值得信赖。

创作者外链工具包

将证据徽章加入你的 README

在开发者评估仓库的位置展示规范页面、当前信任与审计信号,以及真实的 Agent 验证证据。

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/alirezarezvani-adversarial-reviewer?metric=listed&label=Listed)](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/alirezarezvani-adversarial-reviewer?metric=trust&label=Trust)](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/alirezarezvani-adversarial-reviewer?metric=audit&label=Audit)](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/alirezarezvani-adversarial-reviewer?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/alirezarezvani-adversarial-reviewer)

作者

E

ekreloff

@ekreloff

平台适配

健康信号

GitHub Stars
24.8K
质量评分
54/100
最近 GitHub 推送
2026年8月22日
框架提示
未知
OpenAgentSkill 浏览量
0
复制安装命令
0
跳转点击
0

社区信号

告诉我们这个 Skill 是否对你的 Agent 工作流有帮助。汇总反馈会持续改善排序。

信任与安全

仅限沙盒

75
  • GitHub 采用度25K 个 GitHub Stars通过
  • Star/Fork 活跃度25K 个 Star,3.5K 个 Fork; 当前元数据中没有议题活跃度信息通过
  • 近期维护今天有推送通过
  • 许可证清晰度MIT通过
  • README/SKILL.md 完整度元数据包含足够的用法与工作流上下文通过
  • 依赖与运行时风险network or browser surface, database surface信息