adversary

adversary is a skill for Claude Code from Rune-kit/rune. It costs 69 tokens per session (5,831 once invoked), scanned A, original, MIT.

A pre-coding red-team review of an implementation plan. It looks for edge cases, security weaknesses, scaling bottlenecks, error-handling risks, and conflicts with existing integrations before code is written.

In plain words
What is it for?
It is for stress-testing high-risk, critical, or costly plans and reporting issues that should be addressed before implementation.
Why use it?
It finds weaknesses while a plan is still cheap to change. This can avoid discovering serious design problems only after implementation is complete.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Codex.

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit It is for stress-testing high-risk, critical, or costly plans and reporting issues that should be addressed before implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rune-kit/rune/adversary
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Rune-kit/rune --skill adversary
Clone the repo
git clone --depth 1 https://github.com/Rune-kit/rune

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adversary

README.md
[![agentmods](https://agentmods.dev/badge/skills/rune-kit/rune/adversary/github.svg)](https://agentmods.dev/skills/rune-kit/rune/adversary)
Your own site
<a href="https://agentmods.dev/skills/rune-kit/rune/adversary"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/adversary/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adversary

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/adversary"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/adversary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,831 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.05831
Opus 5.5 $0.00028 $0.02332
Sonnet 5.5 $0.00014 $0.01166
Haiku 4.5 $0.00007 $0.00583

Measured 8d ago against content hash 3f5ca8303fa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adversary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/adversary/SKILL.md · 415 lines

How it starts

The opening of the file, as written. The whole thing — 415 lines — stays where its author put it; the contents beside it link to each section on GitHub.

adversary

Purpose

Pre-implementation adversarial analysis. After a plan is approved but BEFORE code is written, adversary stress-tests the plan across 5 dimensions: edge cases, security, scalability, error propagation, and integration risk. It does NOT fix or redesign — it reports weaknesses so the plan can be hardened before implementation begins.

This fills the only gap in the plan-to-ship pipeline: all other quality skills (review, preflight, sentinel) operate AFTER code exists. Catching a flaw in a plan costs minutes; catching it in implementation costs hours.

Triggers

  • Called by cook Phase 2.5 — after plan approved, before Phase 3 (TEST)
  • /rune adversary — manual red-team analysis of any plan or design document
  • Auto-trigger: when plan files are created in .rune/ or docs/plans/

Calls (outbound)

  • sentinel (L2): deep security scan when adversary identifies auth/crypto/payment attack vectors in the plan
  • perf (L2): scalability analysis when adversary identifies potential bottleneck patterns
  • scout (L2): find existing code that might conflict with planned changes
  • docs-seeker (L3): verify framework/API assumptions in the plan are correct and current
  • hallucination-guard (L3): verify that APIs, packages, or patterns referenced in the plan actually exist
  • context-engine (L3): (oracle-mode) emit context.preview before bundle build to gate token cost
  • session-bridge (L3): (oracle-mode) detach protocol when target model is opus-class for non-blocking dispatch
  • council (L3): Step 0.6 — decorrelated multi-perspective critique for CRITICAL-tier plans (one-way-door decisions, auth/payment/crypto/user-data), mode=critique

Read the full file on GitHub · 415 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 415 lines · 69 tokens per session scan A 3f5ca8303fa0

Subscribe to this mod's changes

adversary is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 69 tokens to every session and 5,831 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

adversary compared with skills from other repositories

adversary next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adversaryRune-kit/runeSkill962d agoMITA69Claude Code
tddsentimony/skillsSkill8todayMITA43Claude Code
using-agent-skillsvanja-emichi/a0_agent_skillsSkill63mo agoMITA95Claude Code, Codex
binder-design-tool-selectionzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA91Claude Code, Codex
end-to-end-protein-design-workflowzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA98Claude Code, Codex
agent-orchestratorlingxling/awesome-skills-cnSkill3411mo agoMITA41Claude Code
poc-spec-loopfabiandistler/agentsSkill2todaynoneA55Claude Code, Codex