/adversarial-testing:spec-attackfrom Adversarial Testing Toolkit
Adversarially reviews specs, plans, and task lists for ambiguity, missing requirements, untestable criteria, integration gaps, and security omissions. Returns ranked findings with corrective tasks to fold back into the plan.
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 hardens specs and plans before implementation, where fixing a flaw is cheapest. It composes with GitHub Spec Kit but works on any spec/plan document.
specs/**/ for spec.md, plan.md, tasks.md, and a
constitution / principles file if present. Also check .specify/ or a memory/
constitution. If several feature folders exist, ask which, or take the one the user named.redteam-criticPass the artifact, its type (spec / plan / tasks), and any linked context (the constitution, the parent spec when attacking a plan, the existing system when attacking a migration). Ask it to weight the PLAN dimension of the taxonomy first:
For consistency with Spec Kit's own review gates, also check: does every requirement have an objective acceptance test? Does every task trace to a requirement? Are there requirements with no task, or tasks with no requirement?
Beyond the ranked findings, produce a "Corrective tasks" block: concrete edits to the
spec/plan and, where useful, new task entries phrased to drop straight into tasks.md
(e.g. "Clarify FR-3: define 'fast' as p95 < 200ms" / "Add task: define rollback for the
data-migration step"). This is what makes the critique actionable inside the SDD loop.
Present the redteam-critic report (report-format envelope + ranked findings) followed by
the Corrective tasks block. Offer to apply the spec/plan edits if the user wants, and to run
/deep-audit once code exists.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/adversarial-modeToggle persistent Adversarial Testing mode on or off for this project. When ON, every assistant response gains a structured "how this can fail" red-team section automatically (enforced by a deterministic hook). Use when the user says things like "adversarial mode on/off", "activá el modo adversarial", "turn on red-team mode", or asks the current state. Accepts: on | off | status (default: toggle/report).
/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.
/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