Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add Sounder25/Google-Antigravity-Skills-Library --skill "Adversarial Reviewer"
Install specific skill from multi-skill repository
# Description
Generates a 'Red Team' critique of recent code or plans to identify weak assumptions and edge cases.
# SKILL.md
name: Adversarial Reviewer
description: Generates a 'Red Team' critique of recent code or plans to identify weak assumptions and edge cases.
version: 1.0.0
author: Antigravity Skills Library
created: 2026-01-16
leverage_score: 5/5
SKILL-019: Adversarial Reviewer
Overview
Forces a context switch from "Builder" to "Attacker". Ideally used before finalizing any critical component (e.g. auth, payments, file I/O). It prepares a structured prompt packet that the agent then uses to critique its own work.
Trigger Phrases
red team thisadversarial reviewfind bugscritique code
Inputs
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--FilePath |
string | Yes | - | Path to the file to review |
--Mode |
string | No | Security |
Security, Performance, or Logic |
Outputs
1. Structured Prompt (Markdown)
A prompt template pre-filled with the code and specific attack vectors. The Agent must then "simulate" the adversary by responding to this prompt.
# βοΈ ADVERSARIAL REVIEW REQUEST
**TARGET:** src/Auth.cs
**MODE:** SECURITY
## INSTRUCTIONS
You are now the ADVERSARY. Break this code.
Look for:
1. Race Conditions
2. Replay Attacks
...
Preconditions
- Target file exists.
- PowerShell 5.1+ or Core 7+.
Safety/QA Checks
- Read-Only: Does not modify the code; only reads it.
- Size Limit: If file is massive (>10k lines), warns or truncates to prevent token overflow.
Stop Conditions
| Condition | Action |
|---|---|
| File not found | Return error |
Implementation
See scripts/prepare_review.ps1.
Integration with Other Skills
- Call
prepare_review.ps1. - Agent Step: Read the output text.
- Agent Step: "Thinking" block -> Process the critique.
- Agent Step: Generate list of fixes.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.