RAG Chunk Retriever

RAG Chunk Retriever is a skill for Claude Code, Codex from theshubh007/agent-skill-finder. It costs 69 tokens per session (713 once invoked), scanned A, original, MIT.

A retrieval skill that searches a prepared vector database—a search index built from document embeddings—for the document passages most relevant to a natural-language query.

In plain words
What is it for?
Use it to query Chroma, Pinecone, or Weaviate indexes, apply a relevance threshold, and return the top matching chunks with source attribution and retrieval timing.
Why use it?
It removes the need to scan an entire document collection manually and returns ranked passages with their source files and similarity scores for use in retrieval-augmented generation, where retrieved text supports an AI answer.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to query Chroma, Pinecone, or Weaviate indexes, apply a relevance threshold, and return the top matching chunks with source attribution and retrieval timing.

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

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 Chunk Retriever

README.md
[![agentmods](https://agentmods.dev/badge/skills/theshubh007/agent-skill-finder/rag-chunk-retriever/github.svg)](https://agentmods.dev/skills/theshubh007/agent-skill-finder/rag-chunk-retriever)
Your own site
<a href="https://agentmods.dev/skills/theshubh007/agent-skill-finder/rag-chunk-retriever"><img src="https://agentmods.dev/badge/skills/theshubh007/agent-skill-finder/rag-chunk-retriever/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 Chunk Retriever

Your own site · 80×15
<a href="https://agentmods.dev/skills/theshubh007/agent-skill-finder/rag-chunk-retriever"><img src="https://agentmods.dev/badge/skills/theshubh007/agent-skill-finder/rag-chunk-retriever.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 713 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.00069 $0.00713
Opus 5 $0.00034 $0.00357
Sonnet 5 $0.00014 $0.00143
Haiku 4.5 $0.00007 $0.00071

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

Security

Grade A, and why

RAG Chunk Retriever 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 12d 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-chunk-retriever/SKILL.md · 87 lines

What it actually says

What this skill does

Queries a pre-built vector database index to retrieve the top-k document chunks most relevant to the input query. Handles embedding the query using the same model used during indexing, performing ANN search, and filtering results by similarity score threshold. Returns results sorted by relevance with full source attribution for citation in the final LLM response.

Inputs

  • query — natural language question or search string
  • index_config — connection config: {provider, collection_name, api_key, environment}
  • top_k — number of chunks to return (default: 5)
  • score_threshold — minimum similarity score to include a chunk (default: 0.7, range: 0–1)

Outputs

  • chunks — list of {text, source_file, page, score, chunk_id} objects sorted by score descending
  • sources — deduplicated list of source file paths that contributed chunks
  • latency_ms — query latency in milliseconds (embedding + ANN search combined)

Supported vector databases

  • Chromaprovider: "chroma", runs locally or via ChromaDB server
  • Pineconeprovider: "pinecone", requires API key and environment
  • Weaviateprovider: "weaviate", requires cluster URL and API key

Example

config = {
    "provider": "chroma",
    "collection_name": "product_docs",
    "embedding_model": "text-embedding-3-small"
}
result = rag_chunk_retriever(
    query="How do I reset my password?",
    index_config=config,
    top_k=3,
    score_threshold=0.75
)
{
  "chunks": [
    {"text": "To reset your password, click Forgot Password on the login page...", "source_file": "docs/account.md", "score": 0.92},
    {"text": "Password reset emails expire after 24 hours...", "source_file": "docs/security.md", "score": 0.81}
  ],
  "sources": ["docs/account.md", "docs/security.md"],
  "latency_ms": 43
}
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. 12d ago First seen · 87 lines · 69 tokens per session scan A 7b5858ca7d0f

Subscribe to this mod's changes

RAG Chunk Retriever is a skill published in the GitHub repository theshubh007/agent-skill-finder (13 stars, last pushed 4mo ago), licensed MIT. It adds 69 tokens to every session and 713 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-30.

Related

Other skills, from other repositories

embeddings

Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support. 75x faster with agentic-flow integration. Use when: semantic search, pattern matching, similarity queries, knowledge retrieval. Skip when: exact text matching, simple lookups, no semantic understanding needed.

ruvnet/ruflo · 62 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

llm-app-patterns

Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.

davila7/claude-code-templates · 54 tokens

9router-embeddings

Generate vector embeddings via 9Router /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia / GitHub embedding models for RAG, semantic search, similarity. Use when the user wants embeddings, vectors, RAG, semantic search, or to embed text.

decolua/9router · 66 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens