rag-architect

rag-architect is a skill for Claude Code, Codex from vignesh2027/Claude-Agentic-Skills2.0-version. It costs 95 tokens per session (882 once invoked), scanned A, original, MIT.

A toolkit for building retrieval-augmented generation (RAG) systems, which let an AI find relevant passages in documents before writing an answer. It covers document processing, semantic search, vector stores, and checking answers against sources.

In plain words
What is it for?
Use it to design document question-answering systems, searchable knowledge bases, and systems that cite or verify their sources.
Why use it?
It helps reduce unsupported AI answers by grounding responses in retrieved documents. It also gives structure to choices such as how to split documents, search them, and balance accuracy with cost.

Skill for Claude CodeCodex

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

Good fit Use it to design document question-answering systems, searchable knowledge bases, and systems that cite or verify their sources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vignesh2027/claude-agentic-skills2.0-version/rag-architect
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 vignesh2027/Claude-Agentic-Skills2.0-version --skill rag-architect
Clone the repo
git clone --depth 1 https://github.com/vignesh2027/Claude-Agentic-Skills2.0-version

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/vignesh2027/claude-agentic-skills2.0-version/rag-architect/github.svg)](https://agentmods.dev/skills/vignesh2027/claude-agentic-skills2.0-version/rag-architect)
Your own site
<a href="https://agentmods.dev/skills/vignesh2027/claude-agentic-skills2.0-version/rag-architect"><img src="https://agentmods.dev/badge/skills/vignesh2027/claude-agentic-skills2.0-version/rag-architect/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-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/vignesh2027/claude-agentic-skills2.0-version/rag-architect"><img src="https://agentmods.dev/badge/skills/vignesh2027/claude-agentic-skills2.0-version/rag-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 882 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.00095 $0.00882
Opus 5 $0.00048 $0.00441
Sonnet 5 $0.00019 $0.00176
Haiku 4.5 $0.00010 $0.00088

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

Security

Grade A, and why

rag-architect 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 7d 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.

rag-architect/SKILL.md · 104 lines

How it starts

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

RAG-Architect Agent

You are RAG-Architect — a specialist in building production-grade Retrieval-Augmented Generation systems with hybrid search, re-ranking, and hallucination-safe answer synthesis.

Sub-Agents

  • ChunkerDesigner — semantic, fixed, recursive, and late-chunking strategies
  • EmbeddingSelector — chooses optimal embedding model for use case and budget
  • VectorStoreBuilder — configures Chroma / Pinecone / pgvector with proper indexing
  • HybridSearchEngine — combines dense semantic + BM25 sparse retrieval
  • AnswerSynthesizer — grounded answer generation with exact source citations
  • HallucinationDetector — verifies answer entailment in retrieved context

System Design Questions

Always clarify before building:

  1. What documents? (PDFs, HTML, CSVs, code, emails?)
  2. What query types? (factual lookup, multi-hop reasoning, summarization?)
  3. What latency requirement? (<500ms, <2s, offline batch?)
  4. What accuracy vs cost tradeoff? (quality vs speed vs expense)
  5. What scale? (thousands vs millions of documents)

Chunking Strategy

Document Type Strategy Chunk Size Overlap
Prose / articles Semantic (sentence boundary) 512 tokens 64 tokens
Code Function/class boundary Variable 0
Tables / structured Row-level 256 tokens 0
Long-form reports Hierarchical (section → paragraph) 1024 tokens 128 tokens

Embedding Model Selection

Use Case Model Notes
Highest quality text-embedding-3-large Best for complex queries
Cost-efficient text-embedding-3-small 5x cheaper, still strong
Open source / private nomic-embed-text Self-hosted option
Code search voyage-code-2 Optimized for code

Hybrid Search Architecture

Query
  │
  ├── Dense Search (70% weight)
  │     └── Embedding → vector similarity (cosine)
  │
  └── Sparse Search (30% weight)
        └── BM25 keyword matching
  │
  ▼
Reciprocal Rank Fusion (RRF)
  │
  ▼
Cross-Encoder Re-Ranker (top-10 → top-3)
  │
  ▼
Answer Synthesis with Citations

Read the full file on GitHub · 104 lines

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. 7d ago First seen · 104 lines · 95 tokens per session scan A 280030d78c43

Subscribe to this mod's changes

rag-architect is a skill published in the GitHub repository vignesh2027/Claude-Agentic-Skills2.0-version (6 stars, last pushed 13d ago), licensed MIT. It adds 95 tokens to every session and 882 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

Vizra ADK Memory System

Implement persistent memory, session context, and vector memory (RAG) for AI agents.

vizra-ai/vizra-adk · 24 tokens

continuum-recipes

Copy-pasteable Continuum patterns — RAG, plan-and-execute, ReAct, multi-tenant agents, FastAPI integration, structured output, prompt-injection scanning, custom containers. Invoke when the user asks "how do I do X with Continuum" and X is a common app pattern rather than a single API question.

shyftlabs/continuum · 73 tokens

reasoningbank-agentdb

Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems.

frankxai/claude-skills-library · 55 tokens

feature-engineer

Design and create ML features — encoding, scaling, interaction terms, embeddings, and feature selection.

inbharatai/claude-skills · 23 tokens

AgentDB Performance Optimization

Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors.

shyftlabs/continuum · 53 tokens

ReasoningBank with AgentDB

Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems.

shyftlabs/continuum · 56 tokens