agentleFS
MLOps-CoursesMLOps-Courses/agentops-open-course/skills/agent-evaluation/SKILL.md

agent-evaluation

Skill2 starsChanged 42 days agoMITArchived repositoryView on GitHub

Build offline checks and model-backed evidence for an LLM agent — trajectory scoring, groundedness/citation coverage, a token-cost regression tripwire, and side-by-side prompt A/B. Use when a prompt or model change might silently regress behavior, cost, or grounding, or when "it looked fine" is your only test.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tool-design, context-engineering and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mjunaidcaSkill

    tool-design

    Design tools that agents can use effectively. Use when creating new tools for agents, debugging tool-related failures, or optimizing existing tool sets.

    Also in 3 projects that use this

  • mrgoonieSkill

    context-engineering

    Master context engineering for AI agent systems. Use when designing agent architectures, debugging context failures, optimizing token usage, implementing memory systems, building multi-agent coordination, evaluating agent performance, or developing LLM-powered pipelines. Covers context fundamentals, degradation patterns, optimization techniques (compaction, masking, caching), compression strategies, memory architectures, multi-agent patterns, LLM-as-Judge evaluation, tool design, and project development.

    Also in 4 projects that use this

  • xenitV1Skill

    clean-code

    Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

    Also in 3 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 3 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Grow the set from real failures: When a trace shows a wrong or unsafe trajectory, distil it into one case that pins that single behavior …

    line 19
  2. Distinctive:

    A/B prompt versions: Run the eval set under two pinned prompt versions in isolated processes and print a per-scorer delta.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Evaluation

Score an agent's behavior over fixed cases, not one exact string. Let model-free structure checks gate merges. Treat every model-backed scorer as evidence with an explicit floor, and never make an LLM judge the sole release criterion.

When to use

  • A prompt/model change can pass a smoke test yet call the wrong tools, cost more, or hallucinate.
  • You want deterministic evalset validation in pull requests and behavioral evidence before release.
  • You need to choose between two prompt versions with numbers, not opinion.

Steps

  1. Score the trajectory, not the wording. Assert which tools were called, with which arguments, in order (allow extra reads) over fixed seed cases; hold writes to an exact count. This survives non-determinism that exact-match scoring cannot.
  2. Grow the set from real failures. When a trace shows a wrong or unsafe trajectory, distil it into one case that pins that single behavior and makes a recurrence visible.
  3. Add a groundedness check. Require every recognized claim to appear in that turn's retrieved evidence or the user's question. Document the recognizer's vocabulary; use a broader extractor or judge for claims it cannot parse.
  4. Tripwire the cost. Record per-case tokens and model-call counts against a committed baseline; fail when a change exceeds a tolerance. Trajectory scores tolerate waste, so this is the only thing that catches a correct-but-expensive regression.
  5. A/B prompt versions. Run the eval set under two pinned prompt versions in isolated processes and print a per-scorer delta; promote or roll back on the numbers.
  6. Split gates from evidence. Deterministic, model-free checks gate CI; model-backed evals (judge, cost, groundedness) run on a schedule where a failure means "investigate", not "blocked".

Reference implementation

From the AgentOps Open Course (agent modules live under agents/python/src/agent/, eval scripts under agents/python/evals/):

  • evals/mlflow_eval.py — deterministic trajectory/response scorers + optional judge.
  • evals/groundedness_eval.py, evals/cost_eval.py, evals/prompt_ab.py.
  • Course chapter 4.4. Evaluations.

Verify

Introduce a deliberate regression (a wrong tool, a doubled token count, a fabricated id) and confirm the matching scorer turns red; revert and confirm green.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.