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

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.

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

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

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

Step-by-step: install redteam-plugin-development in Claude Code

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

A

No 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 →

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.

redteam-plugin-development Install

Add to stack

Loading.