red-team

red-team is a skill for Claude Code, Codex from telus-labs/stagecraft. It costs 117 tokens per session (2,565 once invoked), scanned A, original, MIT.

A structured review that tries to make newly built code fail through hostile users, unusual inputs, corner cases, and difficult environments.

In plain words
What is it for?
Use it after building a change to create reproducible failure cases and identify issues that need fixing before peer review.
Why use it?
It finds concrete ways a change could break that an ordinary code review may miss, and ranks the findings by severity.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it after building a change to create reproducible failure cases and identify issues that need fixing before peer review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/telus-labs/stagecraft/red-team
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 telus-labs/stagecraft --skill red-team
Clone the repo
git clone --depth 1 https://github.com/telus-labs/stagecraft

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 red-team

README.md
[![agentmods](https://agentmods.dev/badge/skills/telus-labs/stagecraft/red-team.svg)](https://agentmods.dev/skills/telus-labs/stagecraft/red-team)
Your own site
<a href="https://agentmods.dev/skills/telus-labs/stagecraft/red-team"><img src="https://agentmods.dev/badge/skills/telus-labs/stagecraft/red-team.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,565 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00117 $0.02565
Opus 5 $0.00059 $0.01282
Sonnet 5 $0.00023 $0.00513
Haiku 4.5 $0.00012 $0.00257

Measured 8d ago against content hash 1ed03abb9bba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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 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/red-team/SKILL.md · 197 lines

How it starts

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

Red Team a Change

A structured adversarial review that runs between build (Stage 4) and peer review (Stage 5). The reviewer in Stage 5 looks for what the code is doing wrong; the red team looks for what an adversary, a hostile user, a corner-case input, or a hostile environment can do to make the code fail.

When to use this

  • Orchestrator invokes the red-team role for stage-04c (this is the normal path).
  • User explicitly asks for an adversarial review of a change ("red team this", "find what could break").

When not to use this:

  • Security-specific concerns (auth, crypto, PII, secrets) — that's the security-engineer role at stage-04b.
  • Code style, conventions, correctness review — that's the reviewer role at stage-05.
  • Test coverage gaps — that's QA at stage-06.

Phase 1 — Load context

Read in this order:

  1. pipeline/brief.md — what was promised.
  2. pipeline/design-spec.md — how it was designed (including §Open Technical Questions and §Risk notes — those are red-team gold).
  3. pipeline/pr-backend.md, pipeline/pr-frontend.md, pipeline/pr-platform.md, pipeline/pr-qa.md — what was actually built.
  4. pipeline/pre-review.md (Stage 4a) — what's already been caught by lint / typecheck / dep audit.
  5. pipeline/security-review.md (Stage 4b, if present) — what security has already flagged. Do not re-find what they found.
  6. src/** — the code itself. Read the changed paths fully.

The point is to come in with full context. A red-team finding that the brief explicitly declared out-of-scope is wasted; flag it under noted_for_followup, not must-fix.

Phase 2 — Walk the attack surfaces

For each surface below, generate 2–5 concrete scenarios. Skip surfaces that don't apply (e.g. no input boundary for a pure config change). For each scenario produce: the exact input/state/sequence that reproduces it + the resulting failure.

2.1 — Input boundaries

For every external input (HTTP body, query param, file upload, env var, stdin, message-queue payload):

  • Empty / null / missing / type-wrong / length-overflow
  • Unicode edge cases: surrogate pairs, RTL marks, NULL bytes, BOM, normalization forms
  • Injection vectors: SQL fragments, shell metacharacters, path traversal (../), template engine syntax, XSS, SSRF urls
  • Numeric edges: 0, -1, MAX_INT, MIN_INT, Infinity, NaN, floating-point precision drift
  • Date edges: epoch, far-future, DST boundaries, leap seconds, locale-specific format ambiguity

Read the full file on GitHub · 197 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. 8d ago First seen · 197 lines · 117 tokens per session scan A 1ed03abb9bba

Subscribe to this mod's changes

red-team is a skill published in the GitHub repository telus-labs/stagecraft (6 stars, last pushed 2d ago), licensed MIT. It adds 117 tokens to every session and 2,565 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

semantix-guide

Troubleshoot and configure Semantix capabilities: Skills (project/custom/global/builtin priority, discovery dirs), Commands (override order, /dir:file naming), Hooks (11 events, automatic project loading, matchers, timeouts), MCP (semantix-agent.toml + .mcp.json + plugin packages, autostart), plugin packages…

Gnosil/semantix · 115 tokens

semantix

Install and use the semantix memory kernel as a middleware in your agent: extract user preferences / workflows / experience from past sessions, retrieve and inject them on demand. One binary + your agent's own tools.

Gnosil/semantix · 47 tokens

intuitive-tests

Use this skill whenever the user asks about unit test best practices, test organization, flat test suites, redundant tests, test refactors, pytest/JUnit/Jest/xUnit layout, test taxonomy, flaky tests, coverage quality, fixtures, mocks, parametrization, pruning existing UTs, or "which tests are worth keeping." It…

MiaoDX/intuitive-flow · 154 tokens

intuitive-flow

Stable execution/change router after an approved plan, preflight contract, or tiny concrete task. Refactor-shaped work delegates to intuitive-refactor, and durable work runs through staged planning, review, GSD handoff, implementation, cleanup, and verification while keeping plan ledgers and active capsules compact by…

MiaoDX/intuitive-flow · 98 tokens

intuitive-preflight

Turn a vague task, plan, issue, or "LGTM/go ahead" request into an approval-ready preflight contract before implementation starts. Use when the user wants prompt preflight, clearer scope, non-goals, context package, acceptance criteria, definition of done, verification, stop gates, the exact execution command, or…

MiaoDX/intuitive-flow · 112 tokens

intuitive-squash

Squash local GSD or agent-generated commit history into a clean, reviewable story while preserving important fixes. Use when the user asks to squash commits, clean git history, compress phase commits, prepare a branch before PR, compare aggressive vs moderate squash options, or preserve hotfix/security commits during…

MiaoDX/intuitive-flow · 73 tokens