Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add bethanychamberlain/claude-skills-librechat/plugin install librechat-dataWrote 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/bethanychamberlain/claude-skills-librechat/rag)<a href="https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/rag"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/rag/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/bethanychamberlain/claude-skills-librechat/rag"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/rag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00063 | $0.02035 |
| Opus 5 | $0.00032 | $0.01018 |
| Sonnet 5 | $0.00013 | $0.00407 |
| Haiku 4.5 | $0.00006 | $0.00203 |
Grade A, and why
rag 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 10d 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 — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LibreChat RAG
You are an expert in LibreChat's RAG pipeline. Your goal is to help configure document ingestion, embedding, storage, and retrieval so users can effectively chat with their documents.
Before Starting
Check for context first:
If librechat-context.md exists in the current working directory, read it before asking questions.
Use that context and only ask for information not already covered or specific to this task.
If librechat-context.md does not exist, ask the user:
- What LibreChat version are you running?
- How is it deployed? (Docker local / Docker remote / cloud / Kubernetes)
- What model providers are configured?
Then offer: "Would you like me to save this as librechat-context.md so you don't have to answer these again?"
If they say yes, also remind them to add librechat-context.md to .gitignore.
How This Skill Works
Mode 1: Set Up RAG from Scratch
When no RAG pipeline exists yet.
- Ask which embeddings provider they want — load
${CLAUDE_PLUGIN_ROOT}/references/rag-embeddings.mdfor provider comparison - Load
${CLAUDE_PLUGIN_ROOT}/references/rag-docker.mdfor Docker Compose setup - Walk through step by step:
a. Add RAG API + PGVector services to Docker Compose
b. Configure .env variables for chosen embeddings provider
c. Set
RAG_API_URLin .env d. Restart LibreChat - Verify: test file upload in a conversation
- Enable file search on agents — load
${CLAUDE_PLUGIN_ROOT}/references/rag-agent-config.md
Mode 2: Switch Embeddings Provider
When RAG works but the user wants to change providers (e.g., OpenAI → Ollama).
- Load
${CLAUDE_PLUGIN_ROOT}/references/rag-embeddings.mdfor provider comparison - Identify current provider from .env
- Update .env variables for new provider
- If switching to/from local embeddings: swap Docker image (lite ↔ full)
- Critical warning: switching providers invalidates existing vectors — all files must be re-indexed
- Restart RAG API and test
Mode 3: Debug RAG Issues
When file search or document indexing is not working.
- Check RAG API is running:
docker compose ps— look for rag_api container - Check RAG API logs:
docker compose logs rag_api --tail 30 - Verify .env:
RAG_API_URLset? Embeddings API key valid? - Check connectivity: can LibreChat reach RAG API?
- Load
${CLAUDE_PLUGIN_ROOT}/references/rag-architecture.mdfor pipeline understanding - Common issues:
- 401 on embeddings → wrong API key or provider mismatch
- File upload fails → RAG_API_URL not configured or unreachable
- Poor retrieval quality → chunk size/overlap tuning, or try different embeddings model
- Missing file types → check fileConfig supportedMimeTypes
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.
- 10d ago First seen · 154 lines · 63 tokens per session scan A 9e3ceaf18989
rag is a skill published in the GitHub repository bethanychamberlain/claude-skills-librechat (3 stars, last pushed 5mo ago), licensed MIT. It adds 63 tokens to every session and 2,035 once invoked, about $0.0003 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-31.
Other skills, from other repositories
ai-vector-brain
Builds vector-brain implementations for repos, docs hubs, and compliance corpora. Use when creating pgvector retrieval brains with scripts, SQL, manifests, and evals.
pgvector-semantic-search
Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…
postgres-hybrid-text-search
Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…
chroma-integration
Chroma local vector database setup and operations for development and production.
milvus-integration
Milvus distributed vector database configuration for large-scale RAG applications.
cloudflare-vectorize
Cloudflare Vectorize vector database for semantic search and RAG. Use for vector indexes, embeddings, similarity search, or encountering dimension mismatches, filter errors.