llm-evaluation
Skill0 starsChanged 8 months agoMITView on GitHub
How to evaluate LLM and agent systems — golden sets, offline/online evals, LLM-as-judge, regression in CI, and guardrails. Use when measuring or improving the quality, reliability, or cost of any LLM-backed feature.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- SkillMedev/ai-engineer-toolkittheir own version, first seen Oct 5, 2026
- Red-empty-potato/ai-agent-skillstheir own version, first seen Aug 29, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Jul 14, 2026
- ckorhonen/claude-skillstheir own version, first seen Jul 5, 2026
- sohaibdevv/AI-AGENT-SKILLStheir own version, first seen Jun 14, 2026
- kumaran-is/claude-code-onboardingtheir own version, first seen May 25, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- stefan-jansen/claude-code-toolkit★ 87same name
- kumaran-is/claude-code-onboarding★ 36same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- ckorhonen/claude-skills★ 18same name
- xfstudio/skills★ 9same name
- ai4brands-design/claude-skills★ 2same name
- CodeWithBehnam/cc-docs★ 2same name
- sohaibdevv/AI-AGENT-SKILLS★ 2same name
- yiweiwan/skills★ 1same name
- kienbui1995/magic-powers★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-patternsSkill
- architectureSkill
- brainstormingSkill
- clean-codeSkill
- code-review-checklistSkill
- database-designSkill
- data-engineeringSkill
- frontend-designSkill
- mcp-builderSkill
- memory-managementSkill
- react-best-practicesSkill
- nodejs-best-practicesSkill
- observabilitySkill
- parallel-agentsSkill
- powershell-windowsSkill
- prompt-engineeringSkill
- python-patternsSkill
- rag-patternsSkill
- seo-fundamentalsSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- vulnerability-scannerSkill
- webapp-testingSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
2
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
- Distinctive: line 46
Use a strong model as judge.
- Very specific: line 50
Run the golden set on every prompt/model/config change.
- Distinctive: line 57
Check for injection, PII leakage, and out-of-policy content before returning.
“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.
Files
LLM Evaluation
You can't improve what you don't measure — and "it looked good in the demo" isn't measurement.
Overview
LLM outputs are non-deterministic and easy to regress silently. Evals turn "feels better" into evidence, and catch regressions before users do. Build the eval before you tune the prompt.
Build a Golden Set First
- 20–100 real, representative input → expected-outcome pairs.
- Include the hard cases: edge inputs, known past failures, adversarial/injection attempts.
- Version it next to the code; grow it every time you find a new failure in production.
Offline vs Online
| Type | When | What it answers |
| Offline | Pre-deploy, in CI | "Did this change improve/regress the golden set?" |
| Online | In production | "How is it doing on real, live traffic?" |
Picking a Metric
| Output kind | Metric |
| Single correct answer (extraction, classification) | Exact / set match, F1 |
| Open-ended text | Rubric scoring (often LLM-as-judge) or human review |
| RAG answer | Faithfulness + answer relevance (see rag-patterns) |
| Agent/tool use | Task success rate, steps, tool-call correctness |
| All of the above | Latency and cost per request — always track |
LLM-as-Judge (use with care)
Powerful for open-ended outputs, but has known biases:
- Give the judge an explicit rubric and ask for a score + justification.
- Watch for position bias (order of A/B), verbosity bias (longer ≈ "better"), and self-preference.
- Calibrate the judge against human labels on a sample before trusting it.
- Use a strong model as judge; prefer pairwise comparison over absolute scores when possible.
Put It in CI
- Run the golden set on every prompt/model/config change.
- Fail the build on a regression beyond a threshold.
- Track score, latency, and cost over time — a quality win that triples cost is a trade, not a win.
Guardrails (runtime checks)
- Validate structured output against its schema; retry or fall back on failure.
- Check for injection, PII leakage, and out-of-policy content before returning.
- Log inputs/outputs (with privacy controls) so production failures become new golden-set cases.
Anti-Patterns
| ❌ | ✅ |
| Eyeballing one example | Score a versioned golden set |
| Trusting LLM-judge blind | Calibrate against humans; control for bias |
| Optimizing quality only | Track quality and cost/latency together |
| Evals as a one-time gate | Continuous evals in CI + online monitoring |
| Discarding prod failures | Feed every failure back into the golden set |
Ship the eval with the feature. The golden set is the spec.
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
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.

