adversarial / code-pr

Evaluate code pull requests with adversarial critics for structural, test, dependency, and data-leak risks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Collectively-Gary/GaryOS --skill adversarial-code-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adversarial / code-pr
Source: https://github.com/Collectively-Gary/GaryOS/tree/main/data/skills/adversarial/code-pr
Command: npx skills add https://github.com/Collectively-Gary/GaryOS --skill adversarial-code-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents harmful or low-quality AI-generated code changes from being approved and merged by running targeted adversarial critics over the proposed diff and its associated tests.

Core Features & Use Cases

  • Multi-critic risk evaluation for code PRs: Runs five independent critics (structure, AI failure modes, test quality, dependency slopsquatting, and data-leak exposure) over the action’s plan/draft/diff facts.
  • Risk-calibrated review depth: Adjusts how many times critics run and whether per-test inspection is exhaustive based on a structural risk score.
  • Deterministic ship/hold decisioning: Produces a findings list with explicit severities (blocker/concern/note) and decides whether code is shippable or held for rework.

Quick Start

Ask an AI to perform an adversarial review of the proposed code pull request for the GaryOS code-pr playbook and return ship/hold findings with blockers identified.

Frequently Asked Questions about adversarial / code-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run an adversarial code review for AI-generated pull requests?

Adversarial code review evaluates proposed AI-generated diffs by running independent critics for structural issues, test weaknesses, dependency risks, and data leaks. It assesses pull requests against plan success criteria and test outcomes to produce a deterministic ship or hold decision.

What is slopsquatting risk in AI code dependencies?

Slopsquatting risk in AI code dependencies occurs when AI-generated code introduces unverified or malicious packages. Adversarial review checks that new dependencies map to verifiable entries in their registries, preventing this supply chain attack vector before the pull request ships.

How can I prevent data leaks in AI-generated code diffs?

Preventing data leaks in AI-generated code diffs requires targeted exposure surface analysis. The review process runs a dedicated data-leak critic over the proposed changes to identify and block potential sensitive information exposure before approving the pull request.

Does pull request validation adjust review depth based on code risk?

Pull request validation adjusts review depth dynamically based on a structural risk score. High-risk diffs trigger exhaustive per-test inspection and multiple critic iterations, while lower-risk changes receive a standardized evaluation pass.

What are common AI failure modes in generated code changes?

Common AI failure modes in generated code changes include structural defects, insufficient test coverage, and insecure data handling. A dedicated critic evaluates the diff specifically for these AI-specific patterns to catch issues that standard linters miss.

When should I hold an AI-generated pull request from shipping?

You should hold an AI-generated pull request from shipping when the adversarial review identifies any blocker-level findings. The evaluation outputs explicit severities for structural issues, test weaknesses, dependency risks, and data leaks to enforce evidence-driven readiness.