Skip to content

Guide · Agent skill

How to use the RAG Architect agent skill: setup and examples

Updated · written with AI from the project's own documentation and checked against our catalogue data

The rag-architect skill is a set of instructions and code patterns that teaches an AI agent to design and build retrieval-augmented generation (RAG) systems, which let an AI answer questions using your own documents. It is written for developers who are building a knowledge-base or document Q&A feature and want a structured checklist. After following this guide you will know what the skill does, how to install it, how to ask for it in plain language, and what you need before running its examples.

RAG ArchitectJeffallan/claude-skills · MIT

Quick start

  1. 1Download and unzip. Download the rag-architect ZIP from this page and unzip it.
  2. 2Place the folder. Move the rag-architect folder into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder.
  3. 3Or upload in the Claude apps. In the Claude apps, open Settings → Capabilities → Skills and upload the skill.
  4. 4Describe your RAG goal. Ask in plain language, for example about a document Q&A feature, and include your data size and latency needs.
  5. 5Install prerequisites. Set up Python, LangChain, the Qdrant client, and the API keys and libraries your chosen examples need.
  6. 6Run and evaluate. Run the examples on your own data and check the retrieval metrics against the thresholds the skill suggests.

What the rag-architect skill makes the agent do

An agent skill is a folder of instructions that an AI agent loads when a task matches the skill's description. The rag-architect skill covers the full RAG pipeline: splitting documents into chunks, turning chunks into embeddings (numerical representations used for semantic search), storing them in a vector database, combining keyword and semantic search, reranking results, and measuring retrieval quality.

The skill's SKILL.md file lays out five steps: requirements analysis, vector store design, chunking strategy, retrieval pipeline, and evaluation and iteration. It also includes reference notes on comparing vector databases and embedding models, and on chunking, retrieval optimization and RAG evaluation.

  • Chunking documents with LangChain's RecursiveCharacterTextSplitter and metadata such as source and timestamp
  • Generating embeddings with OpenAI and indexing them in Qdrant with deterministic IDs
  • Hybrid search that combines dense vector results with BM25 keyword scores
  • Reranking the top results with Cohere
  • Evaluating retrieval with precision@k, recall@k, MRR and Ragas metrics

Install the rag-architect skill

Download the rag-architect ZIP from this page and unzip it. To make the skill available across all your projects, place the unzipped folder in ~/.claude/skills/. To limit it to one project, place it in that project's .claude/skills/ folder.

If you use the Claude apps instead, open Settings, go to Capabilities, and upload the skill under Skills.

  • Personal (all projects): ~/.claude/skills/
  • Single project: .claude/skills/ inside the project folder
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

How to trigger the skill with natural requests

You do not need to name the skill. The skill's description tells the agent when to use it, and it activates for requests about building RAG systems, vector databases, knowledge-grounded AI applications, semantic search, document retrieval, embedding-based indexing or similarity search. The metadata also lists trigger terms such as RAG, vector search, embeddings, knowledge base and context retrieval.

Describe your goal and your constraints. Mention your data, scale and latency needs so the agent can work through requirements first.

  • "Design a RAG pipeline for our 5,000 internal support articles, with source citations."
  • "Which vector database should I use for a multi-tenant document Q&A feature?"
  • "Write chunking code for Markdown documentation and explain the chunk size choice."
  • "Help me set up hybrid search and measure precision@10 and recall@10."

Examples of what you get back

The skill asks the agent to deliver a system architecture diagram, a vector database selection with trade-offs, a chunking strategy with rationale, a retrieval pipeline design from query to results, and an evaluation plan with pass/fail thresholds.

The code examples are Python. The chunking example splits text with RecursiveCharacterTextSplitter (chunk_size=800, chunk_overlap=100) and attaches source metadata. The indexing example creates a Qdrant collection sized for OpenAI's text-embedding-3-small model. The evaluation example runs Ragas metrics such as context_precision and context_recall. The skill notes that chunk size should be evaluated on your own data rather than used blindly.

python evaluate.py --metrics precision@10 recall@10 mrr --collection knowledge_base

What you need before running the examples

The skill itself runs no scripts, but its code patterns assume a Python environment and several services. The skill uses network access, and the examples call third-party APIs.

  • Python
  • LangChain (text splitters)
  • An OpenAI API key for the embedding examples
  • The Qdrant client and a running Qdrant instance
  • A Cohere API key for the reranking example
  • The rank_bm25 library
  • Ragas and datasets libraries for the evaluation example

Safety notes: scripts, network and data

The skill does not run scripts itself, but it does use the network. Its examples send document text to third-party embedding and reranking APIs, which may expose that data. Review this before using sensitive documents.

The skill's own guidance is to load provider API keys from environment variables or a secrets manager and never commit them to source code. Store API keys that way and check the code the agent writes before you run it.

  • Do not send confidential or regulated documents to third-party APIs without review.
  • Keep API keys out of source code.
  • Test on production-like data volumes before deploying.

Tips for getting good results

Ask the agent to evaluate chunk sizes and embedding models on your domain data before committing. The skill's rules call for hybrid search in production, metadata filters for multi-tenant retrieval, and retrieval metrics alongside LLM output quality.

  • Give the agent your document types, query volume and latency targets up front.
  • Ask for metadata such as source, timestamp and section on every chunk.
  • Use deterministic IDs so re-ingesting documents does not create duplicates.
  • Track retrieval quality over time, not just once.

What people use it for

  • Designing a knowledge-base Q&A feature for internal company documents
  • Choosing a vector database for a multi-tenant SaaS product
  • Writing a chunking and indexing pipeline for Markdown or technical documentation
  • Adding hybrid keyword and semantic search to an existing search feature
  • Measuring retrieval quality with precision@k, recall@k and MRR before connecting an LLM

Frequently asked questions

How do I install the rag-architect skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder for one project. In the Claude apps, you can instead upload it under Settings → Capabilities → Skills.

Is the rag-architect skill free?

The skill is published under the MIT licence. The APIs its examples call, such as OpenAI and Cohere, are third-party services that may charge for use, so check their terms separately.

What does the rag-architect skill require?

It requires Python, LangChain text splitters, an OpenAI API key for embedding examples, the Qdrant client and a running Qdrant instance, a Cohere API key for reranking, the rank_bm25 library, and Ragas and datasets for evaluation.

Does the rag-architect skill run scripts on my computer?

According to its listing, the skill does not run scripts, but it does use the network. Its examples send text to third-party embedding and reranking APIs.

Is rag-architect a finished RAG app?

No. It gives an agent design guidance and code snippets. You still need to assemble, configure and run the system yourself.

When should I not use rag-architect?

Skip it for simple keyword search, since the skill assumes vector infrastructure and adds complexity. Also be cautious with sensitive documents, because the examples send text to third-party APIs.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use rag-architect if you are a developer building a document Q&A or knowledge-base feature and want a structured checklist with code patterns and retrieval metrics. Pick something else if you need a finished app, if your search needs are simple keyword matching, or if you cannot send your documents to third-party APIs.

Download the skill