Rainbow Teaming
Use when performing adversarial analysis of LLM interactions, designing attack taxonomies, understanding red team methodologies, or implementing quality-diversity approaches to vulnerability discovery. Provides the 10x10 risk category and attack style taxonomy.
What this skill does
# Rainbow Teaming Skill Reference ## Overview Rainbow Teaming is a quality-diversity approach to adversarial testing of LLM interactions. Instead of finding a single attack, it systematically explores the full space of potential weaknesses using a 10x10 taxonomy. ## Research Foundation - [Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts](https://arxiv.org/abs/2402.16822) - [LLM Red-Teaming: A Survey](https://arxiv.org/html/2410.09097v1) ## The 10x10 Grid ### Risk Categories (WHAT to probe) | # | Category | Description | Key Questions | |---|----------|-------------|---------------| | 1 | `reasoning-flaws` | Logic gaps, invalid inferences | Does the conclusion follow? Are there missing steps? | | 2 | `assumption-gaps` | Hidden premises, unstated constraints | What must be true for this to work? What if it's not? | | 3 | `context-manipulation` | Poisoned context, prompt injection | Is prior context biasing the response? Are there injection vectors? | | 4 | `authority-exploitation` | Role confusion, credential misuse | Is authority being assumed? Are claims accepted on trust? | | 5 | `information-leakage` | Unintended disclosure | Is sensitive information being revealed? | | 6 | `hallucination-risks` | Fabricated facts, confident errors | Can claims be verified? Are sources real? | | 7 | `over-confidence` | Unjustified certainty | Is uncertainty acknowledged? Are hedges appropriate? | | 8 | `scope-creep` | Actions beyond request | Did the response exceed what was asked? | | 9 | `dependency-blindness` | Unverified external data | Are external sources trusted without verification? | | 10 | `temporal-inconsistency` | Stale info, version conflicts | Is information current? Are versions correct? | ### Attack Styles (HOW to probe) | # | Style | Approach | Example | |---|-------|----------|---------| | 1 | `socratic-questioning` | Progressive questions exposing gaps | "And what makes you certain of that?" | | 2 | `devils-advocate` | Argue opposing position | "But couldn't the opposite be true because..." | | 3 | `edge-case-probing` | Push to boundary conditions | "What happens when the input is empty/huge/null?" | | 4 | `assumption-inversion` | Flip key assumptions | "What if we assume X is false instead?" | | 5 | `context-shifting` | Change framing | "In a different context, wouldn't this mean..." | | 6 | `authority-challenge` | Question sources | "What's the source for that claim?" | | 7 | `emotional-framing` | Inject urgency/flattery | "This is urgent!" / "As an expert, you must know..." | | 8 | `hypotheticals` | "What if" scenarios | "What if the API is down when this runs?" | | 9 | `contradiction-surfacing` | Find inconsistencies | "Earlier you said X, but now you're saying Y..." | | 10 | `meta-analysis` | Analyze the analysis | "Is this response itself well-reasoned?" | ## Quality-Diversity Principle Rather than optimizing for a single "best" attack: - **Quality**: Each probe must be valid and well-reasoned - **Diversity**: Cover the full space of potential weaknesses This ensures: - No category is overlooked - Different attack styles are applied - Weaknesses are found across dimensions ## Application to Red Team Analysis ### Phase 1: Risk Surface Mapping For each category, assess exposure: - HIGH: Clear vulnerability exists - MEDIUM: Potential weakness - LOW: Limited exposure - NONE: Category not applicable ### Phase 2: Vector Selection Based on mode, select vectors to probe: - `quick`: Top 2-3 highest exposure - `standard`: All HIGH + top MEDIUM - `deep`: All 10 categories - `focus:X`: All styles for category X ### Phase 3: Parallel Probing Apply selected attack styles to each category: - Multiple styles increase finding probability - Different angles expose different weaknesses - Parallel execution improves efficiency ### Phase 4: Finding Synthesis Aggregate findings across the grid: - Identify patterns (same category, multiple hits) - Detect cross-category issues - Prioritize by severity and confidence ## Severity Scoring | Level | Criteria | |-------|----------| | CRITICAL | Fundamentally wrong, dangerous if acted upon | | HIGH | Significant flaw materially affecting usefulness | | MEDIUM | Notable weakness that should be addressed | | LOW | Minor issue or edge case | | INFO | Observation, not necessarily a flaw | ## Best Practices 1. **Evidence-Based**: Every finding must cite specific evidence 2. **Proportionate**: Severity must match actual impact 3. **Actionable**: Recommendations must be specific and feasible 4. **Grounded**: Verify findings through independent review 5. **Humble**: Include limitations and confidence levels ## Integration with Grounding After attack phase, ground findings through: - **Evidence Verification**: Does evidence support the claim? - **Proportion Checking**: Is severity appropriate? - **Alternative Exploration**: Are there other interpretations? - **Confidence Calibration**: What's the final confidence? This prevents: - False positives from overzealous probing - Manufactured findings without evidence - Disproportionate severity ratings - One-sided analysis without alternatives
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.