Agent skill · Code Review & Quality

rag-eval

Use when the user has a RAG (Retrieval-Augmented Generation) system and wants to evaluate its quality — separating retrieval issues from generation issues. Also use when the user mentions RAG evaluation, faithfulness checking, hallucination detection in RAG, retrieval quality, chunking optimization, or "is my RAG pipeline working." Outputs a diagnostic matrix that pinpoints whether problems are in retrieval or generation.

AgentScope-AI33,120★ · +381/wk · 2 repos on radarProfile →
claude-codeships scriptsApache-2.0
Install
npx skills add agentscope-ai/OpenJudge --skill 05-rag-eval --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: yes
Path: skills/eval_pipeline/05-rag-eval/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 764
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# RAG Eval Evaluate RAG systems by diagnosing retrieval and generation separately. A single "RAG accuracy" number hides whether the problem is finding the right documents or using them correctly. This skill separates them so you know what to fix. ## When to Activate - User has a RAG pipeline (retriever + generator) with traces - User wants to know if their RAG system hallucinates - User is optimizing chunking strategy and needs before/after comparison - User wants to build a RAG evaluation dataset ## Checklist You MUST create a task for each item and complete them in order: 1. **Load RAG traces** — validate query + context + answer triples 2. **Separate retrieval vs generation** — determine which layers to evaluate 3. **Run faithfulness evaluation** — is the answer grounded in retrieved docs? 4. **Run retrieval evaluation** — are the right documents retrieved? 5. **Build diagnostic matrix** — cross-tabulate to find root cause 6. **Output findings** — prioritized issues with concrete fixes ## Fast path: run the bundled script Once each trace has a faithfulness judgment (and ideally a retrieval signal), build the retrieval-vs-generation diagnostic matrix with the bundled, tested scri

What's inside
Steps it walks through
  1. When to Activate
  2. Checklist
  3. Fast path: run the bundled script
  4. Step 1: Load RAG Traces
  5. Step 2: Separate Retrieval vs Generation
  6. Step 3: Faithfulness Evaluation
  7. Step 4: Retrieval Evaluation
  8. Chunking Optimization
  9. Step 5: Diagnostic Matrix
  10. Step 6: Output
  11. Common Mistakes
  12. Next Skills
Ships with 1 file
  • scripts/rag_diagnostic.py
Commands it runs
python scripts/rag_diagnostic.py --traces traces.jsonl
More from OpenJudge
All skills →
About this skill
What does the rag-eval skill do?

Use when the user has a RAG (Retrieval-Augmented Generation) system and wants to evaluate its quality — separating retrieval issues from generation issues. Also use when the user mentions RAG evaluation, faithfulness checking, hallucination detection in RAG, retrieval quality, chunking optimization, or "is my RAG pipeline working." Outputs a diagnostic matrix that pinpoints whether problems are in retrieval or generation.

How do I install it?

Run `npx skills add agentscope-ai/OpenJudge --skill 05-rag-eval --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From agentscope-ai/OpenJudge, a repository with 764 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going