red-team
/jig:red-teamTyped in Claude Code. In Codex, ask for the jig:red-team skill by name.
Reviews a requirements or architecture document adversarially: personas (a critical chief technology officer, a security auditor, a performance engineer, a cost optimizer and, for requirements, more who stand for the people who use and approve it) each read it in fresh context, and one report gives each persona’s verdict and every finding with the passage, the risk and the question the author must answer; never edits the document
Works with · Understand, decide and record Questions the document from the standpoint of the people it affects, before any plan or code, where review checks the same document against the repository’s standards and decisions: run both, since one does not replace the other; a dilemma a finding raises goes to decide, and the revised document gets a descar pass before it is accepted
What problem this solves. A requirements or architecture document is usually reviewed by the people who wrote it, or by an agent that helped write it, and both defend what is already there. The gaps surface later, in a pull request or in production, where they cost the most to fix. Without a deliberate adversarial pass, nobody reads the document as a security auditor, as the person paying the bill, or as a user who knows no engineering terms, and the questions those readers would ask stay unasked.
/jig:red-team <document> runs a red-team review of
one requirements document (PRD) or architecture
document: several review personas each read it in
fresh context, from one point of view, and report what is wrong, missing or
unclear. The result is one report with a verdict per persona and, for every
finding, the passage it concerns, the risk and the question the author must
answer. It never edits the document.
It is the runnable form of the per-stage adversarial review in M6, for the requirements and architecture stages. The agent’s procedure is in SKILL.md.
The personas
| Persona | Reads | Stands for |
|---|---|---|
| Critical chief technology officer | requirements and architecture | whoever answers for whether this should be built, and built this way |
| Security auditor | requirements and architecture | whoever is accountable when data leaks or an account is taken over |
| Performance engineer | requirements and architecture | whoever is woken when it is slow or falls over |
| Cost optimizer | requirements and architecture | whoever pays the bill, in money and people’s time |
| Plain-language reader | requirements | the sponsors, customers and support staff who know no engineering terms |
| Scope cutter | requirements | whoever wants the outcome in users’ hands soonest, in the smallest release that delivers it |
| Acceptance tester | requirements | whoever must prove each outcome is done |
| Day-in-the-life walker | requirements | the user, walking a real day with the product, naming the moments the document leaves out |
What each one looks for and what its findings must carry is in references/personas.md, which is also what each persona is handed. Change the personas there.
How it runs
- Plan. The plan step reads the document’s kind from its
frontmatter
type:or from M6’s template headings (--kindoverrides), picks the personas and writes a brief for each. - Read, in fresh context. Each persona runs as a subagent where the
agent tool has them; otherwise as a fresh, non-interactive run of the
agent command (
claude -p,codex exec), which the script’s fresh step starts; otherwise in the same session, one at a time, and the report says those personas did not run in fresh context. The collect step checks each persona’s findings, including that every quoted passage is in the document word for word. - Report. The report step writes the one report.
The steps refuse to go on when the document, or its companion, changes during the review.
Where the report goes
Into .context/red-team/<document>-<hash>/report.md, scratch that git ignores
where .context/ is ignored (--out names another folder). The findings
are review history: under M6 and
M4, an accepted document
carries the answers, not the critique, so the report is not committed beside
it. Attach it to the pull request or issue that carries the document; the
document’s stage-review record (its reviewed: key) then links there. The
report’s last section gives that line.
Configuration
None: nothing to set in .config/jig.yaml.
Works with
Source: plugin/skills/red-team/README.mdThe agent's contract (SKILL.md)