Skills for Real Engineers. Straight from my .agents directory.
rag-eval
Agent skill fromagentscope-ai/OpenJudge
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 to install rag-eval
npx skills add agentscope-ai/OpenJudge# or add only this skill to Claude Code: copy the folder
skills/eval_pipeline/05-rag-eval/
# into
~/.claude/skills/05-rag-eval/ (all projects)
.claude/skills/05-rag-eval/ (one project)
1# RAG Eval23Evaluate RAG systems by diagnosing retrieval and generation separately. A single4"RAG accuracy" number hides whether the problem is finding the right documents or5using them correctly. This skill separates them so you know what to fix.67## When to Activate89- User has a RAG pipeline (retriever + generator) with traces10- User wants to know if their RAG system hallucinates11- User is optimizing chunking strategy and needs before/after comparison12- User wants to build a RAG evaluation dataset1314## Checklist1516You MUST create a task for each item and complete them in order:17181. **Load RAG traces** — validate query + context + answer triples192. **Separate retrieval vs generation** — determine which layers to evaluate203. **Run faithfulness evaluation** — is the answer grounded in retrieved docs?214. **Run retrieval evaluation** — are the right documents retrieved?225. **Build diagnostic matrix** — cross-tabulate to find root cause236. **Output findings** — prioritized issues with concrete fixes2425## Fast path: run the bundled script2627Once each trace has a faithfulness judgment (and ideally a retrieval signal), build the28retrieval-vs-generation diagnostic matrix with the bundled, tested script29(`scripts/rag_diagnostic.py`, standard library only, **no OpenJudge dependency**):3031```bash32python scripts/rag_diagnostic.py --traces traces.jsonl33```3435Trace rows: `{"faithful":bool}` or `{"faithfulness_score":1-5}` (>= 4 = faithful), plus an36…
Excerpt shown under the repository's Apache-2.0 license.
More skills in OpenJudge
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
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
Production-grade engineering skills for AI coding agents.
