agentleFS
XData-siXData-si/xdata-agenthub/skills/llm-output-evaluation/SKILL.md

llm-output-evaluation

Skill1 starsChanged 33 days agoMITView on GitHub

Build an evaluation harness for LLM features — test sets, deterministic checks, rubric or LLM-as-judge scoring with calibration, and release thresholds. Use when changing models, prompts or parameters, comparing providers, or proving an LLM feature meets quality targets.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    LLM-as-judge: only with safeguards: a different or stronger model than the candidate where possible, a rubric in the prompt, pairwise …

    line 21
  2. Distinctive:

    Remove personal and confidential data from evaluation sets or keep them under the same access controls as production data.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 Output Evaluation

Goal

Quality decisions based on measured results on fixed cases, not on a handful of impressive examples.

Inputs

  • Feature description and success criteria, real (anonymised) inputs, known failure reports.
  • Candidate configurations: model, prompt version, parameters, retrieval settings.

Procedure

  1. Define criteria per task: correctness, completeness, faithfulness to sources, format validity, safety and refusal behaviour, tone, latency and cost.
  2. Build the dataset: 50–200 cases stratified by category and difficulty, including edge, adversarial and should-refuse cases. Store as JSONL with IDs, inputs, references or rubric notes. Keep a held-out subset that is not used while tuning prompts.
  3. Prefer deterministic checks where possible: schema validation, exact or normalised match, regular expressions, numeric tolerance, citation IDs present in the provided context, banned-content lists.
  4. Rubric scoring for open-ended outputs: 3–5 point scales with anchored descriptions per level.
  5. LLM-as-judge only with safeguards: a different or stronger model than the candidate where possible, a rubric in the prompt, pairwise comparison with randomised order to reduce position bias, and calibration against at least 30 human-labelled cases (report agreement, for example Cohen's kappa).
  6. Run repeatably: fixed model versions, seeds or temperature 0 where supported, multiple samples for stochastic settings; log cost and latency per case.
  7. Analyse: aggregate scores with confidence intervals, per-category breakdown, regressions per case (old pass → new fail), and qualitative review of the worst cases.
  8. Gate releases on thresholds agreed in advance (for example no category below baseline − 2 %, zero regressions on safety cases).

Example fixture

{"id":"faq-017","input":"Can I return a sale item after 40 days?","context_ids":["policy-returns-v4"],"expect":{"must_include":["30 days"],"must_not_include":["yes, any time"],"cite":"policy-returns-v4"}}

Acceptance checks

  • Dataset version, model versions and prompt versions are recorded with every result.
  • Judge agreement with humans is reported before judge scores are used for decisions.
  • Results include per-category numbers and the list of regressed cases, not only an average.
  • Thresholds were set before running the candidate.

Output

Evaluation report (configuration, dataset, metrics with intervals, regressions, cost and latency), and the harness and dataset in the repository.

Safety

Remove personal and confidential data from evaluation sets or keep them under the same access controls as production data. Do not send confidential data to external judge models without authorization.

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.