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

promptfoo-evals

Skill by promptfoo

Writes, refines, runs and QA-checks promptfoo evaluation suites for non-redteam eval coverage, regression tests and CI gates. Aimed at developers building LLM eval matrices.

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

Install promptfoo-evals

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/promptfoo-evals ~/.claude/skills/promptfoo-evals

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

Step-by-step: install promptfoo-evals in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

promptfoo-evals is a skill for AI assistants that helps write, refine, run and QA promptfoo evaluation suites. It covers promptfooconfig.yaml files, prompts, providers, vars, tests, assertions, model-graded rubrics, transforms, datasets, exports and CI gates. The skill favors deterministic assertions first and uses model-graded checks only when needed.

It follows a set workflow: find or create a suite folder, write prompts and tests, choose providers, add assertions, then validate and run with npx promptfoo using --no-cache and --no-share. It is intended for teams adding non-redteam eval coverage, regression tests or new eval matrices. Adversarial redteam plugin and strategy setup are excluded.

Written from the project's SKILL.md and checked against it.

What it can do

  • Suite setupFinds or creates promptfooconfig.yaml files and a standard evals folder layout.
  • Prompt and provider setupOrganizes prompts as files and picks providers for models, HTTP APIs or local code.
  • Test writingBuilds file-based or dataset-backed tests with descriptions, vars and assertions.
  • Deterministic assertionsUses checks such as equals, contains, regex, is-json and javascript before model-graded ones.
  • Model-graded rubricsSets explicit grader providers for llm-rubric and faithfulness checks.
  • Output transformsPreprocesses model output before assertions when the real app does the same.
  • Validate and runRuns promptfoo validate and eval commands and writes results to output.json.
  • CI gatesGuides CI runs that require tested coverage and inspect success, score and error fields.

What you need

  • Node.js with npx to run promptfoo
  • API credentials for the target, model or grader services, if running evals
  • A repo with or without an existing promptfoo suite

Try asking

  • Create a promptfoo eval suite for my summarization prompt with regression tests
  • Add llm-rubric assertions that check my answers are grounded in the source text
  • Set up a promptfoo config comparing two OpenAI models and validate it

Good to know

  • Model-graded assertions are slow, cost money and are non-deterministic.
  • Eval runs call the configured target, model and grader services.
  • Adversarial redteam plugin and strategy setup are out of scope.
  • The skill does not run the promptfoo view command unless asked.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/promptfoo-evals/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/cheatsheet.md11 KB

Alternatives to promptfoo-evals

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

promptfoo-evals: common questions

What does promptfoo-evals help with?

It helps write, refine, run and QA promptfoo evaluation suites, including configs, prompts, tests, assertions and CI gates.

Is it for redteam testing?

No. The source says not to use it for adversarial redteam plugin or strategy setup.

Does it prefer deterministic checks?

Yes. The source says to use deterministic assertions first and model-graded ones sparingly.

How do I install promptfoo-evals?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is promptfoo-evals free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is promptfoo-evals safe to use?

It scores 93 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-evals?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

promptfoo-evals Install

Add to stack

Loading.