audit: Skill for Claude Code

.agents/skills/promptfoo-evals/SKILL.md

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

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is ali-master/audit's own configuration. It tells Claude Code and Codex how to work on audit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything audit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ali-master/audit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ali-master/audit/main/.agents/skills/promptfoo-evals/SKILL.md
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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for promptfoo-evals

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00079 $0.01671
Opus 5.5 $0.00032 $0.00668
Sonnet 5.5 $0.00016 $0.00334
Haiku 4.5 $0.00008 $0.00167

Measured 1mo ago against content hash 9732e06e2b70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 — 25 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. 1mo 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 (25 stars, last pushed 4mo ago), licensed MIT. It adds 79 tokens to every session and 1,671 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to promptfoo-evals, differing in 25 lines, and is treated as a copy.

Related

Other skills, from other repositories

tool-abuse-detection

Detect tool misuse and unexpected code execution via dialogue testing. Use when the agent exposes file, code-execution, or network tools.

Tencent/AI-Infra-Guard · 32 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

mantis-summarize

Pre-processes the repository by generating security-focused summaries (mantis-summary.md) for each directory to make planning and research more efficient. Use when starting a review campaign to map the codebase before threat modeling and planning. Don't use for executing code reviews, writing test scripts, or patching…

google/mantis · 66 tokens

mantis-configure

Configures and validates Mantis pipeline environments, sandbox mechanisms, and AI models. Use to set up workflow.json, auto-detect host capabilities, switch between sandboxes (static-only, gvisor, microsandbox, gce), select AI models, and run fast 1-2s preflight tests. Don't use for scanning source code or running…

google/mantis · 77 tokens

pentest-api-deep

Deep OWASP API Security Top 10 testing for REST, GraphQL, gRPC, and WebSocket APIs — BFLA, mass assignment, rate limiting, and unsafe consumption.

jd-opensource/JoySafeter · 43 tokens