rag-search

rag-search is a skill for Claude Code from MasihMoafi/rag-mcp. It costs 49 tokens per session (257 once invoked), scanned A, original, MIT.

A search tool for answering questions from documents and code stored on disk. RAG, or retrieval-augmented generation, finds relevant passages before the agent forms an answer.

In plain words
What is it for?
Use it to search PDFs, DOCX files, Markdown, source code, and other local text by asking focused questions.
Why use it?
It avoids reading whole folders or relying on noisy text searches when the needed information is buried in local files. It also keeps answers tied to the available documents.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rag plugin — 1 skill, 1 command, 1 MCP server shipped together

Good fit Use it to search PDFs, DOCX files, Markdown, source code, and other local text by asking focused questions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masihmoafi/rag-mcp/rag-search
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.

Any agent
npx skills add MasihMoafi/rag-mcp --skill rag-search
Clone the repo
git clone --depth 1 https://github.com/MasihMoafi/rag-mcp

Made for: Claude Code.

Or install rag, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 MCP server.

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-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/masihmoafi/rag-mcp/rag-search/github.svg)](https://agentmods.dev/skills/masihmoafi/rag-mcp/rag-search)
Your own site
<a href="https://agentmods.dev/skills/masihmoafi/rag-mcp/rag-search"><img src="https://agentmods.dev/badge/skills/masihmoafi/rag-mcp/rag-search/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.

agentmods 80×15 button for rag-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/masihmoafi/rag-mcp/rag-search"><img src="https://agentmods.dev/badge/skills/masihmoafi/rag-mcp/rag-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00049 $0.00257
Opus 5.5 $0.00020 $0.00103
Sonnet 5.5 $0.00010 $0.00051
Haiku 4.5 $0.00005 $0.00026

Measured yesterday against content hash 4270d2fdc8be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rag-search 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 yesterday.

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-plugin/skills/rag-search/SKILL.md · 17 lines

What it actually says

Use the query_knowledge_base tool from the rag MCP server.

  1. Pick the smallest file or subdirectory likely to hold the answer and pass it as doc_path. Never point it at a repository or workspace root by default.
  2. Ask a specific question. If the evidence is thin, retry with exact terms or synonyms before widening the scope.
  3. For "is X mentioned anywhere" or coverage claims, ask several differently worded questions; one miss is not proof of absence.
  4. On a scan-limit error, narrow doc_path and continue.
  5. Use extensions (for example [".md"]) to filter a directory by file type.

To inspect or change the pipeline (embedding model, reranker, number of passages), use get_rag_settings / set_rag_settings, or the /rag command. Never put API keys in chat; the user runs rag setup in a terminal.

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. yesterday First seen · 17 lines · 49 tokens per session scan A 4270d2fdc8be

Subscribe to this mod's changes

rag-search is a skill published in the GitHub repository MasihMoafi/rag-mcp (7 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 257 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-10-16.

Related

Other skills, from other repositories

markitdown

Converts heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 62 tokens

llamaindex

Data framework for building LLM applications with RAG. Specializes in document ingestion (300+ connectors), indexing, and querying. Features vector indices, query engines, agents, and multi-modal support. Use for document Q&A, chatbots, knowledge retrieval, or building RAG pipelines. Best for data-centric LLM…

davila7/claude-code-templates · 70 tokens

xberg-picking-a-format

Use when choosing an output format for extracted documents — plain text, markdown, djot, HTML, JSON, or DocTags. Maps consumer (LLM, parser, archive) to the right --format / --content-format pair.

xberg-io/xberg · 51 tokens

kb-retriever

A retrieval and question-answering assistant for a local folder of documents, including Markdown, text, PDFs, and spreadsheets.

ConardLi/garden-skills · 105 tokens

azure-ai

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

microsoft/skills · 76 tokens

bailian-kb

A command-line manager for Alibaba Cloud Bailian knowledge bases, which are collections of documents prepared for search and question answering. It handles the stored documents, search services, text chunks, and data-centre files rather than everyday searches.

modelstudioai/cli · 234 tokens