skills/src/adversarial-verify/SKILL.md
Adversarial verification of code changes — probes target files for vulnerabilities through edge cases, error paths, security boundaries, and concurrency attacks. Use when you want to stress-test implementation correctness or validate defensive robustness before shipping.
npx skillsauth add shuymn/dotfiles adversarial-verifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<skill-root> means the directory containing this SKILL.md.scripts/... and references/... relative to <skill-root>, not the caller's current working directory.<skill-root>/scripts/....*_adversarial_test.*).Before starting adversarial verification, confirm preconditions:
BLOCKED.<skill-root>/references/attack-vectors.md exists. If missing, stop as BLOCKED.| Risk Tier | Invocation | Minimum Probes | Attack Scope | |-----------|------------|----------------|--------------| | Critical | Mandatory | 3 | All applicable categories | | Sensitive | Mandatory | 2 | Category 1 (Input Boundary) + most relevant 1 additional category | | Standard (impl) | Conditional Mandatory | 1 | Most relevant 1 category | | Standard (non-impl) | Optional | — | User-selected |
Implementation file definition: Standard (impl) applies when at least one target file is implementation code rather than docs/tests-only scaffolding.
date -u +"%Y-%m-%dT%H:%M:%SZ")<skill-root>/references/attack-vectors.md (including the optional ## Maintainer-Curated Extension Vectors section when present).## Maintainer-Curated Extension Vectors contains vectors matching the change characteristics, include them as additional probe targets regardless of the selected categories.*_adversarial_test.* or in a dedicated adversarial/ directory).[required] vector coverage — this step defines coverage obligations; attack-vectors.md provides the tags. [required] marks minimum-coverage vectors; non-required vectors remain applicable and should be probed when relevant — the tag does not grant skip permission.
[required] vectors within selected categories. For each: (a) execute a probe, or (b) document why it is non-applicable. Uncovered [required] vectors without documented rationale → Overall Verdict: FAIL.[required] vector in the selected category.[required] coverage obligation.[required] vector coverage procedurally:
[required] vectors within selected categories from attack-vectors.md.[required] coverage obligation — proceed.[required] vector is uncovered without documented N/A rationale → Overall Verdict: FAIL.Overall Verdict: PASS only when ALL attack probes result in DEFENDED and the Coverage Gate is PASS. Any VULNERABLE or coverage FAIL → Overall Verdict: FAIL.adversarial-report.md.scripts/<name>.sh, never an absolute filesystem path.BLOCKED and request the user to set up the necessary infrastructure. Do not skip attacks because tooling is absent.<skill-root>/references/attack-vectors.md during adversarial verification.# Adversarial Verification Report
## Verification Metadata
- **Mode**: adversarial-verify
- **Target Files**: [list]
- **Risk Tier**: [tier]
- **Verified At**: [UTC timestamp]
- **Overall Verdict**: PASS | FAIL
## Attack Summary
| # | Category | Attack Vector | Required? | Test File | Command | Exit Code | Result | Evidence |
|---|----------|--------------|-----------|-----------|---------|-----------|--------|----------|
| 1 | [category] | [vector] | yes/no | [file] | `[command]` | [code] | DEFENDED/VULNERABLE | [brief evidence] |
## Vulnerabilities Found
<!-- Only present when Overall Verdict is FAIL -->
| # | Attack Vector | Severity | Reproduction | Suggested Fix |
|---|--------------|----------|--------------|---------------|
| 1 | [vector] | [critical/high/medium] | [steps] | [suggestion] |
## Decision
- Adversarial verification: PASS/FAIL
- Reason: [rationale]
development
Simplifies recently changed code by running three parallel reviews (reuse, quality, efficiency) and applying only behavior-preserving fixes. Use when the user asks to simplify, clean up, reduce duplication, improve code reuse, or optimize recently changed code, a staged diff, a branch diff, or explicitly listed files. Also use when the user says things like 'simplify this', 'まとめて整理して', 'コードをスリムにして', or invokes `/simplify`.
tools
Use when the user invokes /workflow. Injects project workflow methodology as context. Accepts argument: plan, exec, review (default: all).
development
Processes AI reviewer feedback and applies only verified fixes. Works in two modes: (1) fetches comments from a PR URL or current branch, (2) processes feedback pasted directly into the conversation. Trigger when the user wants to bulk-process or apply AI review suggestions — from a GitHub PR or pasted text. Do NOT trigger for single questions about what a bot said, or general code review discussion.
testing
Prepares .ralph/ runtime state from an approved and reviewed plan bundle. Syncs plan tasks into prd.json and updates prompt.run.md with project-specific context and quality gates. Use after plan approval, decompose-plan review PASS, and ralph init.