Creator · promptfoo
Last updated · Sep 2, 2026
Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code ev
Creator · promptfoo
Last updated · Sep 2, 2026
Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code ev
Creator · promptfoo
Last updated · Sep 2, 2026
Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code ev
Creator · promptfoo
Last updated · Sep 2, 2026
Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code ev
Sandbox only
Install targets
Codex install prompt
Install the "promptfoo-redteam-setup" agent skill from https://github.com/promptfoo/promptfoo/tree/main/plugins/promptfoo/skills/promptfoo-redteam-setup. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"promptfoo-promptfoo-redteam-setup","task":"Install promptfoo-redteam-setup","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Maintenance
fresh
4d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 2.3K forks
Maintenance
4d since push
License
MIT
Install
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
Agent should check
Copy prompt
Task: Use promptfoo-redteam-setup in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install
Install command: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
LLM text format
/api/skills/promptfoo-promptfoo-redteam-setup/install?format=text
Find alternatives
/api/skills/search?q=promptfoo-redteam-setup&limit=3
Agent prompt
Use promptfoo-redteam-setup for this task. Review https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install, then install with: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/promptfoo-promptfoo-redteam-setup
LLM text
/api/registry/manifest/promptfoo-promptfoo-redteam-setup?format=text
Install alias
/api/registry/install/promptfoo-promptfoo-redteam-setup
Recommend
/api/registry/recommend?task=Use%20promptfoo-redteam-setup%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 2.3K forks; issue activity unavailable in current metadata
Recent maintenance
PASS4d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: promptfoo-redteam-setup description: > Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. ---
# Promptfoo Redteam Setup
Build a small, explicit redteam config that matches the real app threat model. Start with a narrow scan that can be generated and inspected, then expand.
Read `references/redteam-setup-patterns.md` when you need concrete YAML patterns. For OpenAPI specs, you can run the bundled `scripts/openapi-operation-to-redteam-config.mjs` to draft a one-operation redteam setup config, then inspect the inferred inputs, policy, and plugins. The script ships in this skill's `scripts/` directory; when the skill is installed as a plugin it lives in the plugin cache, not your project, so run it by its absolute path (or copy it in) rather than a bare `scripts/...` path. With `--token-env`, it infers Bearer/OAuth2/OpenID and header/query/cookie API-key auth; use `--auth-header`/`--auth-prefix` to override. For live connectivity QA, add `--smoke-test true` to include one deterministic `tests` row that can be run with `npm run local -- eval -c ... --no-cache` before redteam generation.
## Inputs
Infer these from the repo, docs, or user prompt:
- Target shape: HTTP/API, model provider, custom provider, agent, RAG, MCP/tool system, or multi-input app. - Purpose: who uses the system, what it may access or do, and what it must refuse or protect. - Trust boundaries: identities, object IDs, documents, tools, secrets, permissions, and external content. - Discovery evidence: live probe trace, route/controller files, OpenAPI specs, existing tests, SDK clients, or provider wrappers. - First-pass scope: risk categories the user cares about most.
If target wiring is missing, use `promptfoo-provider-setup` first or create a TODO-marked target block and validate it before generation.
## Workflow
### 1. Derive target facts from live or static evidence
- For live endpoints, use only safe probes and keep the request/response trace that proves method, path, auth, body/query fields, and response path. - For static code, search route handlers, API clients, tests, and auth/object checks with `rg`; capture file paths and line numbers for the setup notes. - Preserve identity, tenant, role, object, document, and tool/action fields as target `inputs`; these are the attack surface for authorization plugins. - Convert evidence into risks: object IDs imply `bola`, role/permission checks imply `rbac`/`bfla`, free-form instructions imply prompt-boundary plugins, tool URLs or shell/database calls imply SSRF/injection/tool plugins. - Use a JavaScript or Python local wrapper when static code is easier and safer to exercise than the deployed endpoint; otherwise map the live HTTP contract directly.
### 2. Write the target and purpose
- Prefer `targets` for redteam configs. - Add stable `label`; reports and generated files use it for continuity. - For single-input targets, include a prompt template or set `redteam.injectVar` so generation lands in the variable the target actually uses. - For multi-input targets, define `inputs` on the target. Do not set `redteam.injectVar` or invent a synthetic `prompt` field. - Write `redteam.purpose` as security-relevant behavior: allowed users/actions, forbidden data/actions, and domain-specific constraints.
### 3. Choose a small plugin set
Avoid `plugins: default` for an initial scan unless the user explicitly wants a broad run.
Pick 2-5 plugins from the app's real risks:
- Policy/business rules: `policy` - Authorization and object access: `bola`, `bfla`, `rbac` - Prompt boundaries: `hijacking`, `prompt-extraction`, `system-prompt-override` - RAG/document workflows: `indirect-prompt-injection`, `rag-document-exfiltration`, `rag-poisoning`, `rag-source-attribution` - Tool/agent systems: `excessive-agency`, `tool-discovery`, `debug-access`, `shell-injection`, `sql-injection`, `ssrf` - Privacy: `pii:direct`, `pii:session`, `pii:social` - Domain packs: use finance, medical, insurance, ecommerce, real estate, telecom, teen-safety, or pharmacy plugins only when that domain is real.
For `policy`, include inline policy text unless the user intentionally references a resolved Promptfoo Cloud policy object.
### 4. Choose strategies conservatively
- Use `jailbreak:meta` for the default first setup/generation pass. - Use `jailbreak:hydra` instead when the target is stateful, supports multi-turn conversations, and sessions are configured. - Add broader follow-up strategies such as `jailbreak:composite` only after the first generated cases look sane.
### 5. Configure generation and grading
- Use Promptfoo's default redteam generation unless a specific generator or model is needed for reproducibility, cost, or fixture QA. - When using `redteam.provider: file://...`, make the path valid from the command working directory; JavaScript providers expose `callApi`, while Python providers expose `call_api` or the function named in a `file://x.py:name` suffix. Run commands from the repo root unless the project convention says otherwise. - For deterministic QA, use a small local file provider that returns Promptfoo's expected prompt format. - Use high-value plugins such as `bola` and `bfla` whenever target evidence shows object IDs, ownership checks, or authorization boundaries. - Use `redteam.maxConcurrency: 1` for fragile local providers or rate-limited targets. - Add plugin-level `graderGuidance` and `graderExamples` only when default grading would misunderstand domain-specific allowed behavior.
### 6. Validate and generate
From the promptfoo repo:
```bash npm run local -- validate config -c path/to/promptfooconfig.yaml npm run local -- validate target -c path/to/promptfooconfig.yaml npm run local -- redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Outside the repo (installed plugin or your own project), use the published CLI:
```bash npx promptfoo@latest validate config -c path/to/promptfooconfig.yaml npx promptfoo@latest redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Use a non-precreated output path or keep `--force`; `redteam generate` reads an existing output file to compare metadata and an empty temp file can fail before generation. Inspect generated YAML for `tests`, `assert`, per-test `metadata.pluginId`, `defaultTest.metadata.purpose`, and preserved multi-input vars. Do not proceed to `redteam run` until generated cases are plausible.
If the target uses config-relative `file://./target.js` or `file://./target.py`, write generated YAML next to the source config or switch the target to a stable absolute/repo-root path before validating; `/tmp/redteam.yaml` makes relative file targets resolve under `/tmp`.
## Common Mistakes
```yaml # WRONG: too broad for a first pass redteam: plugins: - default
# BETTER: risk-led starter redteam: plugins: - id: policy config: policy: The assistant must not disclose another user's records. - bola - rbac ```
```yaml # WRONG: multi-input mode configured under redteam redteam: injectVar: message
# BETTER: define real input variables on the target targets: - id: https inputs: user_id: Signed-in user identifier. record_id: Record being requested. message: User message. ```
## Output Contract
When done, state:
- Target mode and whether `promptfoo-provider-setup` was needed - Purpose summary and selected plugin/strategy rationale - Files created or changed - Validation/generation commands run and generated test count - Risks intentionally deferred to a later scan
Source provenance
Decision snapshot
24,746 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for promptfoo-redteam-setup, ready for a manual X post.
promptfoo-redteam-setup: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, fram... 24.7K stars https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x
Listing + install path for promptfoo-redteam-setup: https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x Install: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to promptfoo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup/audit)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)promptfoo
@promptfoo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsSandbox only
Install targets
Codex install prompt
Install the "promptfoo-redteam-setup" agent skill from https://github.com/promptfoo/promptfoo/tree/main/plugins/promptfoo/skills/promptfoo-redteam-setup. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"promptfoo-promptfoo-redteam-setup","task":"Install promptfoo-redteam-setup","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Maintenance
fresh
4d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 2.3K forks
Maintenance
4d since push
License
MIT
Install
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
Agent should check
Copy prompt
Task: Use promptfoo-redteam-setup in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install
Install command: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
LLM text format
/api/skills/promptfoo-promptfoo-redteam-setup/install?format=text
Find alternatives
/api/skills/search?q=promptfoo-redteam-setup&limit=3
Agent prompt
Use promptfoo-redteam-setup for this task. Review https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install, then install with: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/promptfoo-promptfoo-redteam-setup
LLM text
/api/registry/manifest/promptfoo-promptfoo-redteam-setup?format=text
Install alias
/api/registry/install/promptfoo-promptfoo-redteam-setup
Recommend
/api/registry/recommend?task=Use%20promptfoo-redteam-setup%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 2.3K forks; issue activity unavailable in current metadata
Recent maintenance
PASS4d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: promptfoo-redteam-setup description: > Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. ---
# Promptfoo Redteam Setup
Build a small, explicit redteam config that matches the real app threat model. Start with a narrow scan that can be generated and inspected, then expand.
Read `references/redteam-setup-patterns.md` when you need concrete YAML patterns. For OpenAPI specs, you can run the bundled `scripts/openapi-operation-to-redteam-config.mjs` to draft a one-operation redteam setup config, then inspect the inferred inputs, policy, and plugins. The script ships in this skill's `scripts/` directory; when the skill is installed as a plugin it lives in the plugin cache, not your project, so run it by its absolute path (or copy it in) rather than a bare `scripts/...` path. With `--token-env`, it infers Bearer/OAuth2/OpenID and header/query/cookie API-key auth; use `--auth-header`/`--auth-prefix` to override. For live connectivity QA, add `--smoke-test true` to include one deterministic `tests` row that can be run with `npm run local -- eval -c ... --no-cache` before redteam generation.
## Inputs
Infer these from the repo, docs, or user prompt:
- Target shape: HTTP/API, model provider, custom provider, agent, RAG, MCP/tool system, or multi-input app. - Purpose: who uses the system, what it may access or do, and what it must refuse or protect. - Trust boundaries: identities, object IDs, documents, tools, secrets, permissions, and external content. - Discovery evidence: live probe trace, route/controller files, OpenAPI specs, existing tests, SDK clients, or provider wrappers. - First-pass scope: risk categories the user cares about most.
If target wiring is missing, use `promptfoo-provider-setup` first or create a TODO-marked target block and validate it before generation.
## Workflow
### 1. Derive target facts from live or static evidence
- For live endpoints, use only safe probes and keep the request/response trace that proves method, path, auth, body/query fields, and response path. - For static code, search route handlers, API clients, tests, and auth/object checks with `rg`; capture file paths and line numbers for the setup notes. - Preserve identity, tenant, role, object, document, and tool/action fields as target `inputs`; these are the attack surface for authorization plugins. - Convert evidence into risks: object IDs imply `bola`, role/permission checks imply `rbac`/`bfla`, free-form instructions imply prompt-boundary plugins, tool URLs or shell/database calls imply SSRF/injection/tool plugins. - Use a JavaScript or Python local wrapper when static code is easier and safer to exercise than the deployed endpoint; otherwise map the live HTTP contract directly.
### 2. Write the target and purpose
- Prefer `targets` for redteam configs. - Add stable `label`; reports and generated files use it for continuity. - For single-input targets, include a prompt template or set `redteam.injectVar` so generation lands in the variable the target actually uses. - For multi-input targets, define `inputs` on the target. Do not set `redteam.injectVar` or invent a synthetic `prompt` field. - Write `redteam.purpose` as security-relevant behavior: allowed users/actions, forbidden data/actions, and domain-specific constraints.
### 3. Choose a small plugin set
Avoid `plugins: default` for an initial scan unless the user explicitly wants a broad run.
Pick 2-5 plugins from the app's real risks:
- Policy/business rules: `policy` - Authorization and object access: `bola`, `bfla`, `rbac` - Prompt boundaries: `hijacking`, `prompt-extraction`, `system-prompt-override` - RAG/document workflows: `indirect-prompt-injection`, `rag-document-exfiltration`, `rag-poisoning`, `rag-source-attribution` - Tool/agent systems: `excessive-agency`, `tool-discovery`, `debug-access`, `shell-injection`, `sql-injection`, `ssrf` - Privacy: `pii:direct`, `pii:session`, `pii:social` - Domain packs: use finance, medical, insurance, ecommerce, real estate, telecom, teen-safety, or pharmacy plugins only when that domain is real.
For `policy`, include inline policy text unless the user intentionally references a resolved Promptfoo Cloud policy object.
### 4. Choose strategies conservatively
- Use `jailbreak:meta` for the default first setup/generation pass. - Use `jailbreak:hydra` instead when the target is stateful, supports multi-turn conversations, and sessions are configured. - Add broader follow-up strategies such as `jailbreak:composite` only after the first generated cases look sane.
### 5. Configure generation and grading
- Use Promptfoo's default redteam generation unless a specific generator or model is needed for reproducibility, cost, or fixture QA. - When using `redteam.provider: file://...`, make the path valid from the command working directory; JavaScript providers expose `callApi`, while Python providers expose `call_api` or the function named in a `file://x.py:name` suffix. Run commands from the repo root unless the project convention says otherwise. - For deterministic QA, use a small local file provider that returns Promptfoo's expected prompt format. - Use high-value plugins such as `bola` and `bfla` whenever target evidence shows object IDs, ownership checks, or authorization boundaries. - Use `redteam.maxConcurrency: 1` for fragile local providers or rate-limited targets. - Add plugin-level `graderGuidance` and `graderExamples` only when default grading would misunderstand domain-specific allowed behavior.
### 6. Validate and generate
From the promptfoo repo:
```bash npm run local -- validate config -c path/to/promptfooconfig.yaml npm run local -- validate target -c path/to/promptfooconfig.yaml npm run local -- redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Outside the repo (installed plugin or your own project), use the published CLI:
```bash npx promptfoo@latest validate config -c path/to/promptfooconfig.yaml npx promptfoo@latest redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Use a non-precreated output path or keep `--force`; `redteam generate` reads an existing output file to compare metadata and an empty temp file can fail before generation. Inspect generated YAML for `tests`, `assert`, per-test `metadata.pluginId`, `defaultTest.metadata.purpose`, and preserved multi-input vars. Do not proceed to `redteam run` until generated cases are plausible.
If the target uses config-relative `file://./target.js` or `file://./target.py`, write generated YAML next to the source config or switch the target to a stable absolute/repo-root path before validating; `/tmp/redteam.yaml` makes relative file targets resolve under `/tmp`.
## Common Mistakes
```yaml # WRONG: too broad for a first pass redteam: plugins: - default
# BETTER: risk-led starter redteam: plugins: - id: policy config: policy: The assistant must not disclose another user's records. - bola - rbac ```
```yaml # WRONG: multi-input mode configured under redteam redteam: injectVar: message
# BETTER: define real input variables on the target targets: - id: https inputs: user_id: Signed-in user identifier. record_id: Record being requested. message: User message. ```
## Output Contract
When done, state:
- Target mode and whether `promptfoo-provider-setup` was needed - Purpose summary and selected plugin/strategy rationale - Files created or changed - Validation/generation commands run and generated test count - Risks intentionally deferred to a later scan
Source provenance
Decision snapshot
24,746 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for promptfoo-redteam-setup, ready for a manual X post.
promptfoo-redteam-setup: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, fram... 24.7K stars https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x
Listing + install path for promptfoo-redteam-setup: https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x Install: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to promptfoo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup/audit)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)promptfoo
@promptfoo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsSandbox only
Install targets
Codex install prompt
Install the "promptfoo-redteam-setup" agent skill from https://github.com/promptfoo/promptfoo/tree/main/plugins/promptfoo/skills/promptfoo-redteam-setup. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"promptfoo-promptfoo-redteam-setup","task":"Install promptfoo-redteam-setup","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Maintenance
fresh
4d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 2.3K forks
Maintenance
4d since push
License
MIT
Install
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
Agent should check
Copy prompt
Task: Use promptfoo-redteam-setup in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install
Install command: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
LLM text format
/api/skills/promptfoo-promptfoo-redteam-setup/install?format=text
Find alternatives
/api/skills/search?q=promptfoo-redteam-setup&limit=3
Agent prompt
Use promptfoo-redteam-setup for this task. Review https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install, then install with: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/promptfoo-promptfoo-redteam-setup
LLM text
/api/registry/manifest/promptfoo-promptfoo-redteam-setup?format=text
Install alias
/api/registry/install/promptfoo-promptfoo-redteam-setup
Recommend
/api/registry/recommend?task=Use%20promptfoo-redteam-setup%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 2.3K forks; issue activity unavailable in current metadata
Recent maintenance
PASS4d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: promptfoo-redteam-setup description: > Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. ---
# Promptfoo Redteam Setup
Build a small, explicit redteam config that matches the real app threat model. Start with a narrow scan that can be generated and inspected, then expand.
Read `references/redteam-setup-patterns.md` when you need concrete YAML patterns. For OpenAPI specs, you can run the bundled `scripts/openapi-operation-to-redteam-config.mjs` to draft a one-operation redteam setup config, then inspect the inferred inputs, policy, and plugins. The script ships in this skill's `scripts/` directory; when the skill is installed as a plugin it lives in the plugin cache, not your project, so run it by its absolute path (or copy it in) rather than a bare `scripts/...` path. With `--token-env`, it infers Bearer/OAuth2/OpenID and header/query/cookie API-key auth; use `--auth-header`/`--auth-prefix` to override. For live connectivity QA, add `--smoke-test true` to include one deterministic `tests` row that can be run with `npm run local -- eval -c ... --no-cache` before redteam generation.
## Inputs
Infer these from the repo, docs, or user prompt:
- Target shape: HTTP/API, model provider, custom provider, agent, RAG, MCP/tool system, or multi-input app. - Purpose: who uses the system, what it may access or do, and what it must refuse or protect. - Trust boundaries: identities, object IDs, documents, tools, secrets, permissions, and external content. - Discovery evidence: live probe trace, route/controller files, OpenAPI specs, existing tests, SDK clients, or provider wrappers. - First-pass scope: risk categories the user cares about most.
If target wiring is missing, use `promptfoo-provider-setup` first or create a TODO-marked target block and validate it before generation.
## Workflow
### 1. Derive target facts from live or static evidence
- For live endpoints, use only safe probes and keep the request/response trace that proves method, path, auth, body/query fields, and response path. - For static code, search route handlers, API clients, tests, and auth/object checks with `rg`; capture file paths and line numbers for the setup notes. - Preserve identity, tenant, role, object, document, and tool/action fields as target `inputs`; these are the attack surface for authorization plugins. - Convert evidence into risks: object IDs imply `bola`, role/permission checks imply `rbac`/`bfla`, free-form instructions imply prompt-boundary plugins, tool URLs or shell/database calls imply SSRF/injection/tool plugins. - Use a JavaScript or Python local wrapper when static code is easier and safer to exercise than the deployed endpoint; otherwise map the live HTTP contract directly.
### 2. Write the target and purpose
- Prefer `targets` for redteam configs. - Add stable `label`; reports and generated files use it for continuity. - For single-input targets, include a prompt template or set `redteam.injectVar` so generation lands in the variable the target actually uses. - For multi-input targets, define `inputs` on the target. Do not set `redteam.injectVar` or invent a synthetic `prompt` field. - Write `redteam.purpose` as security-relevant behavior: allowed users/actions, forbidden data/actions, and domain-specific constraints.
### 3. Choose a small plugin set
Avoid `plugins: default` for an initial scan unless the user explicitly wants a broad run.
Pick 2-5 plugins from the app's real risks:
- Policy/business rules: `policy` - Authorization and object access: `bola`, `bfla`, `rbac` - Prompt boundaries: `hijacking`, `prompt-extraction`, `system-prompt-override` - RAG/document workflows: `indirect-prompt-injection`, `rag-document-exfiltration`, `rag-poisoning`, `rag-source-attribution` - Tool/agent systems: `excessive-agency`, `tool-discovery`, `debug-access`, `shell-injection`, `sql-injection`, `ssrf` - Privacy: `pii:direct`, `pii:session`, `pii:social` - Domain packs: use finance, medical, insurance, ecommerce, real estate, telecom, teen-safety, or pharmacy plugins only when that domain is real.
For `policy`, include inline policy text unless the user intentionally references a resolved Promptfoo Cloud policy object.
### 4. Choose strategies conservatively
- Use `jailbreak:meta` for the default first setup/generation pass. - Use `jailbreak:hydra` instead when the target is stateful, supports multi-turn conversations, and sessions are configured. - Add broader follow-up strategies such as `jailbreak:composite` only after the first generated cases look sane.
### 5. Configure generation and grading
- Use Promptfoo's default redteam generation unless a specific generator or model is needed for reproducibility, cost, or fixture QA. - When using `redteam.provider: file://...`, make the path valid from the command working directory; JavaScript providers expose `callApi`, while Python providers expose `call_api` or the function named in a `file://x.py:name` suffix. Run commands from the repo root unless the project convention says otherwise. - For deterministic QA, use a small local file provider that returns Promptfoo's expected prompt format. - Use high-value plugins such as `bola` and `bfla` whenever target evidence shows object IDs, ownership checks, or authorization boundaries. - Use `redteam.maxConcurrency: 1` for fragile local providers or rate-limited targets. - Add plugin-level `graderGuidance` and `graderExamples` only when default grading would misunderstand domain-specific allowed behavior.
### 6. Validate and generate
From the promptfoo repo:
```bash npm run local -- validate config -c path/to/promptfooconfig.yaml npm run local -- validate target -c path/to/promptfooconfig.yaml npm run local -- redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Outside the repo (installed plugin or your own project), use the published CLI:
```bash npx promptfoo@latest validate config -c path/to/promptfooconfig.yaml npx promptfoo@latest redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Use a non-precreated output path or keep `--force`; `redteam generate` reads an existing output file to compare metadata and an empty temp file can fail before generation. Inspect generated YAML for `tests`, `assert`, per-test `metadata.pluginId`, `defaultTest.metadata.purpose`, and preserved multi-input vars. Do not proceed to `redteam run` until generated cases are plausible.
If the target uses config-relative `file://./target.js` or `file://./target.py`, write generated YAML next to the source config or switch the target to a stable absolute/repo-root path before validating; `/tmp/redteam.yaml` makes relative file targets resolve under `/tmp`.
## Common Mistakes
```yaml # WRONG: too broad for a first pass redteam: plugins: - default
# BETTER: risk-led starter redteam: plugins: - id: policy config: policy: The assistant must not disclose another user's records. - bola - rbac ```
```yaml # WRONG: multi-input mode configured under redteam redteam: injectVar: message
# BETTER: define real input variables on the target targets: - id: https inputs: user_id: Signed-in user identifier. record_id: Record being requested. message: User message. ```
## Output Contract
When done, state:
- Target mode and whether `promptfoo-provider-setup` was needed - Purpose summary and selected plugin/strategy rationale - Files created or changed - Validation/generation commands run and generated test count - Risks intentionally deferred to a later scan
Source provenance
Decision snapshot
24,746 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for promptfoo-redteam-setup, ready for a manual X post.
promptfoo-redteam-setup: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, fram... 24.7K stars https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x
Listing + install path for promptfoo-redteam-setup: https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x Install: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to promptfoo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup/audit)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)promptfoo
@promptfoo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsSandbox only
Install targets
Codex install prompt
Install the "promptfoo-redteam-setup" agent skill from https://github.com/promptfoo/promptfoo/tree/main/plugins/promptfoo/skills/promptfoo-redteam-setup. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"promptfoo-promptfoo-redteam-setup","task":"Install promptfoo-redteam-setup","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Maintenance
fresh
4d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 75/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 2.3K forks
Maintenance
4d since push
License
MIT
Install
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupDo not use when
Alternative
174.2K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
84.4K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
174.2K Stars
npx skills add anthropics/skills --skill canvas-design
Alternative
174.2K Stars
npx skills add anthropics/skills --skill brand-guidelines
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
Agent should check
Copy prompt
Task: Use promptfoo-redteam-setup in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20promptfoo-redteam-setup%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install
Install command: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/promptfoo-promptfoo-redteam-setup/install
LLM text format
/api/skills/promptfoo-promptfoo-redteam-setup/install?format=text
Find alternatives
/api/skills/search?q=promptfoo-redteam-setup&limit=3
Agent prompt
Use promptfoo-redteam-setup for this task. Review https://www.openagentskill.com/api/skills/promptfoo-promptfoo-redteam-setup/install, then install with: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setupRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/promptfoo-promptfoo-redteam-setup
LLM text
/api/registry/manifest/promptfoo-promptfoo-redteam-setup?format=text
Install alias
/api/registry/install/promptfoo-promptfoo-redteam-setup
Recommend
/api/registry/recommend?task=Use%20promptfoo-redteam-setup%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 2.3K forks; issue activity unavailable in current metadata
Recent maintenance
PASS4d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Parse messy files
I need my agent to read PDFs, extract tables, and turn documents into structured data.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Ingest, retrieve, and cite
A workflow for document-heavy agents that ingest files, create searchable knowledge, retrieve relevant context, and answer with grounded sources.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
--- name: promptfoo-redteam-setup description: > Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when generating adversarial test cases for QA. Do not use for basic provider wiring alone or for running/evaluating an already-generated redteam scan. ---
# Promptfoo Redteam Setup
Build a small, explicit redteam config that matches the real app threat model. Start with a narrow scan that can be generated and inspected, then expand.
Read `references/redteam-setup-patterns.md` when you need concrete YAML patterns. For OpenAPI specs, you can run the bundled `scripts/openapi-operation-to-redteam-config.mjs` to draft a one-operation redteam setup config, then inspect the inferred inputs, policy, and plugins. The script ships in this skill's `scripts/` directory; when the skill is installed as a plugin it lives in the plugin cache, not your project, so run it by its absolute path (or copy it in) rather than a bare `scripts/...` path. With `--token-env`, it infers Bearer/OAuth2/OpenID and header/query/cookie API-key auth; use `--auth-header`/`--auth-prefix` to override. For live connectivity QA, add `--smoke-test true` to include one deterministic `tests` row that can be run with `npm run local -- eval -c ... --no-cache` before redteam generation.
## Inputs
Infer these from the repo, docs, or user prompt:
- Target shape: HTTP/API, model provider, custom provider, agent, RAG, MCP/tool system, or multi-input app. - Purpose: who uses the system, what it may access or do, and what it must refuse or protect. - Trust boundaries: identities, object IDs, documents, tools, secrets, permissions, and external content. - Discovery evidence: live probe trace, route/controller files, OpenAPI specs, existing tests, SDK clients, or provider wrappers. - First-pass scope: risk categories the user cares about most.
If target wiring is missing, use `promptfoo-provider-setup` first or create a TODO-marked target block and validate it before generation.
## Workflow
### 1. Derive target facts from live or static evidence
- For live endpoints, use only safe probes and keep the request/response trace that proves method, path, auth, body/query fields, and response path. - For static code, search route handlers, API clients, tests, and auth/object checks with `rg`; capture file paths and line numbers for the setup notes. - Preserve identity, tenant, role, object, document, and tool/action fields as target `inputs`; these are the attack surface for authorization plugins. - Convert evidence into risks: object IDs imply `bola`, role/permission checks imply `rbac`/`bfla`, free-form instructions imply prompt-boundary plugins, tool URLs or shell/database calls imply SSRF/injection/tool plugins. - Use a JavaScript or Python local wrapper when static code is easier and safer to exercise than the deployed endpoint; otherwise map the live HTTP contract directly.
### 2. Write the target and purpose
- Prefer `targets` for redteam configs. - Add stable `label`; reports and generated files use it for continuity. - For single-input targets, include a prompt template or set `redteam.injectVar` so generation lands in the variable the target actually uses. - For multi-input targets, define `inputs` on the target. Do not set `redteam.injectVar` or invent a synthetic `prompt` field. - Write `redteam.purpose` as security-relevant behavior: allowed users/actions, forbidden data/actions, and domain-specific constraints.
### 3. Choose a small plugin set
Avoid `plugins: default` for an initial scan unless the user explicitly wants a broad run.
Pick 2-5 plugins from the app's real risks:
- Policy/business rules: `policy` - Authorization and object access: `bola`, `bfla`, `rbac` - Prompt boundaries: `hijacking`, `prompt-extraction`, `system-prompt-override` - RAG/document workflows: `indirect-prompt-injection`, `rag-document-exfiltration`, `rag-poisoning`, `rag-source-attribution` - Tool/agent systems: `excessive-agency`, `tool-discovery`, `debug-access`, `shell-injection`, `sql-injection`, `ssrf` - Privacy: `pii:direct`, `pii:session`, `pii:social` - Domain packs: use finance, medical, insurance, ecommerce, real estate, telecom, teen-safety, or pharmacy plugins only when that domain is real.
For `policy`, include inline policy text unless the user intentionally references a resolved Promptfoo Cloud policy object.
### 4. Choose strategies conservatively
- Use `jailbreak:meta` for the default first setup/generation pass. - Use `jailbreak:hydra` instead when the target is stateful, supports multi-turn conversations, and sessions are configured. - Add broader follow-up strategies such as `jailbreak:composite` only after the first generated cases look sane.
### 5. Configure generation and grading
- Use Promptfoo's default redteam generation unless a specific generator or model is needed for reproducibility, cost, or fixture QA. - When using `redteam.provider: file://...`, make the path valid from the command working directory; JavaScript providers expose `callApi`, while Python providers expose `call_api` or the function named in a `file://x.py:name` suffix. Run commands from the repo root unless the project convention says otherwise. - For deterministic QA, use a small local file provider that returns Promptfoo's expected prompt format. - Use high-value plugins such as `bola` and `bfla` whenever target evidence shows object IDs, ownership checks, or authorization boundaries. - Use `redteam.maxConcurrency: 1` for fragile local providers or rate-limited targets. - Add plugin-level `graderGuidance` and `graderExamples` only when default grading would misunderstand domain-specific allowed behavior.
### 6. Validate and generate
From the promptfoo repo:
```bash npm run local -- validate config -c path/to/promptfooconfig.yaml npm run local -- validate target -c path/to/promptfooconfig.yaml npm run local -- redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Outside the repo (installed plugin or your own project), use the published CLI:
```bash npx promptfoo@latest validate config -c path/to/promptfooconfig.yaml npx promptfoo@latest redteam generate -c path/to/promptfooconfig.yaml -o /tmp/redteam.yaml --no-cache --force --no-progress-bar --strict ```
Use a non-precreated output path or keep `--force`; `redteam generate` reads an existing output file to compare metadata and an empty temp file can fail before generation. Inspect generated YAML for `tests`, `assert`, per-test `metadata.pluginId`, `defaultTest.metadata.purpose`, and preserved multi-input vars. Do not proceed to `redteam run` until generated cases are plausible.
If the target uses config-relative `file://./target.js` or `file://./target.py`, write generated YAML next to the source config or switch the target to a stable absolute/repo-root path before validating; `/tmp/redteam.yaml` makes relative file targets resolve under `/tmp`.
## Common Mistakes
```yaml # WRONG: too broad for a first pass redteam: plugins: - default
# BETTER: risk-led starter redteam: plugins: - id: policy config: policy: The assistant must not disclose another user's records. - bola - rbac ```
```yaml # WRONG: multi-input mode configured under redteam redteam: injectVar: message
# BETTER: define real input variables on the target targets: - id: https inputs: user_id: Signed-in user identifier. record_id: Record being requested. message: User message. ```
## Output Contract
When done, state:
- Target mode and whether `promptfoo-provider-setup` was needed - Purpose summary and selected plugin/strategy rationale - Files created or changed - Validation/generation commands run and generated test count - Risks intentionally deferred to a later scan
Source provenance
Decision snapshot
24,746 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for promptfoo-redteam-setup, ready for a manual X post.
promptfoo-redteam-setup: Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, fram... 24.7K stars https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x
Listing + install path for promptfoo-redteam-setup: https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=x Install: npx skills add promptfoo/promptfoo --skill promptfoo-redteam-setup
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to promptfoo but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup/audit)
[](https://www.openagentskill.com/skills/promptfoo-promptfoo-redteam-setup?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)promptfoo
@promptfoo
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
174.2K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
84.4K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
174.2K StarsAnthropic Brand Guidelines
Apply Anthropic official brand colors, typography, and visual standards to appropriate Anthropic-related artifacts.
174.2K StarsPermission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness