agentleFS
kumaran-iskumaran-is/claude-code-onboarding/.claude/skills/llm-evaluation/SKILL.md

llm-evaluation

Skill36 starsChanged 6 months agoMITView on GitHub

Implement comprehensive evaluation strategies for LLM applications — automated metrics (BLEU, ROUGE, BERTScore, RAG metrics), A/B testing with statistical rigor, regression detection, and benchmarking. Use when measuring agent quality, comparing models or prompts, or building eval pipelines for LangGraph or Google ADK agents.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use prompt-engineering.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • kongyo2Skill

    prompt-engineering

    Comprehensive prompt engineering framework for designing, optimizing, and iterating LLM prompts. This skill should be used when users request prompt creation, optimization, or improvement for any LLM task, or when users need help translating vague requirements into effective prompts through collaborative dialogue and iterative refinement.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    After implementing any eval pipeline, dispatch the agentic-ai-reviewer agent to verify:

    line 64
  2. Distinctive:

    No silent metric failures (every metric error must surface, not default to 0.0)

    line 68

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

Iron Law

NO EVALUATION CONCLUSION WITHOUT A BASELINE — comparing model A to model B means nothing without a defined baseline and statistical test. Every eval claim requires: metric name, sample size, statistical significance (p < 0.05), and effect size.

LLM Evaluation Skill — Python 3.14 + LangGraph + Google ADK

When to Use This Skill

  • Measuring quality of a RAG agent's retrieval or generation output
  • Comparing two prompt variants or model versions before promoting to production
  • Detecting metric regressions in CI after code or model changes
  • Building an automated eval harness for a LangGraph or Google ADK agent
  • Selecting the right metric family for a given eval task (retrieval vs generation vs classification)
  • Establishing baseline scores before any optimization work
  • Setting up inter-rater agreement to validate human evaluation labels

Metric Selection Quick Reference

Eval TaskPrimary MetricSecondary MetricWhen NOT to Use
RAG RetrievalMRR, NDCG@KPrecision@K, Recall@KWhen you have no relevance judgments
Text Generation (summarization)ROUGE-L, BERTScore-F1BLEUWhen output style matters more than content
ClassificationF1 (macro)Precision/RecallWhen class imbalance makes accuracy misleading
A/B Prompt ComparisonCohen's d effect sizep-value aloneWhen sample size < 30
RAG Generation QualityBERTScore + GroundednessPerplexityFor factual domain QA

Framework Decision Tree

What are you evaluating?
├── Retrieval quality (RAG) → reference/evaluation-metrics.md#rag-metrics
├── Text generation quality → reference/evaluation-metrics.md#text-generation
├── Comparing two prompts/models → reference/ab-testing.md
├── Detecting regression vs baseline → reference/ab-testing.md#regression
├── Building full eval harness → reference/evaluation-harness.md
└── Evaluating agent trajectory (tool calls, reasoning steps) → reference/trajectory-evaluation.md

Reference Files

FileContentWhen to Use
reference/evaluation-metrics.mdBLEU, ROUGE, BERTScore, RAG metrics (MRR, NDCG, Precision@K), classification metrics, custom groundednessImplementing metrics for any eval task
reference/ab-testing.mdA/B test with t-test + Cohen's d, regression detector class, sample size calculator, CI/CD integrationComparing prompts/models, detecting regressions
reference/evaluation-harness.mdFull eval harness for LangGraph agents and ADK agents, benchmark runner, inter-rater agreementBuilding end-to-end eval pipeline
reference/trajectory-evaluation.md4-pillar evaluation (Effectiveness 40%, Efficiency 20%, Robustness 20%, Safety 20%), safety zero-tolerance, EvaluationResult structure, batch eval, pass/fail gatesEvaluating LangGraph agent trajectories end-to-end

Post-Code Review

After implementing any eval pipeline, dispatch the agentic-ai-reviewer agent to verify:

  • Statistical assumptions are met (sample size, normality, independence)
  • Baseline is committed and versioned (not ephemeral)
  • Regression thresholds are documented and justified
  • No silent metric failures (every metric error must surface, not default to 0.0)

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.