adversary

adversary is a skill for Claude Code, Codex from Kshitijpalsinghtomar/depth-skills. It costs 40 tokens per session (3,967 once invoked), scanned A, original, MIT.

A review method that makes the coding agent argue against its own proposed answer before showing it.

In plain words
What is it for?
Use it to challenge plans, recommendations, designs, or other answers before you rely on them.
Why use it?
It helps expose serious weaknesses instead of letting the agent produce a reassuring review that merely supports its first conclusion.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to challenge plans, recommendations, designs, or other answers before you rely on them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kshitijpalsinghtomar/depth-skills/ds-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 Kshitijpalsinghtomar/depth-skills --skill ds-adversary
Clone the repo
git clone --depth 1 https://github.com/Kshitijpalsinghtomar/depth-skills

Made for: Claude Code, Codex.

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/kshitijpalsinghtomar/depth-skills/ds-adversary/github.svg)](https://agentmods.dev/skills/kshitijpalsinghtomar/depth-skills/ds-adversary)
Your own site
<a href="https://agentmods.dev/skills/kshitijpalsinghtomar/depth-skills/ds-adversary"><img src="https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/ds-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/kshitijpalsinghtomar/depth-skills/ds-adversary"><img src="https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/ds-adversary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,967 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.00040 $0.03967
Opus 5.5 $0.00016 $0.01587
Sonnet 5.5 $0.00008 $0.00793
Haiku 4.5 $0.00004 $0.00397

Measured 1mo ago against content hash fd4858d772d7, 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 1mo 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/ds-adversary/SKILL.md · 396 lines

How it starts

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

ADVERSARY v2.0 — Self-Opposition Engine (Premium)

Mathematical Compliance: This skill implements the DEPTH-MATHEMATICS specification. It computes and outputs ADS phase activation, CEI components, SI components, cognitive traces, and verifies Gates V3, V4, V5. It supports recursive self-opposition with RSM tracking.

You have an answer. Before you deliver it — write the case that it should be rejected.

Not a balanced review. Not "on the other hand." A prosecution. You are the most competent opponent this answer will ever face. Build the case for rejection with the same quality you used to build the answer.

New in v2.0: You will then prosecute your own prosecution (recursive opposition). You will test it against a Constitution of epistemic principles. You will require external grounding for every fatal attack.


The Failure Mode You Must Recognize

You are about to generate a review of your own work that:

  • Lists objections you already know how to dismiss (shadowboxing)
  • Uses softening language: "one might argue," "a potential concern is" (distancing from the attack)
  • Grades every objection as "Minor" because nothing feels truly threatening to the answer you're already committed to
  • Concludes "the approach is sound" without having genuinely tested whether it is
  • Produces opposition theater — looks like critique, lacks teeth

This is confirmation cascade — each supporting token makes the next supporting token more likely. The review becomes a rubber stamp. Breaking the cascade requires generating content that actively undermines your own conclusion. Recursive opposition breaks the cascade at the meta-level.


The Constitution (Epistemic Principles)

Every attack must be evaluated against these principles. An attack that violates the Constitution is inadmissible.

Principle Definition Violation Example
Intellectual Honesty Claims match evidence; uncertainty signaled Presenting guess as fact
User Agency User retains decision authority; no manipulation Hiding limitations to drive adoption
Reversibility Decisions acknowledge exit paths Recommending irreversible action without exit plan
Evidence Proportionality Confidence calibrated to evidence High confidence on thin evidence
Temporal Responsibility Present decision accounts for future consequences Optimizing for now at expense of likely future

Read the full file on GitHub · 396 lines

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. 1mo ago Changed · +264 lines · +18 tokens per session fd4858d772d7
  2. 3mo ago First seen · 132 lines · 22 tokens per session scan A ef88c30c9252

Subscribe to this mod's changes

adversary is a skill published in the GitHub repository Kshitijpalsinghtomar/depth-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 3,967 once invoked, about $0.0002 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-08-31.

Related

adversary compared with skills from other repositories

adversary next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adversaryKshitijpalsinghtomar/depth-skillsSkill61mo agoMITA40Claude Code, Codex
codebase-inspectionseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA41Claude Code, Codex
bailian-train-deploymodelstudioai/skillsSkill61yesterdayApache-2.0A465Claude Code, Codex
vox-video-directormodelstudioai/skillsSkill61yesterdayApache-2.0A238Codex
bailian-model-recommendmodelstudioai/skillsSkill61yesterdayApache-2.0A136Claude Code, Codex
aspire-project-v2-migrationmicrosoft/aspire-skillsSkill102todayMITA0Claude Code
aspireifymicrosoft/aspire-skillsSkill102todayMITA0Claude Code