Guide · Agent skill
How to use the Agent Evals agent skill (agent-evals)
Updated · written with AI from the project's own documentation and checked against our catalogue data
Agent Evals is an agent skill that teaches an AI agent to build automated quality checks for other AI agents or LLM features. It provides Python test templates for prompt correctness, tool selection, multi-step tasks, prompt-injection resistance and LLM-as-judge grading, along with a golden dataset format of expected answers. This guide explains what the skill does, how to install it, how to ask for it in plain language, and what you need before running anything it produces.
Quick start
- 1Download and unzip the skill. Download the ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder. The package contains SKILL.md.
- 2Check the requirements. Confirm you have Python 3.10 or later, an LLM API key, pytest and pytest-timeout. Decide whether you will use Braintrust, Promptfoo or LangSmith.
- 3Ask for an eval suite in plain language. Describe the agent or feature, the checks you need, such as tool selection or prompt-injection resistance, and where the files should go.
- 4Supply your adapter and fixtures. Provide the agent adapter, synthetic fixture files such as evals/fixtures/unit_cases.json, and reviewed dependencies. The templates will not run without them.
- 5Set thresholds and run as a gate. Define pass thresholds and human review, approve the provider cost and data transmission, then run the suite before deploying prompt or agent changes.
What does the Agent Evals skill make the agent do?
The skill is about building test infrastructure, not answering questions. When it is active, the agent writes evaluation suites that run repeatedly so you can check whether an agent or prompt change made behaviour better or worse.
The source describes several layers: unit evals for individual prompt-to-response quality, tool evals for whether the agent picks the right tool with the right parameters, end-to-end evals for multi-step tasks, safety evals for adversarial prompts, and LLM-as-judge scoring for free-form outputs. The templates are meant to run as regression gates before you deploy prompt or agent changes.
- Unit evals: check responses against must-contain and must-not-contain keywords or exact JSON output
- Tool evals: check that expected tools are called and expected parameters match
- End-to-end evals: check multi-step runs, such as whether search was used and a token budget was respected
- Safety evals: check that injection prompts do not leak a system prompt or secrets
- LLM-as-judge: a grading model scores accuracy, helpfulness and safety on a 1 to 5 scale
How do you install the Agent Evals skill?
Download the ZIP file from this page. Unzip it into one of these locations, depending on how you want to use it: your user skills folder at ~/.claude/skills/, or a project's .claude/skills/ folder if you want the skill available only inside that project.
If you use the Claude apps instead, upload the skill under Settings, then Capabilities, then Skills.
The package contains a single file, SKILL.md. The source does not include a separate install command, so do not assume one exists.
- Option A: unzip into ~/.claude/skills/ for personal use
- Option B: unzip into a project's .claude/skills/ folder to scope it to one repository
- Option C: upload it in the Claude apps under Settings, then Capabilities, then Skills
How do you trigger the skill with natural requests?
You do not need a special command. The skill's description says to use it when shipping agent features, validating prompt changes, or gating deployments on quality. Ask for those tasks in plain language and the agent should pick it up.
Be specific about the thing you want tested. Name the agent or feature, the kind of checks you need, and where the output should go. The source's own use cases include building regression suites for tool-calling agents, adding CI gates for agent quality and safety, measuring LLM output quality at scale, and validating RAG retrieval accuracy.
- Set up regression tests for our support agent's tool calls before we change the prompt
- Add a CI gate that blocks deployment if the agent's safety score drops
- Build a golden dataset of 20 expected answers for our RAG retrieval and a pytest file to run it
- Write prompt-injection tests for our chatbot that check it does not reveal its system prompt
What examples and dataset format does the skill use?
The core idea is a golden dataset: a JSON list of cases, each with a prompt and the properties a good answer must have. The source gives this example, shown here with formatting removed. The first case checks a tip calculation for a must-contain value, and the second checks that a prompt-injection attempt is refused.
The templates load cases like these from files such as evals/fixtures/unit_cases.json. Keep fixtures synthetic, as the source advises.
- Each case has an id, a prompt, and optional must_contain, must_not_contain or expected_json fields
- Tool cases can specify expected_tool and expected_params_subset
- Judge cases include a reference answer that the grading model compares against
[{"id": "calc-01", "prompt": "What is 15% tip on $42.50?", "must_contain": ["6.38"], "must_not_contain": ["sorry", "cannot"]}]What do you need before running these evals, and what are the safety limits?
You need Python 3.10 or later, an LLM API key from a provider such as OpenAI or Anthropic, pytest, and pytest-timeout, which the shown --timeout options require. You also need an agent adapter, fixture files and reviewed dependencies, which you supply yourself. The templates are not bundled executable tests. Optionally, you can connect a Braintrust, Promptfoo or LangSmith account.
The skill's metadata says it does not run scripts and does use the network. Calls to the model provider send your prompts and data off your machine and cost money, so approve that before running. Keep API keys private. The source also says to sandbox tool effects and to inspect tool and network traces, not just the response text.
The frontmatter compatibility note also lists platform CLIs such as kubectl, helm, terraform, git and CI runners. Those are not part of the Python requirements above, so check whether they apply to your setup.
- Approve provider cost and data transmission before running
- Keep fixtures synthetic and API keys private
- Sandbox tool effects and inspect tool and network traces
- Define thresholds and human review before you evaluate
- Keyword refusals and numeric judge scores do not prove safety or factual accuracy
What tips help when adapting the templates?
Treat the templates as starting points. The source says you must supply the agent adapter, the fixtures, supported provider and model IDs, and the test configuration. The example model IDs in the templates are illustrative, so use IDs your provider actually supports.
Decide thresholds before you run the suite. The judge template, for example, fails if safety falls below 4 or average accuracy falls below 3.5, but whether those numbers suit your product is your call. Pair automated scores with human review.
- Replace the placeholder agent import with your own adapter
- Write your own golden cases from real user queries
- Set thresholds and review process before you treat a pass as meaningful
- Use the optional Promptfoo section of the source for a config-based setup, if you use Promptfoo
What people use it for
- Blocking a deployment when a prompt change causes tool-calling errors
- Checking a RAG assistant's retrieval answers against a golden dataset
- Testing a chatbot against prompt-injection and data-exfiltration attempts
- Grading free-form support answers with an LLM judge against reference answers
Frequently asked questions
How do I install the agent-evals skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings, then Capabilities, then Skills. The package contains one file, SKILL.md.
Is the Agent Evals skill free to use?
The skill is listed under the MIT licence. The source does not state any price for the skill itself. Your LLM API usage and any Braintrust, Promptfoo or LangSmith account you choose to use are separate costs and terms.
What do I need to run the tests?
You need Python 3.10 or later, an LLM API key from a provider such as OpenAI or Anthropic, pytest and pytest-timeout. You also need to supply an agent adapter, fixture files and reviewed dependencies, because the templates are not bundled executable tests.
Does the skill run scripts or use the internet?
The skill's metadata says it runs no scripts and does use the network. Calls to model providers send data externally and can incur cost, so approve that before running the suites.
Can this skill replace a human reviewer or prove my agent is safe?
No. The source warns that keyword refusals and numerical judge scores do not prove safety or factual accuracy. Define thresholds and human review before you evaluate, and inspect tool and network traces, not only the response text.
How does this compare with Promptfoo, Braintrust or LangSmith?
The source does not compare them. It lists Braintrust, Promptfoo and LangSmith only as optional accounts you may connect. The Agent Evals skill gives you Python test templates and a golden dataset format, while those platforms are separate services.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use Agent Evals if you are an engineer shipping an LLM feature or agent who wants Python test templates for regression gates in your release process. Pick something else if you want a one-off answer, or a turnkey test suite that runs without you writing an adapter, fixtures and configuration.
Download the skill