rag-retrieval

rag-retrieval is a skill for Claude Code from yonatangross/orchestkit. It costs 58 tokens per session (4,397 once invoked), scanned A, original, MIT.

A guide to retrieval-augmented generation, a way for an AI system to find relevant information and use it when writing a response. It covers document retrieval, embeddings, hybrid search, reranking, and PostgreSQL vector search.

In plain words
What is it for?
Use it when building RAG pipelines, search over documents, citation-aware responses, multimodal retrieval, or agentic retrieval systems.
Why use it?
It helps address responses that lack the right source context by organizing ways to find, select, and supply supporting information to a language model.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the ork plugin — 111 skills, 38 commands, 36 agents, 32 hooks shipped together

Good fit Use it when building RAG pipelines, search over documents, citation-aware responses, multimodal retrieval, or agentic retrieval systems.

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

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 111 skills, 38 commands, 36 agents, 32 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/rag-retrieval"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/rag-retrieval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,397 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
  • Socket pass 29 Sept 2026
  • Snyk warn 29 Sept 2026
  • 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.00058 $0.04397
Opus 5.5 $0.00023 $0.01759
Sonnet 5.5 $0.00012 $0.00879
Haiku 4.5 $0.00006 $0.00440

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

Security

Grade A, and why

rag-retrieval 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 13d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (examples/chatbot-with-rag-example.ts, scripts/chunk-repository.py, scripts/rag-pipeline-template.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/ork/skills/rag-retrieval/SKILL.md · 352 lines

How it starts

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

RAG Retrieval

Comprehensive patterns for building production RAG systems. Each category has individual rule files in rules/ loaded on-demand.

House thresholds, fusion ordering, and the latency and quality budgets we assert live in House delta below. Vendor documentation is linked, not restated (see Upstream coverage).

Quick Reference

Category Rules Impact When to Use
Core RAG 4 CRITICAL Basic RAG, citations, hybrid search, context management
Embeddings 3 HIGH Model selection, chunking, batch/cache optimization
Contextual Retrieval 3 HIGH Context-prepending, hybrid BM25+vector, pipeline
HyDE 3 HIGH Vocabulary mismatch, hypothetical document generation
Agentic RAG 4 HIGH Self-RAG, CRAG, knowledge graphs, adaptive routing
Multimodal RAG 3 MEDIUM Image+text retrieval, PDF chunking, cross-modal search
Query Decomposition 3 MEDIUM Multi-concept queries, parallel retrieval, RRF fusion
Reranking 3 MEDIUM Cross-encoder, LLM scoring, combined signals
PGVector 4 HIGH PostgreSQL hybrid search, HNSW indexes, schema design

Total: 30 rules across 9 categories

Core RAG

Fundamental patterns for retrieval, generation, and pipeline composition.

Rule File Key Pattern
Basic RAG rules/core-basic-rag.md Retrieve + context + generate with citations
Hybrid Search rules/core-hybrid-search.md RRF fusion (k=60) for semantic + keyword
Context Management rules/core-context-management.md Token budgeting + sufficiency check
Pipeline Composition rules/core-pipeline-composition.md Composable Decompose → HyDE → Retrieve → Rerank

Embeddings

Embedding models, chunking strategies, and production optimization.

Read the full file on GitHub · 352 lines

Files

What ships with it

42 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago Changed · -1 lines f462879df6d4
  2. 21d ago Changed · -5 lines 7d2f20d5aa9a
  3. 22d ago Changed · -1 lines ef83631f74d7
  4. 1mo ago Changed 22f7e7342610
  5. 1mo ago First seen · 359 lines · 58 tokens per session scan A a858fb8a4bc5

Subscribe to this mod's changes

rag-retrieval is a skill published in the GitHub repository yonatangross/orchestkit (298 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 4,397 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-09-05.

Related

Other skills, from other repositories

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

neurolink-guide

Guide for using the NeuroLink SDK and CLI. Invoke when users ask how to use neurolink, integrate AI providers, add MCP tools, configure RAG, set up memory, deploy servers, or work with multimodal content. Covers SDK, CLI, providers, tools, and enterprise features.

juspay/neurolink · 65 tokens

langchain

Use when building LLM applications with LangChain — LCEL chains (prompt | model | parser), tool-calling agents via createagent, @tool definitions, RAG pipelines (loaders, splitters, vector stores, retrievers), short-term memory with LangGraph checkpointers, and GIS workflows such as natural-language PostGIS queries or…

znlgis/opengis-skills · 93 tokens

ai-engineer

Builds production AI/ML systems — model training, fine-tuning, MLOps pipelines, model serving, evaluation frameworks, RAG optimization, and agent orchestration at scale. Use when the user asks to build, train, or deploy ML models, set up MLOps pipelines, optimize RAG systems, create inference endpoints, or design…

buiphucminhtam/forgewright · 78 tokens

pn-rag-evaluation

Evaluate retrieval-augmented generation pipelines — golden sets, automated metrics (incl. RAGAS-style), human rubrics, regression gates in CI. Use when building or changing RAG (chunks, embeddings, rerankers, prompts) and need quality proof, not vibes.

perniemann/pnCore · 62 tokens

ai-engineer

Build production-ready LLM applications, advanced RAG systems, and intelligent agents. Implements vector search, multimodal AI, agent orchestration, and enterprise AI integrations. Use PROACTIVELY for LLM features, chatbots, AI agents, or AI-powered applications.

curiositech/windags-skills · 58 tokens