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.
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-runRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/promptfoo/promptfoo /tmp/promptfoo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/promptfoo/plugins/promptfoo/skills/promptfoo-redteam-run ~/.gemini/antigravity-cli/skills/promptfoo-redteam-runAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install promptfoo-redteam-run in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
