Skills for Real Engineers. Straight from my .agents directory.
evaluate-rag
Agent skill fromai-evals-course/evals-skills
Guides evaluation of RAG pipeline retrieval and generation quality. Use when evaluating a retrieval-augmented generation system, measuring retrieval quality, assessing generation faithfulness or relevance, generating synthetic QA pairs for retrieval testing, or optimizing chunking strategies.
How to install evaluate-rag
npx skills add ai-evals-course/evals-skills# or add only this skill to Claude Code: copy the folder
skills/evaluate-rag/
# into
~/.claude/skills/evaluate-rag/ (all projects)
.claude/skills/evaluate-rag/ (one project)
1# Evaluate RAG23## Overview451. Do error analysis on end-to-end traces first. Determine whether failures come from retrieval, generation, or both.62. Build a retrieval evaluation dataset: queries paired with relevant document chunks.73. Measure retrieval quality with Recall@k (most important for first-pass retrieval).84. Evaluate generation separately: faithfulness (grounded in context?) and relevance (answers the query?).95. If retrieval is the bottleneck, optimize chunking via grid search before tuning generation.1011## Prerequisites1213Complete error analysis on RAG pipeline traces before selecting metrics. Inspect what was retrieved vs. what the model needed. Determine whether the problem is retrieval, generation, or both. Fix retrieval first.1415## Core Instructions1617### Evaluate Retrieval and Generation Separately1819Measure each component independently. Use the appropriate metric for each retrieval stage:2021- **First-pass retrieval:** Optimize for Recall@k. Include all relevant documents, even at the cost of noise.22- **Reranking:** Optimize for Precision@k, MRR, or NDCG@k. Rank the most relevant documents first.2324### Building a Retrieval Evaluation Dataset2526You need queries paired with ground-truth relevant document chunks.2728**Manual curation (highest quality):** Write realistic questions and map each to the exact chunk(s) containing the answer.29…
Excerpt shown under the repository's Apache-2.0 license.
More skills in evals-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
