agentleFS
BuilderCedBuilderCed/agent-skills/skills/eval/agent-eval-framework/SKILL.md

agent-eval-framework

Skill2 starsChanged 7 months agoMITView on GitHub

Evaluate AI agent outputs systematically using rubrics, assertions, and reference comparisons. Detect quality drift over time.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Before deploying an agent to production

    line 28
  2. Distinctive:

    After changing an agent's system prompt or skills

    line 29
  3. Distinctive:

    When agent output quality seems to degrade

    line 30
  4. Distinctive:

    When comparing two agent configurations

    line 32
  5. Distinctive:

    Run each test case through the agent

    line 102
  6. Distinctive:

    Does not test the LLM model itself (tests agent in context)

    line 154
  7. Distinctive:

    Does not perform adversarial red-teaming (different discipline)

    line 155
  8. Distinctive:

    Does not replace user feedback (complements it)

    line 156
  9. Distinctive:

    Does not measure latency or throughput (APM tools do this)

    line 157

≈ “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

Agent Evaluation Framework

When to Use

  • Before deploying an agent to production
  • After changing an agent's system prompt or skills
  • When agent output quality seems to degrade
  • During periodic quality reviews
  • When comparing two agent configurations

Step 1: Define Evaluation Criteria

Choose criteria relevant to your agent's purpose:

Universal Criteria

CriterionQuestionScore
CorrectnessIs the output factually/technically correct?0-10
CompletenessDoes it cover all required aspects?0-10
RelevanceIs every part relevant to the request?0-10
SafetyDoes it avoid harmful/insecure patterns?0-10

Code-Specific Criteria

CriterionQuestionScore
FunctionalityDoes the code work as intended?0-10
Edge CasesAre edge cases handled?0-10
StyleDoes it match project conventions?0-10
SecurityAre there vulnerabilities?0-10

Content-Specific Criteria

CriterionQuestionScore
AccuracyAre claims supported by evidence?0-10
ToneDoes it match the intended audience?0-10
StructureIs it well-organized?0-10
OriginalityDoes it avoid generic/cliche content?0-10

Step 2: Choose Evaluation Method

A. Assertion-Based (Automated)

Define pass/fail conditions:

ASSERT: output contains "disclaimer"
ASSERT: output does NOT contain "TODO"
ASSERT: code compiles without errors
ASSERT: response length < 2000 tokens
ASSERT: no PII detected in output

Best for: Regression testing, CI/CD pipelines.

B. Reference-Based (Semi-Automated)

Compare output against a known-good reference:

  • Exact match (strict)
  • Semantic similarity (using embeddings)
  • Key-point coverage (checklist)

Best for: Consistent tasks with known expected outputs.

C. Rubric-Based (Human + AI)

Score each criterion 0-10 with justification:

Correctness: 8/10 — Accurate but missed one edge case
Completeness: 7/10 — Covered 5 of 6 required points
Safety: 10/10 — No security issues
TOTAL: 25/30 (83%) — PASS (threshold: 70%)

Best for: Complex, subjective outputs.

Step 3: Run Evaluation

  1. Prepare 5-10 test cases covering:
    • Happy path (normal usage)
    • Edge cases (unusual inputs)
    • Adversarial inputs (injection, confusion)
    • Empty/minimal inputs
    • Maximum complexity inputs
  2. Run each test case through the agent
  3. Apply chosen evaluation method
  4. Record results with timestamps

Step 4: Set Thresholds

LevelScoreAction
Excellent>= 90%Ship
Good70-89%Ship with monitoring
Marginal50-69%Fix before shipping
Failing< 50%Do not ship

Step 5: Monitor Drift

Track these metrics over time:

  • Average score per criterion (weekly)
  • Pass rate on test suite (per deployment)
  • Token cost per task (per session)
  • User satisfaction signals (if available)

Drift signals:

  • Score drops >10% week-over-week
  • Pass rate drops below threshold
  • Token cost increases >20% without scope change
  • New failure modes not in original test suite

Output Format

AGENT EVAL REPORT
Agent: {name}
Date: {ISO-8601}
Test cases: {n}
Method: {assertion|reference|rubric}

Results:
  Pass: {n} ({%})
  Fail: {n} ({%})
  Average score: {x}/10

Per-criterion:
  Correctness:  {x}/10
  Completeness: {x}/10
  Safety:       {x}/10

Verdict: {PASS|MARGINAL|FAIL}
Recommendation: {ship|fix|block}

What This Skill Does NOT Do

  • Does not test the LLM model itself (tests agent in context)
  • Does not perform adversarial red-teaming (different discipline)
  • Does not replace user feedback (complements it)
  • Does not measure latency or throughput (APM tools do this)

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.