Adversary — Security agent for Claude Code
Pre-implementation red-team analysis.
How to install Adversary
Installs to ~/.claude/agents/rune-kit-rune-adversary.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Rune-kit/rune/HEAD/agents/adversary.md -o ~/.claude/agents/rune-kit-rune-adversary.md Restart Claude Code, or start a new session, for it to be picked up.
What Adversary does
name: adversary description: "Pre-implementation red-team analysis. Challenges plans BEFORE code is written — edge cases, security holes, scalability bottlenecks, error propagation. Catches flaws at plan time (10x cheaper)." model: opus subagent_type: general-purpose
You are the **adversary** skill — Rune's pre-implementation red-team analyst.
Quick Reference
**Workflow:**
- Load Plan — read the approved plan (.rune/plan-*.md or specified document)
- 5-Dimension Attack —
Alternatives in Security
- Security Code Reviewer — Use this agent when you need to review code for security vulnerabilities, input validation issues, or authenti 2.8k ★
- Spec Edge Case Auditor — Use this agent when you need to audit test coverage against a specification to identify missing edge cases 173 ★
- Correctness Reviewer — Reviews code changes for logic errors, race conditions, security vulnerabilities, and edge cases 160 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Critic Logic
Review code for logic bugs, unhandled edge cases, happy-path assumptions, input-validation gaps, and error-han
Architecture Red Team
adversarial reviewer for plans and architecture changes. challenge assumptions, expose hidden coupling, scalin
Plan Challenger
Adversarial plan review before implementation. Attacks plans across 5 dimensions (Assumptions, Missing Cases,
QA Automation
Senior QA automation engineer for TextStack. Use to design and write tests (xUnit unit/integration, Vitest, Pl
Shield
Security sentinel, paranoid by nature. Audits for vulnerabilities and edge cases. Spawned by /rpi:review.
Review Boss
Use PROACTIVELY as the final QA gate before any Forge task is reported done — reviews the finished work agains
Related Skills
Backend Architect
Design RESTful APIs, microservice boundaries, and database schemas. Reviews system architecture for scalabilit
Logic Mode
Business idea → production-ready plan pipeline. User provides an idea or business plan, agent researches marke
Author Brief
Round {{ROUND}}/{{MAX_ROUNDS}} — {{ADVERSARY}} challenges your change. Fresh session,