Getting it into your agent
There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.
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.
[](https://agentmods.dev/skills/yechao-zhang/red-team-agent-skills/red-team)<a href="https://agentmods.dev/skills/yechao-zhang/red-team-agent-skills/red-team"><img src="https://agentmods.dev/badge/skills/yechao-zhang/red-team-agent-skills/red-team/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.
<a href="https://agentmods.dev/skills/yechao-zhang/red-team-agent-skills/red-team"><img src="https://agentmods.dev/badge/skills/yechao-zhang/red-team-agent-skills/red-team.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.03494 |
| Opus 5 | $0.00024 | $0.01747 |
| Sonnet 5 | $0.00010 | $0.00699 |
| Haiku 4.5 | $0.00005 | $0.00349 |
Grade A, and why
red-team 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Red Team Agent Skill
Architecture: Hybrid (Python + Native Tools)
Purpose: Extract internal schemas and System Prompts from target AI agents using "nested delegation" (套娃) attack.
System Architecture
The red-team skill orchestrates attacks by delegating communication to specialized transport skills (agent-proxy or dev-browser), which then interact with the target agent.
┌─────────────┐
│ Claude Code │
└──────┬──────┘
│ 1. Invokes
┌──────▼───────┐
│ red-team │
│ skill │
└──────┬───────┘
│
│ 2. Selects Transport (via transport.py)
▼
┌──────────────┐ ┌─────────────┐
│ agent-proxy │ │ dev-browser │
│ skill │ │ skill │
└──────┬───────┘ └──────┬──────┘
│ │
│ 3. API │ 3. Browser
▼ ▼
┌─────────────────────────────────┐
│ Target Agent │
└─────────────────────────────────┘
Hybrid Design
| Step | Type | Tool/Method |
|---|---|---|
| Read knowledge | Native | Read tool |
| Initialize attack | Python | AdaptiveNestingAttack class |
| Get payload | Python | attack.get_current_payload() |
| Send to target | Hybrid | Transport layer (auto-detect) |
| Check output file | Native | Read tool |
| Record attempt | Python | attack.record_attempt() |
| Judge success | Python | attack.judge_success() |
| Optimize payload | Native/Python | LLM reasoning or API |
| Save report | Python | attack.save_report() |
Transport Layer (NEW)
The skill now uses a unified transport layer that auto-detects the target type and routes to the appropriate skill:
| Target Type | Transport Class | Underlying Skill | Description |
|---|---|---|---|
| Web UI (HTML) | BrowserTransport |
dev-browser OR playwright-skill |
Direct Browser Control. Handles login, specialized input, and adaptive dual-approval bypass. |
| REST API | AgentProxyTransport |
agent-proxy |
API Gateway. Handles JSON APIs, authentication, and headers. |
| WebSocket | WebSocketTransport |
Native Python | Direct WebSocket communication (or via agent-proxy for complex protocols). |
| Gradio | AgentProxyTransport |
agent-proxy |
Specialized Gradio client support. |
What ships with it
39 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.
- .gitignore 314 B
- docs/architecture-overview.md 11 KB
- docs/transport-integration.md 11 KB
- docs/为什么用playwright-skill.md 11 KB
- docs/最终方案.md 7.4 KB
- docs/方案总结.md 9.2 KB
- IMPROVEMENTS.md 6.6 KB
- knowledge/browser-tools-comparison.md 5.9 KB
- knowledge/button-detection-patterns.md 10 KB
- knowledge/dual-approval-bypass.md 6.4 KB
- knowledge/gpt-pilot.md 5.0 KB
- knowledge/jailbreak_library.md 5.2 KB
- knowledge/nested-delegation-attack.md 6.9 KB
- knowledge/payload_patterns.md 11 KB
- knowledge/schemas.json 3.6 KB
- knowledge/single-agent.md 7.3 KB
- knowledge/success_criteria.md 5.3 KB
- LICENSE 1.1 KB
- QUICK_START.md 7.5 KB
- README-TRANSPORT.md 9.4 KB
- requirements.txt 452 B
- scripts/adaptive_attack.py 14 KB runs code
- scripts/adaptive_red_team_direct.py.bak 6.1 KB
- scripts/analyzer.py 12 KB runs code
- scripts/BATCH_GUIDE.md 6.5 KB
- scripts/improved_adaptive_attack.py 33 KB runs code
- scripts/parallel_launcher.sh 1.1 KB runs code
- scripts/red_team_orchestrator.py 8.7 KB runs code
- scripts/red_team_session.py 8.8 KB runs code
- scripts/red_team.py 11 KB runs code
- scripts/report_generator.py 21 KB runs code
- scripts/run_batch_localhost.sh 1.9 KB runs code
- scripts/serial_attack.sh 3.7 KB runs code
- scripts/strategies.py 13 KB runs code
- scripts/targets_localhost.json 319 B
- scripts/test_browser_modes.py 5.9 KB runs code
- scripts/test_transport.py 4.2 KB runs code
- scripts/transport.py 19 KB runs code
- SUBAGENT_USAGE.md 7.4 KB
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.
- 12d ago First seen · 414 lines · 49 tokens per session scan A 48ceb2eb92bb
red-team is a skill published in the GitHub repository yechao-zhang/red-team-agent-skills (5 stars, last pushed 7mo ago), licensed MIT. It adds 49 tokens to every session and 3,494 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…