# Evaluating AI Output — Evals, pass@k & pass^k, Graders

> Replaces "it worked once" with evals for LLM features: expected behavior first, pass@k / pass^k, code/model/human graders.

Evaluating AI Output — Evals, pass@k & pass^k, Graders is a free AI agent skill on Agensi by Cristhian Zanforlin Lousa, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Cristhian Zanforlin Lousa](https://www.agensi.io/creators/cristhian-zanforlin-lousa)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 2
- Version: 1.2
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/evaluating-ai-output-evals-pass-k-pass-k-graders
- Tags: llm-ops, prompt-engineering, testing, evals, llm, ai-quality, rag, llm-as-judge

## About this skill

**Evaluating AI Output** gives your agent a method for judging non-deterministic work such as prompts, agents, RAG pipelines and LLM classifiers. Code is deterministic and model output isn't, so one good run proves very little. This skill treats evals as the unit tests of AI work.

**The problems it solves**
- Shipping a prompt because it "worked on five examples"
- Confusing "it can do this" with "it does this every time"
- Using an LLM judge for checks a regex or a JSON schema could do
- Prompt changes that silently make previously passing cases fail

**The method**
1. **Define expected behavior before implementing:** inputs, what a good output looks like, and what must never happen. If you can't say how you'd grade it, you don't understand the feature yet.
2. **Run each case k times** and report **pass@k** (at least one success, which measures capability; typical target pass@3 > 90%) and **pass^k** (all k succeed, which measures reliability and is required for critical paths like auth, money and irreversible actions).
3. **Grade with the cheapest grader you can trust:** code-based (schema, regex, assertions), model-based (1–5 against a written rubric, calibrated on human-labeled examples), or human (risk-tagged LOW/MED/HIGH; security review is never fully automated).
4. **Build the eval set** from representative, adversarial/edge and regression cases (every bug becomes a permanent eval). Keep a committed baseline and block changes that regress against it.

Deterministic logic around the model belongs in normal unit tests, not evals.

**What's inside:** a compact `SKILL.md` with the method, the grader table and the boundary with the testing skills, plus a `learnings/` folder for provider quirks and calibrated rubrics.

**When it triggers:** building or changing an AI/LLM feature, agent, prompt, RAG pipeline or classifier.

Free and MIT-licensed, part of the claude-skills-czl collection.

**Source on GitHub:** [this skill](https://github.com/Cristhianzl/claude-skills-czl/tree/main/configs/agnostic/skills/evaluating-ai-output) · [full repository](https://github.com/Cristhianzl/claude-skills-czl)

## Requires

- Git

## Known limitations

A method, not an eval framework: you implement the runner or use your own tool. Running evals calls your LLM provider k times per case, which costs money. Model-based graders must be calibrated on human-labeled examples, and security review is never fully automated.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Evaluating AI Output — Evals, pass@k & pass^k, Graders skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it work outside Claude Code?

Yes. It is a standard SKILL.md and isn't tied to any LLM provider or eval framework. It was built and tested mainly on Claude Code.

### Does it need a specific eval framework?

No. It defines the method (cases, k trials, graders, baseline). You can implement it with a short script, as in the demo, or with whatever eval tool you already use.

### Will it run anything or spend API credits?

Only when evals are actually run. Each case runs k times against your model, so expect provider costs proportional to cases × k (plus judge calls for model-graded rubrics).

### How is it triggered?

Automatically when you build or change an AI/LLM feature, agent, prompt, RAG pipeline or classifier. You can also call it by name.

### How do I install it?

Unzip it into `~/.claude/skills/` (all projects) or into your project's `.claude/skills/`, so you end up with `.claude/skills/evaluating-ai-output/SKILL.md`.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
