agentleFS
roronoazoroshao369roronoazoroshao369/vibe-coding-os/skills/core/adversarial-code-review/SKILL.md

adversarial-code-review

Skill1 starsChanged 5 months agoMITView on GitHub

Run a red-team review of a code change that actively looks for ways the patch can be wrong, unsafe, insufficiently tested, incompatible, or larger than necessary. This is not a polite rubber-stamp review: approval must be earned by evidence. Use before merge, before releasing risky changes, after an implementation agent claims completion, when tests pass but confidence is low, or when correctness, security/safety, compatibility, or minimal-diff discipline matters. Original task or spec, acceptance criteria, current diff, changed files, relevant surrounding…

13 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a red-team review of a code change that actively looks for ways the patch can be wrong, unsafe, insufficiently tested, incompatible, or …

    line 17
  2. Distinctive:

    Use before merge, before releasing risky changes, after an implementation agent claims completion, when tests pass but confidence is low, …

    line 21
  3. Distinctive:

    If no serious findings remain, state the residual risks and why they are acceptable.

    line 37
  4. Distinctive:

    Critical: must-fix correctness, safety, data-loss, build-breaking, or release-blocking issues.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: Adversarial Code Review

Purpose

Run a red-team review of a code change that actively looks for ways the patch can be wrong, unsafe, insufficiently tested, incompatible, or larger than necessary. This is not a polite rubber-stamp review: approval must be earned by evidence.

When to use

Use before merge, before releasing risky changes, after an implementation agent claims completion, when tests pass but confidence is low, or when correctness, security/safety, compatibility, or minimal-diff discipline matters.

Inputs

Original task or spec, acceptance criteria, current diff, changed files, relevant surrounding code, test and validation results, supported environments or compatibility constraints, known risks, and any non-goals or files out of scope.

Workflow

  1. Restate the intended behavior and scope boundaries in one or two sentences.
  2. Inspect the diff before trusting the implementation summary.
  3. Attack correctness: edge cases, state transitions, error paths, data shape assumptions, concurrency, idempotency, and regression risk.
  4. Attack security and safety: input handling, access control, privacy exposure, dependency or supply-chain risk, dangerous defaults, and misuse potential.
  5. Attack tests: missing coverage, weak assertions, untested failure modes, flaky checks, and validation that does not exercise the changed behavior.
  6. Attack compatibility: public API changes, migrations, configuration, platform assumptions, version skew, localization, accessibility, and backward compatibility.
  7. Attack scope: unrelated churn, broad rewrites, speculative abstractions, formatting noise, and changes that are not required by the task.
  8. Classify findings by severity and make each finding specific, reproducible, and tied to evidence.
  9. If no serious findings remain, state the residual risks and why they are acceptable.

Outputs

A red-team review report with these sections:

  • Critical: must-fix correctness, safety, data-loss, build-breaking, or release-blocking issues.
  • Important: high-value fixes for tests, compatibility, maintainability, or edge cases that should be addressed before merge unless explicitly deferred.
  • Minor: small clarity, naming, or cleanup items that do not block acceptance.
  • Verdict: Request changes, Approve with reservations, or Approve, with verification evidence and residual risk.

Failure modes

  • Rubber-stamping because the implementation looks plausible.
  • Reviewing only style while missing correctness or safety risks.
  • Accepting test output without checking whether tests cover the changed behavior.
  • Treating a large diff as acceptable when a minimal diff would satisfy the task.
  • Reporting vague concerns without actionable evidence.
  • Blocking on personal preference instead of task risk.

Verification checklist

  • Review challenged correctness, security/safety, tests, compatibility, and minimal diff.
  • Findings are sorted by severity and tied to concrete evidence.
  • The report avoids polite approval without scrutiny.
  • The verdict explains remaining risk and required follow-up.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.