Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add lyonzin/knowledge-rag --skill rag-evaluate-qualitygit clone --depth 1 https://github.com/lyonzin/knowledge-ragWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lyonzin/knowledge-rag/rag-evaluate-quality)<a href="https://agentmods.dev/skills/lyonzin/knowledge-rag/rag-evaluate-quality"><img src="https://agentmods.dev/badge/skills/lyonzin/knowledge-rag/rag-evaluate-quality/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lyonzin/knowledge-rag/rag-evaluate-quality"><img src="https://agentmods.dev/badge/skills/lyonzin/knowledge-rag/rag-evaluate-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.01238 |
| Opus 5.5 | $0.00021 | $0.00495 |
| Sonnet 5.5 | $0.00010 | $0.00248 |
| Haiku 4.5 | $0.00005 | $0.00124 |
Grade A, and why
rag-evaluate-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rag-evaluate-quality — measure, do not guess
Use this workflow when the user asks to evaluate retrieval, after a relevant change, or as part of an already authorized recurring evaluation. Do not infer that every session needs a benchmark or that invoking this skill creates a recurring schedule.
Workflow
-
Call
get_index_stats(). The response contains astatsobject. Recordstats.total_documents,stats.total_chunks,stats.embedding_model,stats.embedding_dim, andstats.query_cache.hit_rate. The cache rate describes repeated-query reuse, not relevance. -
Reuse an independently selected evaluation set, or prepare questions with known answer documents. Each case has one non-empty question and one non-empty expected path:
[ {"query": "authentication design", "expected_filepath": "docs/adr/0018-auth.md"}, {"query": "retry policy", "expected_filepath": "docs/adr/0031-retries.md"} ]These are illustrative paths. Verify that expected documents exist in the actual corpus. Do not derive the expected answer from whichever source the current search happens to rank first.
-
Serialize the array as a JSON string and pass the
test_casesparameter:import json cases = [ {"query": "authentication design", "expected_filepath": "docs/adr/0018-auth.md"}, {"query": "retry policy", "expected_filepath": "docs/adr/0031-retries.md"}, ] evaluate_retrieval(test_cases=json.dumps(cases))The MCP tool returns
mrr_at_5,recall_at_5,total_queries, andper_query. It does not return Precision@5. Invalid cases are rejected before searches execute. -
Inspect individual misses and rank changes before interpreting aggregates:
Metric Meaning MRR@5 Mean reciprocal rank of the expected document; a miss contributes zero Recall@5 Fraction of cases whose expected document occurs in the first five results found_at_rankRank for each case, or null if the expected document was not found
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 16d ago Changed eb4292503a1c
- 24d ago Changed 4356fd152a53
- 1mo ago Changed · -120 lines · -26 tokens per session 0d6fd431c93f
- 3mo ago First seen · 213 lines · 78 tokens per session scan A f538e3762fdc
rag-evaluate-quality is a skill published in the GitHub repository lyonzin/knowledge-rag (308 stars, last pushed 3d ago), licensed MIT. It adds 52 tokens to every session and 1,238 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
rag-evaluate-quality compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rag-evaluate-qualitylyonzin/knowledge-rag | Skill | 308 | 3d ago | MIT | A | 52 | Claude Code, Codex |
| pinecone:full-text-searchpinecone-io/pinecone-claude-code-plugin | Skill | 69 | 18d ago | MIT | A | 180 | Claude Code |
| pinecone:n8npinecone-io/pinecone-claude-code-plugin | Skill | 69 | 18d ago | MIT | A | 67 | Claude Code |
| pinecone:quickstartpinecone-io/pinecone-claude-code-plugin | Skill | 69 | 18d ago | MIT | A | 94 | Claude Code |
| pinecone:clipinecone-io/pinecone-claude-code-plugin | Skill | 69 | 18d ago | MIT | A | 75 | Claude Code |
| pinecone:mcppinecone-io/pinecone-claude-code-plugin | Skill | 69 | 18d ago | MIT | A | 80 | Claude Code |
| helppinecone-io/gemini-cli-extension | Skill | 23 | 8d ago | MIT | A | 50 | Claude Code, Codex |