AGENT SKILL

redteam-plugin-development

Standards for creating promptfoo redteam plugins and graders. Use when creating new plugins, writing graders, or modifying attack templates.

License 许可
MIT
最近更新
2026-04-14
Stars
★ 2
Forks
0

01 前言 Front Matter

name
redteam-plugin-development
license
MIT
description
Standards for creating promptfoo redteam plugins and graders. Use when creating new plugins, writing graders, or modifying attack templates.

03 SKILL.md 正文

Redteam Plugin Development

Use this skill for:

  • /Users/wendyly/.local/share/agent-skills/external/promptfoo

Scope

  • Create or modify promptfoo redteam plugins and graders.
  • Keep grader prompts and plugin metadata aligned with promptfoo's internal conventions.

Required Tag Conventions

Use these tags in graders:

  • <UserQuery>{{prompt}}</UserQuery>
  • <purpose>{{purpose}}</purpose>
  • <AllowedEntities> when relevant

Do not use deprecated alternatives like:

  • <UserPrompt>
  • <UserInput>
  • lowercase <prompt>

Development Pattern

  1. Add or modify the plugin implementation in src/redteam/plugins/.
  2. Export it from the relevant index files.
  3. Register metadata and grader entries in the redteam constants and grader registry.
  4. Add or update docs under site/docs/red-team/plugins/.
  5. Reuse existing base classes for image-dataset plugins when applicable.

Grader Rules

  • Keep pass/fail criteria explicit.
  • Return a {reason, pass, score} structure.
  • For multimodal grading, avoid feeding base64-heavy {{prompt}} into the grader when {{testVars.prompt}} is sufficient.

Reference Files

  • src/redteam/plugins/
  • src/redteam/constants/
  • src/redteam/graders.ts
  • src/prompts/grading.ts

Safety

  • Redteam plugins are for controlled evaluation of owned or authorized systems.
  • Treat jailbreak prompts, traces, and model outputs as sensitive evaluation artifacts.

04 同仓库更多 Skills

gerald-ica
gerald-ica/opencode-config-snapshot

web-design-guidelines

Web platform design and accessibility guidelines. Use when building web interfaces, auditing accessibility, implementing responsive layouts, or reviewing web UI code. Triggers on tasks involving HTML, CSS, web components, WCAG compliance, responsive design, or web performance.

★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

watchos-design-guidelines

Apple Human Interface Guidelines for Apple Watch. Use when building watchOS apps, complications, or workout features. Triggers on tasks involving Watch UI, Digital Crown, glanceable interfaces, or wrist-based interactions.

★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

visionos-design-guidelines

Apple Human Interface Guidelines for Apple Vision Pro. Use when building spatial computing apps, implementing eye/hand input, or designing immersive experiences. Triggers on tasks involving visionOS, RealityKit, spatial UI, or mixed reality.

★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

tvos-design-guidelines

Apple Human Interface Guidelines for Apple TV. Use when building tvOS apps with focus-based navigation, Siri Remote input, or living room viewing experiences. Triggers on tasks involving Apple TV, tvOS, 10-foot UI, or media playback.

★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

timesfm-forecasting

Zero-shot time series forecasting with Google's TimesFM foundation model. Use this skill when forecasting ANY univariate time series — sales, sensor readings, stock prices, energy demand, patient vitals, weather, or scientific measurements — without training a custom model. Supports both basic forecasting and advanced covariate forecasting (XReg) with dynamic and static exogenous variables. Automatically checks system RAM/GPU before loading the model, validates dataset fit before processing, supports CSV/DataFrame/array inputs, and returns point forecasts with calibrated prediction intervals. Includes a preflight system checker script that MUST be run before first use to verify the machine can load the model and handle your specific dataset.

★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

sqlmap-defensive-audit

Use when working with sqlmap for defensive SQL injection research, local lab validation, code reading, or safe remediation guidance around SQLi testing workflows.

★ 2