adversarial-roleplay

adversarial-roleplay is a skill for Claude Code, Codex from yogsoth-ai/stress-test. It costs 29 tokens per session (494 once invoked), scanned A, a copy of adversarial-roleplay, Apache-2.0.

A security testing method that creates different hostile attacker profiles and uses them to look for ways an artifact can be attacked. The findings are combined and linked to the persona that found each attack path.

In plain words
What is it for?
Use it to run budget-limited red-team campaigns against a system, design, argument, or other artifact. It helps generate attack ideas, execute probes, and group findings across attacker profiles.
Why use it?
Testing from several attacker viewpoints can reveal weaknesses that one reviewer might miss. Repeated findings from different personas can indicate a more credible vulnerability.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to run budget-limited red-team campaigns against a system, design, argument, or other artifact. It helps generate attack ideas, execute probes, and group findings across attacker profiles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yogsoth-ai/stress-test/adversarial-roleplay
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 yogsoth-ai/stress-test --skill adversarial-roleplay
Clone the repo
git clone --depth 1 https://github.com/yogsoth-ai/stress-test

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 adversarial-roleplay

README.md
[![agentmods](https://agentmods.dev/badge/skills/yogsoth-ai/stress-test/adversarial-roleplay/github.svg)](https://agentmods.dev/skills/yogsoth-ai/stress-test/adversarial-roleplay)
Your own site
<a href="https://agentmods.dev/skills/yogsoth-ai/stress-test/adversarial-roleplay"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/stress-test/adversarial-roleplay/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 adversarial-roleplay

Your own site · 80×15
<a href="https://agentmods.dev/skills/yogsoth-ai/stress-test/adversarial-roleplay"><img src="https://agentmods.dev/badge/skills/yogsoth-ai/stress-test/adversarial-roleplay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 494 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 100% copy Near-identical to another mod 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.00029 $0.00494
Opus 5 $0.00015 $0.00247
Sonnet 5 $0.00006 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 9d ago against content hash 8476dc8ea602, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

adversarial-roleplay 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 9d 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.

Origin

This is a copy

100% identical to adversarial-roleplay — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/adversarial-roleplay/SKILL.md · 63 lines

How it starts

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

Adversarial Roleplay Tactic

Deploy constructed hostile personas to attack the artifact from distinct motivational frames.

Orchestration

  1. persona-construction builds detailed adversary profile:
    • Background and expertise domain
    • Motivation for attacking (career incentive, resource competition, ideological)
    • Known blind spots and biases of this persona type
    • Preferred attack patterns
  2. attack-vector-generation generates vectors specific to persona's expertise and motivation
  3. probe-execution executes attacks while maintaining persona consistency
  4. Successful attack paths recorded with persona attribution
  5. Process repeats for each persona (budget-limited)
  6. finding-aggregation cross-references findings across personas for convergent vulnerabilities

Subagents Dispatched

  • persona-construction (1 call per persona)
  • attack-vector-generation (1 call per persona)
  • probe-execution (N calls per persona, budget-limited)
  • finding-aggregation (1 call at end, cross-persona)

Termination Conditions

  • All budgeted personas deployed and exhausted
  • Convergent vulnerability found by 2+ personas (high-confidence finding)
  • Single persona finds critical vulnerability (early report)
  • Budget exhausted (report per-persona findings separately)

Available SOPs

Optional, no fixed order; the final leaf is always a sop.

SOP When to use
attack-vector-generation Generate specific attack strategies for a given threat surface, producing concrete probes that can be executed.
finding-aggregation Aggregate, deduplicate, and classify findings from multiple probes into a coherent vulnerability report.
persona-construction Build a detailed adversarial persona with background, motivation, expertise, blind spots, and preferred attack patterns.
probe-execution Execute a single attack probe against an artifact, record the result with evidence and severity classification.

Read the full file on GitHub · 63 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. 9d ago First seen · 63 lines · 29 tokens per session scan A 8476dc8ea602

Subscribe to this mod's changes

adversarial-roleplay is a skill published in the GitHub repository yogsoth-ai/stress-test (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 29 tokens to every session and 494 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to adversarial-roleplay, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories