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.
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-evalsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/promptfoo/promptfoo /tmp/promptfoo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/promptfoo/.claude/skills/promptfoo-evals ~/.gemini/antigravity-cli/skills/promptfoo-evalsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
