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.
npx agentmods add skills/ali-master/audit/promptfoo-evalsnpx skills add ali-master/audit --skill promptfoo-evalsgit clone --depth 1 https://github.com/ali-master/auditWrote 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.
[](https://agentmods.dev/skills/ali-master/audit/promptfoo-evals)<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>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.
| Model | Per session | Once 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 |
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.
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.
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) orprompts/*.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) |
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.
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.
- 4d ago First seen · 223 lines · 79 tokens per session scan A 9732e06e2b70
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.
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 安全扫描…
owasp-asi
OWASP Top 10 for Agentic Applications 2026 (ASI) classification framework. Use for mapping security findings to standardized risk categories.
inter-agent-comm-security-detection
Detect data leakage, missing boundaries, or privilege mismatch in inter-agent communication.
direct-injection-detection
Detect direct prompt injection or instruction override via user message (no external content). Focuses on system/role override attempts.
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.
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.