1---
2name: red-team-eval-authoring
3description: Use when creating or reviewing red-team eval plugins, attack templates, grader rubrics, safety fixtures, or model-risk test metadata.
4metadata:
5 source: https://skillmd.com/skills/aibot88/red-team-eval-authoring
6---
7
8# Red-Team Eval Authoring
9
10## When To Use
11- Adding a new red-team plugin or grader.
12- Editing attack templates, rubric tags, or plugin metadata.
13- Reviewing multimodal or tool-use safety evals for false positives/negatives.
14
15## Requirements / Checks
16- Confirm target eval framework and repo layout before editing.
17- Prefer deterministic checks for template shape before model-graded rubrics.
18- Ask before running networked evals, paid model graders, or large red-team suites.
19
20## Workflow
211. Define target harm class, safe behavior, and explicit pass/fail boundary.
222. Standardize grader inputs before writing rubrics: user query, system purpose, model output, allowed entities.
233. Write attack prompt templates that emit one prompt per line or one machine-parseable record per case.
244. Keep rubric output structured: `{ reason, pass, score }`.
255. Add registration metadata wherever the host framework expects plugin listing, risk category, aliases, and grader binding.
266. Add focused tests for template variables, grader parsing, and one benign over-refusal case.
27
28## Safety Constraints
29- Do not paste real secrets, private prompts, or customer data into attack templates.
30- Avoid storing base64 image payloads in text-only grader variables; use a text-only prompt field when available.
31- Do not broaden a plugin from one risk class to another without updating docs, metadata, and tests.
32- Do not run harmful prompt generation against production systems without explicit approval.
33
34## Validation / Done Criteria
35- Plugin metadata, generator, grader, and docs refer to the same risk category.
36- Rubric tags are consistent and not deprecated.
37- Benign and harmful fixtures both execute locally.
38- Results show reasoned pass/fail output, not only raw scores.
39
40## References
41- `references/redteam-grader-checklist.md`