rag-architect

rag-architect is a skill for Claude Code, Codex from hainamchung/agent-assistant. It costs 31 tokens per session (971 once invoked), scanned A, original, MIT.

A guide to retrieval-augmented generation, a way to let AI applications search documents or databases before producing an answer.

In plain words
What is it for?
Use it to design document-ingestion pipelines, chunking, embeddings, vector databases, semantic search, and retrieval evaluation.
Why use it?
It helps ground AI responses in relevant information and improve retrieval quality, accuracy, latency, and cost.

Skill for Claude CodeCodex

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

Good fit Use it to design document-ingestion pipelines, chunking, embeddings, vector databases, semantic search, and retrieval evaluation.

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

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/hainamchung/agent-assistant/rag-architect/github.svg)](https://agentmods.dev/skills/hainamchung/agent-assistant/rag-architect)
Your own site
<a href="https://agentmods.dev/skills/hainamchung/agent-assistant/rag-architect"><img src="https://agentmods.dev/badge/skills/hainamchung/agent-assistant/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/hainamchung/agent-assistant/rag-architect"><img src="https://agentmods.dev/badge/skills/hainamchung/agent-assistant/rag-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 971 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.00031 $0.00971
Opus 5.5 $0.00012 $0.00388
Sonnet 5.5 $0.00006 $0.00194
Haiku 4.5 $0.00003 $0.00097

Measured 2mo ago against content hash 4e2171c4582b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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-architect/SKILL.md · 101 lines

How it starts

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

RAG Architect

Senior AI systems architect specializing in Retrieval-Augmented Generation (RAG), vector databases, and knowledge-grounded AI applications.

Role Definition

You are a senior RAG architect with expertise in building production-grade retrieval systems. You specialize in vector databases, embedding models, chunking strategies, hybrid search, retrieval optimization, and RAG evaluation. You design systems that ground LLM outputs in factual knowledge while balancing latency, accuracy, and cost.

When to Use This Skill

  • Building RAG systems for chatbots, Q&A, or knowledge retrieval
  • Selecting and configuring vector databases
  • Designing document ingestion and chunking pipelines
  • Implementing semantic search or similarity matching
  • Optimizing retrieval quality and relevance
  • Evaluating and debugging RAG performance
  • Integrating knowledge bases with LLMs
  • Scaling vector search infrastructure

Core Workflow

  1. Requirements Analysis - Identify retrieval needs, latency constraints, accuracy requirements, scale
  2. Vector Store Design - Select database, schema design, indexing strategy, sharding approach
  3. Chunking Strategy - Document splitting, overlap, semantic boundaries, metadata enrichment
  4. Retrieval Pipeline - Embedding selection, query transformation, hybrid search, reranking
  5. Evaluation & Iteration - Metrics tracking, retrieval debugging, continuous optimization

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Vector Databases references/vector-databases.md Comparing Pinecone, Weaviate, Chroma, pgvector, Qdrant
Embedding Models references/embedding-models.md Selecting embeddings, fine-tuning, dimension trade-offs
Chunking Strategies references/chunking-strategies.md Document splitting, overlap, semantic chunking
Retrieval Optimization references/retrieval-optimization.md Hybrid search, reranking, query expansion, filtering
RAG Evaluation references/rag-evaluation.md Metrics, evaluation frameworks, debugging retrieval

Read the full file on GitHub · 101 lines

Files

What ships with it

5 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. 2mo ago First seen · 101 lines · 31 tokens per session scan A 4e2171c4582b

Subscribe to this mod's changes

rag-architect is a skill published in the GitHub repository hainamchung/agent-assistant (54 stars, last pushed 6mo ago), licensed MIT. It adds 31 tokens to every session and 971 once invoked, about $0.0001 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-03.

Related

rag-architect compared with skills from other repositories

rag-architect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rag-architecthainamchung/agent-assistantSkill546mo agoMITA31Claude Code, Codex
agent-platform-rag-engine-managementgoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
embeddingsruvnet/rufloSkill83ktodayMITA62Claude Code
llm-app-patternsdavila7/claude-code-templatesSkill35ktodayMITA54Claude Code, Codex
graphifyGraphify-Labs/graphifySkill155ktodayApache-2.0B76Claude Code
9router-embeddingsdecolua/9routerSkill33k8d agoMITA66Claude Code, Codex
browserwing-adminMemTensor/MemOSSkill13ktodayApache-2.0B47Claude Code, Codex