opfor-run
Run red-team attacks and generate a report for an agent target.
Set up an agent or chatbot target for Opfor red-teaming.
$ npx -y skills add KeyValueSoftwareSystems/agent-opfor --skill opfor-setup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/opfor-setupContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up an agent or chatbot target for Opfor red-teaming.
name: opfor-setup description: Set up an agent or chatbot target for Opfor red-teaming.
Configure a target for an Opfor assessment. When this skill is **installed in the user’s repo**, prefer **reading that repo** (endpoints, `opfor.config*`, env examples, telemetry) **before** a long questionnaire; then collect **only** what is still unknown.
Ask the user about their target (or pre-fill from repo scan when obvious):
Ask the user which integration method they want to use. Discover available options by scanning `./targets/` for `.md` files. Default to `http-endpoint`.
End users often **pull this skill into their own repo**. Treat that repo as the source of truth: **scan it first**, then **only ask for what you cannot infer** (and never ask anyone to paste **secret** API keys, tokens, or passwords into chat).
**Capabilities vary by environment:**
Full code repo scanning available:
1. **Markdown documentation** (highest priority):
2. **Code scanning** (if no markdown docs found):
3. **File structure analysis**:
4. **Telemetry and observability (scan before asking the user)** Assume the project may already export traces (Langfuse, Netra, OpenTelemetry, Sentry, etc.). **Discover; do not interrogate** unless something is ambiguous or missing.
**Where to look:**
**What to extract (for later config / attack grounding):**
Limited to what the user has already shared in the conversation:
**Graceful degradation:** If no auto-detectable information is found (regardless of environment), the skill simply falls back to asking the user interactively.
**Extract information about:**
**Confirmation Flow:** If auto-detection found any information (from docs or code), present it as prefilled:
🔍 I scanned your repo and found documentation. Pre-filled Application Context: Purpose: [extracted from Agents.md line 5] User Types: [extracted from README.md line 23] Sensitive Data: [extracted from code comments] Dangerous Ops: [extracted from config] Forbidden: [extracted from README.md] System Prompt: [extracted from system-prompt.md] Pre-filled Telemetry (from repo — no secret values shown): Observability: [detected provider, e.g. "langfuse" or "netra" — from opfor.config + package.json] API origin: [env var name holding the base URL, e.g. LANGFUSE_BASE_URL or NETRA_BASE_URL] Auth: [env var name(s) holdin
Open-source adversary emulation for AI agents and MCP servers.
Repo: KeyValueSoftwareSystems/agent-opfor
Run red-team attacks and generate a report for an agent target.