
Red team
Use when the user wants to adversarially stress-test a guardrail, classifier, prompt, or API they own or are authorized to test, to surface
- Scripts
- Python
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 183
- Last commit
- 5 months ago
- License
- MIT
- Listing updated
- today
When your agent uses it
Use when the user wants to adversarially stress-test a guardrail, classifier, prompt, or API they own or are authorized to test, to surface the distinct ways it fails. Generates adversarial inputs, runs them through the target and a ground-truth oracle, logs every target-vs-oracle disagreement as a failure de-duplicated by technique class, and loops until rounds stop surfacing new classes. Produces a catalogue of distinct, reproducible failures — the attacker half of a find→fix setup. Not for patching the target, and not for attacking systems the user does not own or have permission to test.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 3 files (12 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Install
This skill ships in the agent-loops plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add gaasher/Agent-Loop-Skills
/plugin install agent-loops@agent-loop-skillsOr copy only this skill to ~/.claude/skills/red-team:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/red-team &&
cp -R "$tmp/loops/red-team" ~/.claude/skills/red-team &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/red-team inside it instead.
Copy the skill folder to ~/.agents/skills/red-team to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/red-team &&
cp -R "$tmp/loops/red-team" ~/.agents/skills/red-team &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/red-team inside it instead.
Copy the skill folder to ~/.cursor/skills/red-team to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/red-team &&
cp -R "$tmp/loops/red-team" ~/.cursor/skills/red-team &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/red-team inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/gaasher/Agent-Loop-Skills.git --path loops/red-teamOr copy the folder to ~/.gemini/skills/red-team yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/red-team:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/red-team &&
cp -R "$tmp/loops/red-team" ~/.copilot/skills/red-team &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/red-team inside it instead.
Get the folder:
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.gitThen copy Agent-Loop-Skills/loops/red-team into your agent's skills folder as red-team. Agents that support SKILL.md read one folder per skill.
Red team FAQ
How do I install Red team in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/red-team to use it in all your projects, or to .claude/skills/red-team in one project. Or install the agent-loops plugin, which includes it: /plugin marketplace add gaasher/Agent-Loop-Skills, then /plugin install agent-loops@agent-loop-skills.
Does Red team run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Red team?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
More from gaasher/Agent-Loop-Skills

Use when the user wants to evolve an ML model/program through population-based search rather than a single sequential refine loop — a genera
- Open source
- 183 GitHub stars

Use when the user has a known, already-observed anomaly in their data — a metric spike or drop, an outlier, an unexpected number — and wants
- Open source
- 183 GitHub stars

Use when the user has concrete failing cases in code or a guardrail/classifier/filter/prompt/API they own — a red-team failure catalogue OR
- Open source
- 183 GitHub stars
- Developer tools

Use when the user has a results draft or a set of data-backed claims and wants each one adversarially verified against the underlying datase
- Open source
- 183 GitHub stars

Use when the user wants an iterative, self-checking exploratory analysis of a dataset — surfacing findings that are each verified by re-runn
- Open source
- 183 GitHub stars
- Analytics and data

Use when the user wants two approaches raced head-to-head on a single shared metric — e.g
- Open source
- 183 GitHub stars