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.
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-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install promptfoo-redteam-setup in Claude Code
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-setup ~/.gemini/antigravity-cli/skills/promptfoo-redteam-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install promptfoo-redteam-setup in Antigravity CLI
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
ANo 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 →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-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.
