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/scouzi1966/maclocal-api/codex-promptfoo-agentic-evalnpx skills add scouzi1966/maclocal-api --skill codex-promptfoo-agentic-evalgit clone --depth 1 https://github.com/scouzi1966/maclocal-apiWrote 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/scouzi1966/maclocal-api/codex-promptfoo-agentic-eval)<a href="https://agentmods.dev/skills/scouzi1966/maclocal-api/codex-promptfoo-agentic-eval"><img src="https://agentmods.dev/badge/skills/scouzi1966/maclocal-api/codex-promptfoo-agentic-eval.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.00067 | $0.01836 |
| Opus 5 | $0.00034 | $0.00918 |
| Sonnet 5 | $0.00013 | $0.00367 |
| Haiku 4.5 | $0.00007 | $0.00184 |
Grade A, and why
codex-promptfoo-agentic-eval 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.
How it starts
The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Promptfoo Agentic Eval
Use this skill when the user wants to run, expand, or interpret the Promptfoo agentic suite for AFM.
This skill is for two linked goals:
- AFM functional validation
- model-quality evaluation for agentic use
Always distinguish:
afm_bugmodel_qualityharness_bug
Always report provenance for the suite you run:
afm_internalprimary_sourcepublic_benchmark_inspiredsynthetic
Never present a benchmark-inspired or synthetic suite as if it were a public benchmark import.
First questions to ask
Before running the suite, ask the user the minimum needed questions:
- Which model should be tested?
- Which scope should be run?
structuredstructured-stresstoolcalltoolcall-qualityagenticframeworksopencodeall- one profile only:
default,adaptive-xml,adaptive-xml-grammar
- Is the goal:
- AFM functional QA
- model quality
- both
- Should the run stay serial/safe, or include concurrency cases?
- Should you only review existing reports, or also execute the harness?
- Should the run prefer:
- primary-source-only cases
- public-benchmark-inspired cases
- synthetic representative cases
- mixed
If the user does not specify, assume:
- model: the repo's current primary MLX model under test
- scope:
all - goal:
both - run mode: serial/safe first
- action: execute and then review
- provenance preference: mixed, but explicitly labeled
Working directory
Run from:
cd /Volumes/edata/codex/dev/git/maclocal-api/NEXT/maclocal-api
Main assets
Read only what is needed:
Scripts/feature-promptfoo-agentic/README.mdScripts/feature-promptfoo-agentic/run-promptfoo-agentic.shScripts/feature-promptfoo-agentic/providers/afm_provider.mjsScripts/feature-promptfoo-agentic/matrix/functional-matrix.yamlScripts/feature-promptfoo-agentic/matrix/failure-classification.yamldocs/roadmap/promptfoo-agentic-matrix.md
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 · 237 lines · 67 tokens per session scan A 72ad070d6678
codex-promptfoo-agentic-eval is a skill published in the GitHub repository scouzi1966/maclocal-api (337 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 1,836 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
apple-foundation-models-app-patterns
Apply MVVM architecture patterns for building Foundation Models apps.
apple-foundation-models-conversation-context-builder
Extract context and build continuation prompts for multi-turn conversations.
apple-foundation-models-custom-tools
Build custom tools that the model can call to extend functionality.
apple-foundation-models-dynamic-schemas
Build schemas dynamically at runtime for flexible structured output.
apple-foundation-models-error-recovery
Handle context overflow, refusals, rate limits, and generation errors.
apple-foundation-models-feedback-sentiment-api
Collect user feedback and analyze sentiment to improve model responses.