agentleFS
vignesh-nagarajan-vnvignesh-nagarajan-vn/claude-workflow-skills/skills/llm-evals/SKILL.md

llm-evals

Skill4 starsChanged 11 days agoMITView on GitHub

Build and run eval harnesses for features that call a model, with a keyless mock lane in CI, a budget-capped live lane behind a key gate, thresholds in a versioned file, and judge scoring. Use when adding or changing evals, testing a prompt or model swap, gating a release on output quality, or investigating a quality regression. Runs scripts/check_thresholds.py.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add --baseline evals/baseline.json to catch regressions that still clear the floor.

    line 16
  2. Distinctive:

    Keep them separate. A suite that needs a key to run is a suite that stops running.

    line 26
  3. Very specific:

    Put them in evals/thresholds.json, commit them, and change them in their own commit with a reason in the message.

    line 30
  4. Distinctive:

    Always include cost and latency alongside quality.

    line 45
  5. Distinctive:

    Read references/harness.md when building the dataset, writing a judge, or running an A/B.

    line 51
  6. Distinctive:

    Before changing anything, re-run.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 6 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

llm-evals

Without evals, a prompt change is a guess and a model swap is a leap. With them, both become a diff you can read.

Gate a run

python <skill>/scripts/check_thresholds.py results.json --thresholds evals/thresholds.json

Add --baseline evals/baseline.json to catch regressions that still clear the floor. A metric that stays above its minimum while dropping four points from last week is the failure that absolute thresholds miss.

Exit code is 1 on any failure or any threshold whose metric is missing from the results, unless that threshold is warn_only.

Two lanes

Mock lane. Runs against the mock provider from llm-pipeline. No key, no cost, deterministic, runs on every commit in CI. It tests the pipeline: schema conformance, error paths, stage ordering, that the shapes hold. It cannot test output quality, and pretending otherwise is the main way eval suites become theatre.

Live lane. Runs against the real provider. Key-gated, so it is skipped rather than failed when no key is present. Budget-capped with a hard token or dollar ceiling that aborts the run. Local and on-demand, not on every commit.

Keep them separate. A suite that needs a key to run is a suite that stops running.

Thresholds are a versioned file

Put them in evals/thresholds.json, commit them, and change them in their own commit with a reason in the message. A threshold quietly lowered to make CI green is worse than no threshold.

{
  "accuracy":         { "min": 0.82, "max_drop": 0.03 },
  "latency_p95_ms":   { "max": 4000 },
  "cost_per_run_usd": { "max": 0.35 },
  "refusal_rate":     { "max": 0.02, "warn_only": true }
}

The checker also lists metrics you report but do not gate. Either add a threshold or stop reporting them, because an ungated metric is decoration.

What to measure

Always include cost and latency alongside quality. A prompt change that lifts accuracy two points and triples cost is a decision, not a win, and you cannot make that call without both numbers on the same page.

Measure the thing the product promises. If the product is a drafting tool for a human reviewer, measure agreement with the reviewer, not fluency.

Detail

Read references/harness.md when building the dataset, writing a judge, or running an A/B. It covers dataset design, judge prompts and their failure modes, sample size against variance, and budget capping.

Interpreting a failure

Before changing anything, re-run. LLM evals are noisy, and a single failing run on a small set is often variance rather than regression. If the suite is too small for that to be distinguishable, the suite is too small.

Prose follows prose-guard's rules.

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.