agentleFS
tim-osterhustim-osterhus/millrace-skills/skills/validate-evaluator/SKILL.md

validate-evaluator

Skill0 starsChanged 7 months agoApache-2.0View on GitHub

Guardrail for validating LLM judges against human labels using data splits, TPR/TNR, disagreement review, and bias correction.

2 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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    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:

    Use training examples only for few-shot prompt examples.

    line 30
  2. Distinctive:

    Run the held-out test set once for final measurement.

    line 32
  3. Distinctive:

    Do not use raw accuracy as the primary validation metric.

    line 36
  4. Distinctive:

    Do not put dev or test examples into few-shot prompts.

    line 37
  5. Distinctive:

    Do not report dev performance as final judge quality.

    line 38
  6. Distinctive:

    Do not validate code-based checks with LLM judge calibration.

    line 39
  7. Distinctive:

    Prefer domain-expert labels over generic outsourced labels for domain-specific criteria.

    line 40
  8. Distinctive:

    Check label quality, balance, and failure-mode specificity.

    line 57
  9. Distinctive:

    Create disjoint train, dev, and test splits.

    line 58
  10. Distinctive:

    Run judge on dev and calculate TPR and TNR.

    line 59
  11. Distinctive:

    Run the judge once on held-out test data.

    line 62
  12. Distinctive:

    Start with one judge and one failure mode.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Validate Evaluator

Purpose

Help agents calibrate an LLM judge against human labels before trusting its outputs. This skill is for LLM judges, not deterministic code-based checks.

Quick Start

  1. Require a built judge prompt and human-labeled data.
  2. Split labels into train, dev, and test sets.
  3. Use training examples only for few-shot prompt examples.
  4. Iterate on dev using TPR and TNR.
  5. Run the held-out test set once for final measurement.
  6. Apply bias correction and confidence intervals when estimating production success rate.

Operating Constraints

  • Do not use raw accuracy as the primary validation metric.
  • Do not put dev or test examples into few-shot prompts.
  • Do not report dev performance as final judge quality.
  • Do not validate code-based checks with LLM judge calibration.
  • Prefer domain-expert labels over generic outsourced labels for domain-specific criteria.
  • Revalidate after changing judge prompt or judge model.

Inputs This Skill Expects

  • Judge prompt and model.
  • Human-labeled examples with binary pass/fail labels for one failure mode.
  • Candidate few-shot examples.
  • Production judge outputs if aggregate success-rate correction is needed.

Output Contract

  • Provide train/dev/test split plan or actual split counts.
  • Report dev TPR/TNR during iteration and final test TPR/TNR once.
  • Summarize disagreement patterns and prompt changes.
  • State whether the judge is usable, needs revision, or should be decomposed.
  • Provide corrected production success estimate when requested.

Procedure

  1. Check label quality, balance, and failure-mode specificity.
  2. Create disjoint train, dev, and test splits.
  3. Run judge on dev and calculate TPR and TNR.
  4. Inspect disagreements and refine prompt using only training examples.
  5. Repeat until metrics stabilize.
  6. Run the judge once on held-out test data.
  7. Estimate corrected production pass rate and confidence interval if needed.

Pitfalls And Gotchas

  • Trusting an LLM judge because it sounds reasonable.
  • Using percent agreement with imbalanced labels.
  • Iterating after reading the test set.
  • Combining multiple failure modes into one vague judge.
  • Reporting a point estimate without uncertainty.

Progressive Disclosure

Start with one judge and one failure mode. Expand into bias correction, bootstrap intervals, model pinning, or judge decomposition only after the basic validation split and TPR/TNR measurement are in place.

Verification Pattern

  • Confirm human labels are available and binary for one failure mode.
  • Confirm train, dev, and test are disjoint.
  • Confirm TPR and TNR are calculated.
  • Confirm final test set is used once.
  • Confirm production aggregate claims use correction and uncertainty when needed.

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.