Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversarial security and resilience analysis — auto-triggered during /review and /test based on task classification. Provides attack surface analysis, boundary testing, auth bypass attempts, dependency chain attacks, and Beast Mode stress testing.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 33% | 0% |
This skill applies adversarial thinking to code changes: instead of checking against a compliance list (that's what security_guardrails.md does), it actively asks "how would an attacker exploit this change?" and "what breaks under extreme conditions?"
It complements — never replaces — the existing OWASP security scan in /review.
/review and /test phases only. It cannot override gates, skip phases, or alter classification.AI MUST check the task classification from the Work Log and apply this matrix automatically:
Classification │ /review │ /test
──────────────────────┼──────────────────┼─────────────────
tiny-fix │ — │ —
quick-win │ — │ —
hotfix │ Lite Red Team │ Lite Adversarial (1-2 cases)
feature │ Full Red Team │ Adversarial Cases
architecture-change │ Full Red Team │ Adversarial Cases + Beast ModeAuto-trigger logic: During /review or /test, read Classification: from the active Work Log. If classification is hotfix, feature, or architecture-change, execute the corresponding mode below. No user action required.
Minimal overhead (≤300 tokens output). Focus exclusively on the fix point:
Output: 1-2 findings max, using the Red Team Report format below.
Comprehensive adversarial analysis of all changed files:
Output: All findings using the Red Team Report format below.
In addition to Full Red Team, analyze systemic resilience:
Output: Use the Beast Mode Analysis format below.
markdown## Red Team Findings ### [CRITICAL|HIGH|MEDIUM|LOW] — [Attack Vector]: [Brief Description] - **File**: [path:line] - **Attack Scenario**: [1-2 line attack narrative] - **Impact**: [What attacker gains] - **Mitigation**: [Concrete fix]
markdown## Adversarial Test Cases | # | Category | Input / Scenario | Expected Behavior | Priority | |---|----------|------------------|--------------------|----------| | 1 | Boundary | [extreme input] | [should reject/handle] | HIGH | | 2 | AuthZ Bypass | [bypass attempt] | [should deny] | CRITICAL |
markdown## Beast Mode Analysis ### Concurrency - [race condition scenarios with file:line references] ### Resource Exhaustion - [memory/CPU/disk scenarios] ### Fault Injection - [what happens if dependency X fails? if network drops?]
For phase-entry loading, read only:
Ironclad RulesWhen to Use (Auto-Trigger Matrix)ModesLoad Output Formats, Blocking Rules, Work Log Integration, Red Team Findings, and Common Mistakes on full read or cache miss only.
Red Team findings use a graduated blocking model:
│ Security Guardrails (OWASP) │ Red Team Skill
────────────────────┼─────────────────────────────┼──────────────────
CRITICAL │ Hard block │ Hard block
HIGH │ Hard block │ Soft block (record decision)
MEDIUM │ Flag, proceed allowed │ Advisory
LOW │ Informational │ Advisory/review verdict. MUST fix before proceeding.## Red Team Findings section). Recommend using /decide to document accept/defer rationale.Rationale: Red Team analysis is inherently more speculative than OWASP checklist scanning. Hard-blocking on HIGH would create excessive false positives. But CRITICAL findings (e.g., a directly exploitable auth bypass path) must be treated as blocking.
All Red Team findings MUST be recorded in the Work Log under ## Red Team Findings:
markdown## Red Team Findings - [date] /review: [N] findings ([severity breakdown]) - [date] /test: [N] adversarial cases generated - HIGH risk decisions: [accepted/deferred — see /decide #N]
Other measured skills in the registry, with their headline benchmark lift.