agentleFS
sisodiabhumcasisodiabhumca/agent-skills/skills/ai-eval-regression-tester/SKILL.md

ai-eval-regression-tester

Skill0 starsChanged 5 months agoMITView on GitHub

Use to run a regression eval suite over an LLM application — fixed test cases with deterministic graders (exact match, JSON schema, regex, embedding similarity, LLM-as-judge). Compares the candidate model/prompt against a baseline and gates a release on pass rate + per-tag thresholds.

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:

    Always require deterministic graders before LLM-as-judge.

    line 46
  2. Distinctive:

    No silent retries on grader failures.

    line 49

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

AI Eval Regression Tester

When to invoke

  • "Run the eval suite for the new prompt version."
  • "Compare gpt-X vs the current baseline on our customer-support eval."
  • "Block release if eval pass rate drops below 95%."

Inputs needed

  1. Eval YAML / JSONL — list of cases with input, expected outputs, graders, tags.
  2. Candidate runner — Python callable / HTTP endpoint that takes input and returns output.
  3. Baseline run — JSONL of prior outputs (optional, for diffing).
  4. Pass thresholds — overall and per-tag.

Workflow

  1. Load cases.
  2. Run candidate over each case (parallelized).
  3. Grade with configured graders.
  4. Aggregate — pass rate overall + per tag + diff vs baseline.
  5. Gate — exit 1 if any threshold fails (CI-friendly).
  6. Report — Markdown + JSONL of every case for diffing.

Eval case schema

- id: refund_basic
  tags: [refund, policy]
  input: "How do I request a refund after 60 days?"
  graders:
    - type: contains
      values: ["return policy", "support team"]
    - type: not_contains
      values: ["sure thing", "lol"]
    - type: regex
      pattern: "policy"
    - type: json_schema
      schema:
        type: object
        required: [answer, citation]

Guardrails

  • Always require deterministic graders before LLM-as-judge.
  • LLM-judge results must include the judge's reasoning verbatim.
  • Per-case results must be logged to JSONL for forensics.
  • No silent retries on grader failures.

Reference code

run_eval.py runs cases in parallel, grades, diffs vs baseline, and exits with the right code.

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.