Adversarial Testing Toolkit

A set of Claude Code agents and skills that help you find where a piece of software
will break — and prove it with tests — instead of only building it. It brings the discipline
of adversarial testing (the red-teaming used to break models) to apps, systems, prompts,
specs, and implementation plans, and composes with spec-driven development for an extra
quality gate.
Developed in this repo; intended to be packaged as a Claude Code plugin later.
The idea
Most assistants answer the question. This toolkit also answers "how does this fail?" —
systematically, with severity, concrete scenarios, and regression tests. It does that at
three levels:
- A persistent adversarial mode that appends a "how this can fail" section to every
answer.
- Focused skills for a single artifact or a single job (red-team, test plan, generate
tests, attack a spec).
- A heavyweight deep audit that fans out specialized auditors in parallel and verifies
their findings before reporting.
Architecture
One shared knowledge core; many thin consumers. Nothing about failure modes, severity, or
reporting is duplicated.
.claude-plugin/ Plugin + marketplace manifests
core/ Single source of truth (referenced, never copied)
failure-taxonomy.md WHAT to look for — FUNC / SEC / RES / LLM / PLAN failure ids
report-format.md HOW to report — severity = Impact × Likelihood, finding structure
output-channels.md WHERE to send findings — terminal / file / HTML artifact / PR comments
stack-detection.md HOW to detect language/test framework before testing
adversarial-mindset.md HOW to think like a red team
templates/ Rendering assets (audit-report.html for the HTML channel)
agents/ Specialized subagents (one job each)
skills/ User-invocable /commands (thin orchestration)
hooks/hooks.json SessionStart (publish core path) + UserPromptSubmit (adversarial mode)
scripts/ Hook scripts (PowerShell)
docs/methodology.html Visual methodology dossier
Agents
| Agent | Job |
|---|
redteam-critic | Attacks any one artifact (plan/spec/code/prompt); returns only the failure analysis |
weakpoint-scout | Maps functional weak points and recommends the tests worth writing |
test-engineer | Detects the stack, generates tests in the repo's conventions, runs them, reports evidence |
security-auditor | Attack-surface review (injection, authZ/authN, secrets, SSRF, config…) |
resilience-auditor | Failure & load behavior (timeouts, retries, leaks, scaling, recovery, observability) |
llm-robustness-auditor | Prompt injection, jailbreaks, exfiltration, tool abuse, grounding, robustness |
Skills (commands)
| Command | What it does |
|---|
/adversarial-mode on|off|status | Toggle persistent adversarial mode (hook-enforced) |
/redteam <target> | Focused adversarial critique of one plan/spec/code/prompt |
/test-plan <target> | Risk-ranked plan of tests worth writing (recommend only) |
/generate-tests <target> | Generate + run tests in the project's framework, with evidence |
/spec-attack <spec|plan|tasks> | Attack Spec Kit artifacts; return findings + corrective tasks |
/deep-audit <target> | Parallel multi-agent audit + adversarial verification → one ranked report |
How the pieces fit
- Daily use: turn on
/adversarial-mode and every answer carries a red-team tail. Or
reach for /redteam on a specific thing.
- Before writing code (SDD): run
/spec-attack on your spec/plan so ambiguities and
missing requirements die cheap. Works with GitHub Spec Kit (specify → plan → tasks → attack → implement).
- While building:
/test-plan to see the weak points, /generate-tests to cover them.
- Before release / high stakes:
/deep-audit for a full parallel sweep with verified
findings.
How findings are shown
Findings are authored once in the canonical Markdown structure (report-format.md) and
rendered to the terminal by default — severity-ordered, with clickable file:line
links. Any finding-producing skill (/redteam, /deep-audit) can additionally route the
same findings to other channels on request (--out file,html,pr or natural language),
per output-channels.md: