rag-pipelines

rag-pipelines is a skill for Claude Code, Codex from neverinfamous/memory-journal-mcp. It costs 38 tokens per session (285 once invoked), scanned A, original, MIT.

Design patterns for retrieval-augmented generation (RAG), where an AI application searches stored documents and adds relevant passages to its prompt before answering.

In plain words
What is it for?
Use it to split documents into meaningful sections, create embeddings, combine semantic and keyword search, rerank results, select useful passages, and require citations from retrieved content.
Why use it?
It helps reduce missed relevant text, weak search results, and answers based on the model’s memory instead of the required documents.

Skill for Claude CodeCodex

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

Good fit Use it to split documents into meaningful sections, create embeddings, combine semantic and keyword search, rerank results, select useful passages, and require citations from retrieved content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/rag-pipelines
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 neverinfamous/memory-journal-mcp --skill rag-pipelines
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/rag-pipelines"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/rag-pipelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 285 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.00038 $0.00285
Opus 5 $0.00019 $0.00143
Sonnet 5 $0.00008 $0.00057
Haiku 4.5 $0.00004 $0.00028

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

Security

Grade A, and why

rag-pipelines 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.

skills/rag-pipelines/SKILL.md · 15 lines

What it actually says

RAG Pipelines

Core Concepts

  • Chunking: Chunk by semantics or document structure, not just fixed lengths. Avoid naive character-based chunking. Use semantic chunking (splitting at sentence/paragraph boundaries) or structure-aware chunking (e.g., Markdown header splitting).
  • Embeddings: Select appropriate models (e.g. text-embedding-3-small).
  • Retrieval: Use hybrid search (vector + keyword) and re-ranking for optimal precision. Do not rely purely on dense vector embeddings. Combine vector search (for semantic meaning) with keyword search (BM25 for exact matches/IDs/names) using Reciprocal Rank Fusion (RRF). Always add a cross-encoder reranking step after initial retrieval. Retrieve a larger pool of documents (e.g., top-20) and rerank them to select the top-5 most relevant chunks to inject into the prompt.
  • Context Injection: Carefully format retrieved chunks into the prompt for maximum LLM attention. Instruct the LLM to cite specific retrieved chunks in its response. Reject answers that rely on pre-trained knowledge if the task requires strict adherence to retrieved context.
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. 10d ago First seen · 15 lines · 38 tokens per session scan A 8fa3b803b6a9

Subscribe to this mod's changes

rag-pipelines is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 285 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

setup-open-index

Install and configure Open Index as the read/write context layer for a domain-specialized agent. Use when setting up a legal, marketing, customer support, sales, infrastructure, or other domain agent with Open Index over MCP.

DrDroidLab/open-index · 48 tokens

citation-system

A Chinese-language guide for designing systems that show where information comes from, such as document question-answering or search-based answers. It covers inline source markers, keeping citations during rewrites, and making factual claims traceable.

kangarooking/system-prompt-skills · 101 tokens

go4

Use when designing, architecting, planning, or debugging any system with an LLM in it — agents, agent loops, RAG and retrieval, prompt pipelines, multi-agent or subagent orchestration, tool use and MCP, memory and context management, evals, or production guardrails. Trigger BEFORE committing to an approach — choosing…

jlldavies/go4-llm-design-patterns · 141 tokens

embeddings

Inspect or switch how br8n embeds text for semantic search — remote (API key) or local (keyless, on-device ONNX). Use when the user asks why search returns nothing, wants search to work without an API key, wants to stop paying for embeddings, or asks which embedding model br8n is using.

anthonysuherli/br8n · 69 tokens

wuji-data-suite

Unified data Skill for statistical analysis, anomaly detection, spreadsheet evidence, dataset exploration, and retrieval-augmented analysis. Use for data questions and choose the analysis method internally from the complete retained packages.

AI-wuji/wuji-legion-codex · 44 tokens

rag-vs-context-engineering

Decide between RAG, long-context, structured tool retrieval, and prompt-only approaches for grounding an LLM in private or fresh data. Use when the user is designing a knowledge-grounded agent or chatbot and mentions RAG, vector search, embeddings, retrieval, chunking, long context, context window, tool retrieval…

cobusgreyling/agent-skills · 98 tokens