rag-assess-quality

rag-assess-quality is a command for Claude Code from codingthefuturewithai/rag-retriever. It costs 0 tokens per session (908 once invoked), scanned A, original, MIT.

A command for checking the quality, accuracy, and consistency of documents stored in RAG Retriever collections. RAG means giving an AI relevant stored documents so it can answer questions with that context.

In plain words
What is it for?
It helps review collections by testing known topics, checking factual accuracy, and comparing answers across collections. It requires the RAG Retriever MCP server to be configured.
Why use it?
Poor, outdated, incomplete, or conflicting documents can lead to incorrect AI answers. This helps identify those problems before they affect search results.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Install

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.

agentmods
npx agentmods add commands/codingthefuturewithai/rag-retriever/rag-assess-quality
Clone the repo
git clone --depth 1 https://github.com/codingthefuturewithai/rag-retriever

Made for: Claude Code.

Wrote 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.

agentmods badge for rag-assess-quality

README.md
[![agentmods](https://agentmods.dev/badge/commands/codingthefuturewithai/rag-retriever/rag-assess-quality.svg)](https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/rag-assess-quality)
Your own site
<a href="https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/rag-assess-quality"><img src="https://agentmods.dev/badge/commands/codingthefuturewithai/rag-retriever/rag-assess-quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 908 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00908
Opus 5 $0.00000 $0.00454
Sonnet 5 $0.00000 $0.00182
Haiku 4.5 $0.00000 $0.00091

Measured 6d ago against content hash 939e4e5c21e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

rag-assess-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 6d 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.

.claude/commands/rag-assess-quality.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Assess Content Quality in RAG Retriever

Evaluate the quality, accuracy, and reliability of content in your RAG Retriever collections to ensure high-quality search results.

Prerequisites

This command requires the RAG Retriever MCP server to be configured in your Claude Code setup.

Implementation Approach

This command uses direct implementation for systematic quality assessment of indexed content.

Your Task

1. Quality Assessment Overview

CRITICAL: Poor quality, outdated, or contradictory documentation corrupts your knowledge base and leads to wrong answers. Quality assessment is essential for reliable RAG systems.

2. Pre-Assessment Setup

  • Use list_collections to get overview of all collections
  • Identify collections that need quality assessment
  • Choose representative topics for each collection to test

3. Systematic Quality Testing

For each collection, perform these tests:

A. Accuracy Testing

  • Search for 3-5 topics you know well in each collection
  • Verify that answers are factually correct
  • Check for incomplete or misleading information

B. Consistency Testing

  • Search for the same topic across different collections
  • Look for contradictory information
  • Identify conflicting recommendations or facts

C. Currency Testing

  • Search for version-specific information (e.g., "Python 3.12 features")
  • Check if results reflect current vs. outdated information
  • Look for deprecated methods or obsolete practices

D. Relevance Testing

  • Monitor search relevance scores consistently
  • Collections with scores consistently below 0.3 indicate quality issues
  • Test edge cases and less common topics

4. Quality Issues to Flag

  • Contradictory information: Same topic, different answers
  • Outdated content: Old versions, deprecated features
  • Incomplete information: Partial explanations, missing context
  • Poor source quality: Unreliable or low-authority sources
  • Duplicate content: Same information indexed multiple times

Read the full file on GitHub · 103 lines

Changes

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.

  1. 6d ago First seen · 103 lines · 0 tokens per session scan A 939e4e5c21e4

Subscribe to this mod's changes

rag-assess-quality is a command published in the GitHub repository codingthefuturewithai/rag-retriever (27 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 908 tokens. 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.