redteam-plugin-development
Skill by promptfoo
Sets standards for writing promptfoo redteam plugins, graders and attack templates. Aimed at developers adding new red team plugins to the promptfoo codebase.
Install redteam-plugin-development
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/.claude/skills/redteam-plugin-development ~/.claude/skills/redteam-plugin-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install redteam-plugin-development in Claude Code
git clone --depth 1 https://github.com/promptfoo/promptfoo /tmp/promptfoo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/promptfoo/.claude/skills/redteam-plugin-development ~/.gemini/antigravity-cli/skills/redteam-plugin-developmentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install redteam-plugin-development in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant the project rules for building redteam plugins in the promptfoo codebase. It covers the required grader tags such as UserQuery and purpose, the rubric layout with PASS and FAIL conditions, and attack template structure with examples. It also lists template variables and Nunjucks conditionals for grading logic.
It explains how to build image dataset plugins that extend ImageDatasetPluginBase and use testVars.prompt for text-only grading. A checklist lists the files to create or update when adding a plugin, including the plugin file, index exports, metadata entries, grader registration and docs. It is intended for developers contributing redteam plugins and graders.
Written from the project's SKILL.md and checked against it.
What it can do
- Grader tag standardsLists the required tags such as UserQuery and purpose, and the deprecated tags to avoid.
- Grader rubric structureShows a rubric template with purpose, allowed entities, user query and PASS or FAIL conditions.
- Attack template structureShows how to write an attack template with examples and a list of generated prompts.
- Template variablesDescribes variables such as purpose, prompt, testVars, entities, goal, tools and n.
- Image dataset pluginsDescribes extending ImageDatasetPluginBase for plugins based on external image datasets.
- Conditional rubric logicShows Nunjucks conditionals to apply different grading criteria.
- Plugin registration checklistLists the files and metadata entries to update when adding a new plugin.
What you need
- Access to the promptfoo source repository
Try asking
- Show me the required tags for a promptfoo redteam grader
- Write a rubric template for a new promptfoo redteam plugin
- List the steps to register a new promptfoo redteam plugin
Good to know
- Deprecated tags such as UserPrompt, UserInput and lowercase prompt must not be used.
- Image plugins should use testVars.prompt instead of prompt to avoid token limit errors in grading.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/redteam-plugin-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to redteam-plugin-development
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
redteam-plugin-development: common questions
What is the redteam-plugin-development skill for?
It gives standards for creating redteam plugins and graders in promptfoo, including grader rubrics and attack templates. It is used when creating new plugins, writing graders or modifying attack templates.
Which grader tags are required?
The source says graders must use UserQuery for the user prompt and purpose for the system purpose. The Output tag is wrapped by the grading system, and AllowedEntities is optional.
What files does a new plugin need?
The source lists a plugin file under src/redteam/plugins, an export in index, an entry in the plugins constant, metadata entries, grader registration in graders.ts, docs and an update to the plugins data file.
How do I install redteam-plugin-development?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is redteam-plugin-development free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is redteam-plugin-development safe to use?
It scores 91 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 redteam-plugin-development?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
