rag-architect

rag-architect is a skill for Claude Code, Codex from zacklecon/claude-skills. It costs 31 tokens per session (937 once invoked), scanned A, original, MIT.

A guide for building systems that let AI search a collection of documents before answering. RAG, or retrieval-augmented generation, combines document search with an AI language model so answers can use stored information.

In plain words
What is it for?
Use it for document question-answering, knowledge-base chatbots, semantic search, vector database design, document processing, and measuring retrieval quality.
Why use it?
It helps design how documents are split, indexed, found, and supplied to the model, reducing answers that are unsupported by the available knowledge.

Skill for Claude CodeCodex

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

Good fit Use it for document question-answering, knowledge-base chatbots, semantic search, vector database design, document processing, and measuring retrieval quality.

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

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/zacklecon/claude-skills/rag-architect/github.svg)](https://agentmods.dev/skills/zacklecon/claude-skills/rag-architect)
Your own site
<a href="https://agentmods.dev/skills/zacklecon/claude-skills/rag-architect"><img src="https://agentmods.dev/badge/skills/zacklecon/claude-skills/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/zacklecon/claude-skills/rag-architect"><img src="https://agentmods.dev/badge/skills/zacklecon/claude-skills/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 937 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.00937
Opus 5 $0.00015 $0.00468
Sonnet 5 $0.00006 $0.00187
Haiku 4.5 $0.00003 $0.00094

Measured 10d ago against content hash 455fe3e2720b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 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-architect/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 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 · 89 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. 10d ago First seen · 89 lines · 31 tokens per session scan A 455fe3e2720b

Subscribe to this mod's changes

rag-architect is a skill published in the GitHub repository zacklecon/claude-skills (3 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 937 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-31.