promptfoo

Evaluate and compare LLM prompts with red-teaming and vulnerability scanning.

2|1|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/lucidlabs-hq/agent-kit --skill promptfoo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: promptfoo
Source: https://github.com/lucidlabs-hq/agent-kit/tree/main/.claude/skills/promptfoo
Command: npx skills add https://github.com/lucidlabs-hq/agent-kit --skill promptfoo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LLM prompt design and evaluation is often manual and error prone. PromptFoo provides a structured framework to systematically test, compare, and improve prompts, reducing bugs and inconsistencies across projects.

Core Features & Use Cases

  • Reference test suites: baseline, edge cases, security, and regression tests to validate prompts across models and configurations.
  • Red-teaming and vulnerability scanning: integrated checks to uncover prompts that could lead to unsafe outputs or leakage of sensitive information.
  • Self-learning workflow: track improvements over iterations and enable continuous prompt optimization in production.
  • MCP server integration: support for Claude MCP and easy integration into existing AI stacks.

Quick Start

Run a full prompt evaluation against your Mastra prompts to identify improvement opportunities.

Frequently Asked Questions about promptfoo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I systematically evaluate and compare LLM prompts?

To systematically evaluate and compare LLM prompts, you can use structured test suites to run baseline, edge case, and regression tests across different models and configurations. This framework identifies prompt strengths and weaknesses to reduce inconsistencies.

What is red-teaming in the context of prompt testing?

Red-teaming in prompt testing involves applying integrated vulnerability scans to uncover prompts that could lead to unsafe outputs or the leakage of sensitive information. This process detects and mitigates prompt-related risks across different versions.

Can I track LLM prompt improvements over multiple iterations?

You can track LLM prompt improvements over iterations by using a self-learning workflow that documents changes and tracks metrics over time. This enables continuous prompt optimization in production environments.

Does this prompt evaluation framework support Claude MCP integration?

Yes, this prompt evaluation framework supports Claude MCP server integration, allowing you to easily incorporate systematic prompt testing and vulnerability scanning into your existing AI stacks.

What's the best way to identify prompt-related risks in my LLM application?

The best way to identify prompt-related risks is to apply red-teaming and vulnerability scanning across prompt versions. Integrated checks help detect prompts that could cause unsafe outputs or sensitive information leakage.

How do I set up reference test suites for LLM evaluation?

To set up reference test suites for LLM evaluation, you configure baseline, edge case, security, and regression tests to validate your prompts across various models and configurations. Running a full evaluation identifies improvement opportunities.