/adversarial-testing:adversarial-modefrom Adversarial Testing Toolkit
Toggles persistent adversarial testing mode on/off per project. When active, every response includes a structured red-team analysis section.
Ships in Adversarial Testing Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill turns the persistent adversarial mode on or off by managing a state file that
the adversarial-mode.ps1 UserPromptSubmit hook reads. The hook does the actual per-turn
injection; this skill only flips the switch.
<project>/.claude/state/adversarial-mode.on
Parse the argument (on, off, status, or focus hints). Then:
onEnsure the directory exists and create the state file. Optionally write focus config into it if the user specified dimensions (e.g. "focus on security and resilience") or an intensity.
PowerShell:
$dir = ".claude/state"
if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Path $dir | Out-Null }
Set-Content -Path "$dir/adversarial-mode.on" -Value "" -Encoding utf8
Bash:
mkdir -p .claude/state && : > .claude/state/adversarial-mode.on
Confirm to the user: mode is ON, what it does (every response now ends with a red-team
section), any focus set, and how to turn it off (/adversarial-mode off).
Note the caveat: the per-turn injection is done by the toolkit's UserPromptSubmit hook
(shipped in the plugin's hooks/hooks.json). It only runs when the plugin is installed and
enabled; if it was just installed, a Claude Code restart may be needed for the hook to load.
The state file is per-project, so the mode is scoped to the current project.
offRemove-Item ".claude/state/adversarial-mode.on" -ErrorAction SilentlyContinue
rm -f .claude/state/adversarial-mode.on
status (or no clear argument)Check whether the state file exists and report ON/OFF plus any focus config. If the intent is ambiguous, report status and ask whether to toggle.
/redteam instead.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
adversarial-testing, red-team, security-analysis, mode-toggle
6 skills in this plugin
/deep-auditRun a comprehensive, multi-agent adversarial audit of a target (feature, module, service, or change) across all dimensions in parallel — functional weak points, security, resilience/performance, and LLM robustness — then adversarially verify each finding to drop false positives before synthesizing one prioritized report. Use for "audit this thoroughly", "auditá a fondo", "full review before release", or high-stakes changes. Heavier and more thorough than /redteam (single agent, single artifact); use that for a quick focused pass.
/generate-testsGenerate tests for a target (file, feature, or change), matching the project's own framework and conventions, then run them and report results with evidence. Use when the user says "write tests for X", "generá y corré los tests", "add test coverage", or wants actual executable tests — not just recommendations. Detects the stack automatically and never fakes a passing run.
/redteamRun a focused adversarial critique of one artifact — a plan, spec, code file/change, or LLM prompt — and get back only the structured "how it can fail" analysis. Use when the user says "red-team this", "attacá este plan/código/prompt", "how could this break?", "poke holes in this", or wants an adversarial second opinion on something specific. For a whole-project multi-dimension sweep use /deep-audit; for spec-kit artifacts use /spec-attack.
/spec-attackAdversarially review spec-driven-development artifacts before they turn into code — attacks a spec, plan, or task list (GitHub Spec Kit spec.md / plan.md / tasks.md, or any spec/plan document) for ambiguity, unstated assumptions, missing and conflicting requirements, untestable acceptance criteria, sequencing/rollback risk, integration gaps, and security/privacy-by-design omissions. Returns ranked findings plus corrective tasks you can fold back into the plan. Use for "attack this spec/plan", "revisá la spec antes de codear", or as the critique phase between specify → plan → tasks → implement.
/test-planAnalyze code (a file, feature, module, or change) and produce a prioritized, risk-ranked plan of the tests worth writing — the weak points, critical paths, and recommended cases by type (unit/integration/e2e/property). Use when the user asks "what should we test?", "qué pruebas recomendás", "where are the weak points?", or wants a test strategy before writing code. Recommends; it does not write or run tests (use /generate-tests for that).
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job