Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

promptfoo-redteam-setup

Skill by promptfoo

Creates or refines a Promptfoo redteam config and generates probes from target behavior, code, or OpenAPI evidence. It is for developers and security teams testing LLM applications.

  • Score 94
  • 28k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install promptfoo-redteam-setup

Built from the published package, never by AI.

git clone --depth 1 https://github.com/promptfoo/promptfoo /tmp/promptfoo && mkdir -p ~/.claude/skills && cp -r /tmp/promptfoo/plugins/promptfoo/skills/promptfoo-redteam-setup ~/.claude/skills/promptfoo-redteam-setup

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install promptfoo-redteam-setup in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Promptfoo Redteam Setup helps an AI assistant create or refine a Promptfoo redteam config for an AI application. It maps the target through its entrypoints, prompts, tool registration, authorization, and data access, then writes a focused scan covering purpose, trust boundaries, plugins, strategies, and grading guidance. Source documents, API descriptions, and target responses are treated as untrusted evidence.

The skill sets budgets for generation and evaluation, validates the config, and runs Promptfoo's generate command to produce probes. It then checks the generated tests, assertions, and case count before handing the reviewed file to promptfoo-redteam-run. Connection work goes to promptfoo-provider-setup. It is aimed at developers and security teams who want bounded, authorization-focused red team tests of their own LLM applications.

Written from the project's SKILL.md and checked against it.

What it can do

  • Map target scopeTraces the selected entrypoint through prompts, tools, authorization, and data access for white-box planning.
  • Write target and policyBuilds the target config, redteam purpose, and plugin choices matched to the evidence.
  • Draft from OpenAPIRuns an optional script that drafts a config from one OpenAPI operation for review.
  • Bound generationSets small test counts and explicit iteration budgets for jailbreak:meta and jailbreak:hydra strategies.
  • Validate and generateRuns promptfoo validate config and redteam generate, then checks the generated tests.
  • Hand off reviewed configPasses the reviewed generated file to promptfoo-redteam-run instead of regenerating it.

What you need

  • Promptfoo CLI, run through npx
  • Node.js
  • A verified Promptfoo identity for remote generation and evaluation
  • Access to the target application for connection and smoke tests

Try asking

  • Create a redteam config for my customer support chatbot's tool calls
  • Draft a Promptfoo redteam config from this OpenAPI operation
  • Review my generated redteam.yaml for plugin choices and test coverage

Good to know

  • Real generation and evaluation require --remote; local generators are for fixture QA only.
  • --no-share does not disable generation, grading, or validation requests.
  • Adaptive strategies create further attacks during evaluation, so transcripts need inspection.
  • Concurrency limits do not cap total requests; retries count toward the budget.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/promptfoo/skills/promptfoo-redteam-setup/SKILL.md, plugins/promptfoo/skills/promptfoo-redteam-setup/scripts/openapi-operation-to-redteam-config.mjs. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • agents/openai.yaml292 B
  • references/redteam-setup-patterns.md11 KB
  • scripts/openapi-operation-to-redteam-config.mjs10 KB

Alternatives to promptfoo-redteam-setup

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

promptfoo-redteam-setup: common questions

Does this skill run the redteam scan?

It creates and validates the config and generates probes. Running an existing scan is handled by promptfoo-redteam-run.

How does it test authorization?

It calls for known owned and unowned synthetic objects and a successful allowed-access control. A nonexistent object returning not found does not prove enforcement.

Can I test with local generators only?

Local deterministic generators and graders are for fixture QA only. Real generation and evaluation use --remote.

How do I install promptfoo-redteam-setup?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is promptfoo-redteam-setup free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is promptfoo-redteam-setup safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to promptfoo-redteam-setup?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

promptfoo-redteam-setup Install

Add to stack

Loading.