promptfoo-evals

promptfoo-evals is a skill for Claude Code, Codex from ali-master/audit. It costs 79 tokens per session (1,671 once invoked), scanned A, a copy of promptfoo-evals, MIT.

A toolkit for creating and maintaining promptfoo evaluations, which are repeatable tests for prompts, AI agents, APIs, or retrieval systems. It supports test data, assertions, model-based grading, and continuous-integration checks.

In plain words
What is it for?
Use it to write evaluation configurations, prompts, datasets, test cases, grading rules, output transforms, reports, and CI quality gates.
Why use it?
It gives AI behavior a structured test suite so changes can be checked for regressions instead of judged only by occasional manual inspection.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ali-master/audit/promptfoo-evals
Any agent
npx skills add ali-master/audit --skill promptfoo-evals
Clone the repo
git clone --depth 1 https://github.com/ali-master/audit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for promptfoo-evals

README.md
[![agentmods](https://agentmods.dev/badge/skills/ali-master/audit/promptfoo-evals.svg)](https://agentmods.dev/skills/ali-master/audit/promptfoo-evals)
Your own site
<a href="https://agentmods.dev/skills/ali-master/audit/promptfoo-evals"><img src="https://agentmods.dev/badge/skills/ali-master/audit/promptfoo-evals.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00079 $0.01671
Opus 5 $0.00039 $0.00835
Sonnet 5 $0.00016 $0.00334
Haiku 4.5 $0.00008 $0.00167

Measured 4d ago against content hash 9732e06e2b70, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

promptfoo-evals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to promptfoo-evals — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/promptfoo-evals/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing Promptfoo Evals

You produce maintainable promptfoo eval suites: clear test cases, deterministic assertions where possible, model-graded only when needed.

See references/cheatsheet.md for the full assertion and provider reference. For deep questions about promptfoo features, consult https://www.promptfoo.dev/llms-full.txt

Inputs (infer from repo context if not provided)

  • What is being evaluated (prompt, agent, endpoint, RAG pipeline)?
  • What are the inputs and outputs (text, JSON, multi-turn chat, tool calls)?
  • What does "good" look like (acceptance criteria, failure modes)?

If context is insufficient, scaffold with TODO markers and starter tests.

Workflow

1. Find or create the eval suite

Search for existing configs: promptfooconfig.yaml, promptfooconfig.yml, or any promptfoo/evals folder. Extend existing suites when possible.

For new suites, use this layout (unless the repo uses another convention):

evals/<suite-name>/
  promptfooconfig.yaml
  prompts/
  tests/

Always add # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json at the top of config files.

2. Write prompts

  • Put prompts in prompts/*.txt (plain) or prompts/*.json (chat format)
  • Reference via file://prompts/main.txt
  • Use {{variable}} for test inputs
  • If the app builds prompts dynamically, use a JS/Python provider instead of duplicating logic

3. Choose providers

Pick the simplest option that matches the real system:

Scenario Provider pattern
Compare models openai:chat:gpt-4.1-mini, anthropic:messages:claude-sonnet-4-6
Test an HTTP API id: https with config.url, config.body, and transformResponse
Test local code file://provider.py or file://provider.js
Echo/passthrough echo (returns prompt as-is, useful for testing assertions)

Read the full file on GitHub · 223 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 223 lines · 79 tokens per session scan A 9732e06e2b70

Subscribe to this mod's changes

promptfoo-evals is a skill published in the GitHub repository ali-master/audit (24 stars, last pushed 2mo ago), licensed MIT. It adds 79 tokens to every session and 1,671 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to promptfoo-evals, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

edgeone skill scanner

Scan any agent skill for security risks before you install or use it. Powered by Tencent Zhuque Lab A.I.G (AI-Infra-Guard). 100% local static analysis — no file contents or credentials leave your device. Compatible with CodeBuddy, Cursor, Windsurf, Claude Code, OpenClaw and more. Triggers on: 这个 skill 安全吗, skill 安全扫描…

Tencent/AI-Infra-Guard · 148 tokens

owasp-asi

OWASP Top 10 for Agentic Applications 2026 (ASI) classification framework. Use for mapping security findings to standardized risk categories.

Tencent/AI-Infra-Guard · 33 tokens

inter-agent-comm-security-detection

Detect data leakage, missing boundaries, or privilege mismatch in inter-agent communication.

Tencent/AI-Infra-Guard · 23 tokens

direct-injection-detection

Detect direct prompt injection or instruction override via user message (no external content). Focuses on system/role override attempts.

Tencent/AI-Infra-Guard · 30 tokens

mantis-reproduce

Generates and runs crash reproducers to verify security flaws. Use when viable findings exist and you need to write and execute a script or payload to verify the crash. Don't use for code auditing or patching.

google/mantis · 47 tokens

mantis-plan

Formulates a targeted defensive security reviewing plan based on the active threat model and historical learnings. Use when starting a security review campaign to map the codebase boundaries and generate a roadmap (workspace/plan.json). Don't use for executing code reviews, writing test scripts, or patching code.

google/mantis · 62 tokens