adversarial-pr-review

adversarial-pr-review is a skill for Claude Code from tomzx/agents. It costs 132 tokens per session (5,767 once invoked), scanned C, original, MIT.

A pull-request review method that assumes a code change may fail and tries to reproduce likely failure scenarios. Unlike a static review, it may run temporary tests or probes outside the main project to gather direct evidence.

In plain words
What is it for?
Use it to rank plausible failure cases, execute probes against a pull request, and report which problems were reproduced and which remained unproven.
Why use it?
It helps distinguish a suspected problem from a failure that was actually reproduced. This can reveal ways a pull request breaks that a normal code inspection misses.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Use it to rank plausible failure cases, execute probes against a pull request, and report which problems were reproduced and which remained unproven.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomzx/agents/adversarial-pr-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tomzx/agents --skill adversarial-pr-review
Clone the repo
git clone --depth 1 https://github.com/tomzx/agents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adversarial-pr-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomzx/agents/adversarial-pr-review/github.svg)](https://agentmods.dev/skills/tomzx/agents/adversarial-pr-review)
Your own site
<a href="https://agentmods.dev/skills/tomzx/agents/adversarial-pr-review"><img src="https://agentmods.dev/badge/skills/tomzx/agents/adversarial-pr-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adversarial-pr-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/tomzx/agents/adversarial-pr-review"><img src="https://agentmods.dev/badge/skills/tomzx/agents/adversarial-pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,767 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00132 $0.05767
Opus 5.5 $0.00053 $0.02307
Sonnet 5.5 $0.00026 $0.01153
Haiku 4.5 $0.00013 $0.00577

Measured today against content hash 0df4078200d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

adversarial-pr-review scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/adversarial-pr-review-$PR_NUMBER

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(gh:*, ghx:*, git:*, uv:*, python:*, python3:*, node:*, npm:*, npx:*, go:*, cargo:*, make:*, docker:*, curl:*, ~/.agents/scripts/get-env:*, ~/.agents/scripts/should-post-to-github:*, ~/.agents/scripts/
skills/adversarial-pr-review/SKILL.md · 405 lines

How it starts

The opening of the file, as written. The whole thing — 405 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adversarial PR Review

Answers the adversarial question: "what is the most likely way this change breaks, and can I make it break?" It assumes the change is broken and works to prove it, instead of checking that it does what it claims.

It complements the other review steps and does not replace them:

Skill Question Evidence ceiling
/review-pr Is the code well built? L2 - Ruled out (static)
/verify-pr Does the accepted behavior work? L4 - Reproduced
/validate-pr Is this the right product? L2 - Ruled out (static plus issue reading)
/adversarial-pr-review Which plausible failure happens, and can I reproduce it? L4 - Reproduced

Its contribution is adversarial reproduction: a ranked list of failure scenarios where the decisive ones were actually executed against the PR's code. A suspicion that was never tried is reported as unproven, never as a failure.

Prerequisites

  • Apply the shared SDLC conventions in skills/sdlc/references/shared.md (PR Review Reports for report location and posting rules).
  • Apply the shared evidence standard in ../sdlc/references/evidence.md: label every finding with an L<n> - <Name> level. A breaks verdict requires at least one decisive scenario at L3 - Executed or L4 - Reproduced.
  • If no argument is provided, target the pull request from $PR_NUMBER (and $REPO).
  • gh CLI authenticated with read access to the target repository.
  • git worktree available, and a toolchain able to run the PR's code (or the willingness to report unproven when it cannot).
  • A scratch directory outside the repository, by default /tmp/adversarial-pr-review-$PR_NUMBER.
  • Read-only toward the PR and its repository: probes run against the worktree, write only under the scratch directory, and never modify, stage, or commit anything in the worktree.
  • Self-contained evidence: the attack needs only the diff, the codebase, the PR description, and the linked issue. It never reads or waits for sibling reports (assess-pr-risk, summarize-behavior-changes, analyze-test-coverage, validate-pr, verify-pr, review-pr).
  • Orchestrators (review-pr-full, review-requested-prs) dispatch this skill concurrently with the analyze-test-coverage -> validate -> verify -> review chain and provide WORKTREE_DIR; because it shares no evidence with the chain, the parallel dispatch never weakens it.

Read the full file on GitHub · 405 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 405 lines · 132 tokens per session scan C 0df4078200d3

Subscribe to this mod's changes

adversarial-pr-review is a skill published in the GitHub repository tomzx/agents (13 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 5,767 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.

Related

Other skills, from other repositories

adk-go-self-review

Review an ADK Go change the way a maintainer will — a fresh-context pass over the whole diff, five lenses (correctness and tests, scope, simplicity, style, adk-python parity), and the mutation check that proves your tests pin the change. Use before opening a PR, before any later push that changes code, and when asked…

google/adk-go · 87 tokens

adversarial-reviewer

Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart, or to check your own change before submitting it. Do not use for ordinary review, style feedback, or general…

emdash-cms/emdash · 72 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

semgrep-rule-variant-creator

Creates language variants of existing Semgrep rules. Use when porting a Semgrep rule to specified target languages. Takes an existing rule and target languages as input, produces independent rule+test directories for each language.

waybarrios/opencode-power-pack · 50 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

plugin-review

Review plugin quality with tiered checks and dependency scoping. Use for PR and pre-release audits.

athola/claude-night-market · 23 tokens