Llm evaluation

From kumaran-is/claude-code-onboarding · View interactive version

Llm evaluation is an AI agent skill from the GitHub repository kumaran-is/claude-code-onboarding. 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 Lang

How to use this skill

Skill file

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

Metric Selection Quick Reference

| Eval Task | Primary Metric | Secondary Metric | When NOT to Use |

|-----------|---------------|-----------------|-----------------|

| RAG Retrieval | MRR, NDCG@K | Precision@K, Recall@K | When you have no relevance judgments |

| Text Generation (summarization) | ROUGE-L, BERTScore-F1 | BLEU | When output style matters more than content |

| Classification | F1 (macro) | Precision/Recall | When class imbalance makes accuracy misleading |

| A/B Prompt Comparison | Cohen's d effect size | p-value alone | When sample size < 30 |

| RAG Generation Quality | BERTScore + Groundedness | Perplexity | For 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

| File | Content | When to Use |

|------|---------|-------------|

| reference/evaluation-metrics.md | BLEU, ROUGE, BERTScore, RAG metrics (MRR, NDCG, Precision@K), classification metrics, custom groundedness | Implementing metrics for any eval task |

| reference/ab-testing.md | A/B test with t-test + Cohen's d, regression detector class, sample size calculator, CI/CD integration | Comparing prompts/models, detecting regressions |

| reference/evaluation-harness.md | Full eval harness for LangGraph agents and ADK agents, benchmark runner, inter-rater agreement | Building end-to-end eval pipeline |

| reference/trajectory-evaluation.md | 4-pillar evaluation (Effectiveness 40%, Efficiency 20%, Robustness 20%, Safety 20%), safety zero-tolerance, EvaluationResult structure, batch eval, pass/fail gates | Evaluating LangGraph agent trajectories end-to-end |

Post-Code Review

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.