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-run

Skill by promptfoo

Runs, inspects, and reruns an existing Promptfoo redteam scan. It is for developers and security teams who need to check attack success rates, grader errors, and CI gates against an LLM target.

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

Install promptfoo-redteam-run

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-run ~/.claude/skills/promptfoo-redteam-run

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

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

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

About

This skill runs an existing Promptfoo redteam scan from a generated YAML config and exports the results to JSON. It starts with preflight checks on the config, tests, target environment, and data destinations, then runs the eval with options such as --no-cache, --no-share, and --remote. It also covers filtered reruns of failing, error-only, or metadata-matched probes.

The assistant reads the JSON artifact rather than relying only on the exit status. It validates result counts, computes attack success rate from validly graded results, and reports grader and target errors separately. The skill also covers tool-using apps, CI threshold checks, and the interactive report. It is for developers and security teams who already have a scan plan.

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

What it can do

  • Validate configChecks a generated redteam YAML config before running it.
  • Run redteam evalRuns an existing generated redteam file and exports results to JSON.
  • Inspect resultsReads failing and error rows, grading results, plugin IDs, and strategy IDs.
  • Compute attack success rateCalculates the rate from validly graded results and reports errors separately.
  • Filtered rerunsReruns failing probes, error-only probes, or probes matched by metadata.
  • CI gatingChecks artifact coverage and applies risk-based thresholds for CI.
  • Tool-call reviewChecks actual tool calls and persisted state in tool-using apps.
  • Interactive reportStarts or reuses a local server for the Promptfoo report UI.

What you need

  • Node.js to run npx promptfoo
  • A generated Promptfoo redteam YAML config
  • A configured target connection

Try asking

  • Run my existing redteam.yaml scan and save the results to results.json
  • Show the attack success rate and grader errors from results.json
  • Rerun only the failing probes from my last redteam scan

Good to know

  • The --no-share flag disables result sharing only, not remote grading or target calls.
  • Adaptive strategies such as jailbreak:meta create new attacks, so repeated runs can vary.
  • Mock graders verify fixture wiring only and do not show real scan results.
  • redteam run lacks --no-share, so sharing must be disabled with an environment variable.

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-run/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • agents/openai.yaml293 B
  • references/redteam-run-patterns.md5 KB

Alternatives to promptfoo-redteam-run

All alternatives →

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

promptfoo-redteam-run: common questions

What does attack success rate mean in this skill?

It is failures divided by the sum of successes and failures, counting only validly graded results. Transport and grader errors are reported separately.

Can I use this skill to set up a new redteam scan?

No. The source says to use promptfoo-redteam-setup for new scan plans and promptfoo-provider-setup for connections.

Why might a rerun show different results?

Adaptive strategies create new attacks during evaluation, so the source advises retaining settings and transcripts and reporting variation across repeated runs.

How do I install promptfoo-redteam-run?

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

Is promptfoo-redteam-run free?

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

Is promptfoo-redteam-run 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-run?

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

promptfoo-redteam-run Install

Add to stack

Loading.