Adversarial Reviewer
Generates a 'Red Team' critique of recent code or plans to identify weak assumptions and edge cases.
от Sounder25★ 29 звёзд на GitHub
Установить Adversarial Reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- VERIFICATION_REPORT.md
- examples/code_stub.cs
- examples/test_review.ps1
- scripts/prepare_review.ps1
- templates/README.md
FAQ
Что делает скилл Adversarial Reviewer?
Generates a 'Red Team' critique of recent code or plans to identify weak assumptions and edge cases.
Как установить скилл Adversarial Reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Adversarial Reviewer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…