rag-assistant

rag-assistant is a skill for Claude Code, Codex from MerkyorLynn/Lynn. It costs 41 tokens per session (308 once invoked), scanned A, original, Apache-2.0.

A local knowledge-base assistant for answering questions from indexed private documents. It searches the stored documents, checks whether the results are relevant, and cites the source files in its answers.

In plain words
What is it for?
Use it to search indexed documents, compare multiple files, and answer questions based on private reports or other stored materials.
Why use it?
It separates information found in the user's documents from general knowledge and flags when the documents do not cover a question or disagree with each other.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search indexed documents, compare multiple files, and answer questions based on private reports or other stored materials.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/merkyorlynn/lynn/rag-assistant
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 MerkyorLynn/Lynn --skill rag-assistant
Clone the repo
git clone --depth 1 https://github.com/MerkyorLynn/Lynn

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/merkyorlynn/lynn/rag-assistant"><img src="https://agentmods.dev/badge/skills/merkyorlynn/lynn/rag-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 308 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00041 $0.00308
Opus 5 $0.00020 $0.00154
Sonnet 5 $0.00008 $0.00062
Haiku 4.5 $0.00004 $0.00031

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

Security

Grade A, and why

rag-assistant 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 9d 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.

plugins/rag-core/skills/rag-assistant/SKILL.md · 29 lines

What it actually says

RAG Assistant 知识库助手

当用户问题可能涉及已加入知识库的文档时,按以下流程执行:

检索流程

  1. 理解问题:提取核心实体和查询意图
  2. 调用 knowledge_query:传入精简后的查询词,top_k 取 5-7
  3. 评估相关性:若返回片段与用户问题无关,说明知识库未覆盖,改用 web_search
  4. 组织答案
    • 每个事实必须标注来源文件(如 📄 来源: xxx.pdf
    • 区分「知识库内容」和「通用知识」
    • 若多份文档观点冲突,需指出并总结

适用场景

  • "我之前上传的那份报告里怎么说?"
  • "对比文档 A 和文档 B 的结论"
  • "根据我的资料,总结一下 XX 的趋势"

不适用场景

  • 通用知识查询(直接用 web_search)
  • 未索引文档的内容(提示用户先使用 knowledge_index)
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. 9d ago First seen · 29 lines · 41 tokens per session scan A cc74a8792b41

Subscribe to this mod's changes

rag-assistant is a skill published in the GitHub repository MerkyorLynn/Lynn (42 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 308 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

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

docutranslate

Use when translating documents locally via LLM — PDF, Word, Excel, Markdown, SRT subtitles with format preservation. DocuTranslate: LLM-powered multi-format local file translation tool with MCP server support.

znlgis/opengis-skills · 47 tokens

leiloeiro-edital-ranbot-ai

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

ThomasMoreAI/legal-skills-open · 51 tokens

rag-knowledge-base

A local document search system that lets you add PDFs, Word files, Excel files, Markdown, and text, then ask questions about their contents. It finds relevant passages using both meaning-based and keyword search, then prepares context for an AI model.

xyva-yuangui/XyvaClaw · 0 tokens

document-qa

A document question-and-answer tool for PDFs, Word files, text, Markdown, CSV, and Excel files. It finds relevant passages in one file or a whole folder and uses a language model to answer questions.

xyva-yuangui/XyvaClaw · 53 tokens

vibeknow-doc

Upload documents to vectoria and check processing status. Use when: user wants to upload a document, check if a document is ready, or get a docid for use with vibeknow create.

vibeknow/cli · 46 tokens