SRA: Skill for Claude Code

.agents/skills/rag-agent-builder/SKILL.md

rag-agent-builder is a skill for Claude Code, Codex from Aniket-a14/SRA. It costs 61 tokens per session (2,987 once invoked), scanned A, original, Apache-2.0.

A guide to building Retrieval-Augmented Generation applications, which let an AI model search external documents or knowledge bases before writing an answer. It covers embeddings, vector databases, search strategies, and answer generation.

In plain words
What is it for?
Build document question-answering tools, knowledge bases, enterprise search, and AI agents that retrieve information from external sources.
Why use it?
It helps ground AI responses in relevant source material instead of relying only on the model's built-in knowledge. It provides patterns for improving retrieval and measuring search and answer quality.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Aniket-a14/SRA's own configuration. It tells Claude Code and Codex how to work on SRA itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SRA configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Aniket-a14/SRA. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Aniket-a14/SRA/main/.agents/skills/rag-agent-builder/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Aniket-a14/SRA

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-agent-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/aniket-a14/sra/rag-agent-builder/github.svg)](https://agentmods.dev/skills/aniket-a14/sra/rag-agent-builder)
Your own site
<a href="https://agentmods.dev/skills/aniket-a14/sra/rag-agent-builder"><img src="https://agentmods.dev/badge/skills/aniket-a14/sra/rag-agent-builder/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-agent-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/aniket-a14/sra/rag-agent-builder"><img src="https://agentmods.dev/badge/skills/aniket-a14/sra/rag-agent-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,987 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.02987
Opus 5 $0.00030 $0.01494
Sonnet 5 $0.00012 $0.00597
Haiku 4.5 $0.00006 $0.00299

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

Security

Grade A, and why

rag-agent-builder 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 9d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (examples/agentic_rag.py, examples/basic_rag.py, examples/retrieval_strategies.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/rag-agent-builder/SKILL.md · 441 lines

How it starts

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

RAG Agent Builder

Build powerful Retrieval-Augmented Generation (RAG) applications that enhance LLM capabilities with external knowledge sources, enabling accurate, contextualized AI responses.

Quick Start

Get started with RAG implementations in the examples and utilities:

Overview

RAG systems combine three key components:

  1. Document Retrieval - Find relevant information from knowledge bases
  2. Context Integration - Pass retrieved context to the LLM
  3. Response Generation - Generate answers grounded in the retrieved information

This skill covers building production-ready RAG applications with various frameworks and approaches.

Core Concepts

What is RAG?

RAG augments LLM knowledge with external data:

  • Without RAG: LLM relies on training data (may be outdated or limited)
  • With RAG: LLM uses real-time, custom knowledge + training knowledge

When to Use RAG

  • Document Q&A: Answer questions about PDFs, books, reports
  • Knowledge Base Search: Query internal documentation, wikis
  • Enterprise Search: Search proprietary company data
  • Context-Specific Assistants: Customer support, HR assistants
  • Fact-Heavy Applications: Legal docs, medical records, financial data

Read the full file on GitHub · 441 lines

Files

What ships with it

7 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. 9d ago First seen · 441 lines · 61 tokens per session scan A 51538dccc9bb

Subscribe to this mod's changes

rag-agent-builder is a skill published in the GitHub repository Aniket-a14/SRA (23 stars, last pushed 10d ago), licensed Apache-2.0. It adds 61 tokens to every session and 2,987 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

rag-knowledge

Work with the RAG knowledge base — ingest documents, run semantic search, manage collections, or add a sync source/connector (Google Drive, S3). Use when populating or debugging the knowledge base, tuning retrieval, or adding a new document source. This project uses {{ cookiecutter.vectorstore }} + {{…

vstorm-co/full-stack-ai-agent-template · 76 tokens

postgres-semantic-search

PostgreSQL-based semantic and hybrid search with pgvector and ParadeDB. Use when implementing vector search, semantic search, hybrid search, or full-text search in PostgreSQL. Covers pgvector indexing, hybrid FTS/BM25 + RRF, ParadeDB, reranking, halfvec, multilingual search, query translation, and domain evals.…

laguagu/claude-code-nextjs-skills · 228 tokens

chromadb

Operational skill for ChromaDB: collections, embeddings, metadata filters, persistence, and local RAG vector storage.

alivirgo/Major-AI-Skills · 26 tokens

Cursor rules for Next

Cursor rules for Next.js development with Tailwind CSS and TypeScript integration.

AmariahAK/atlarix-skills · 4 tokens

ask-ai

Configure the Ask AI (RAG-powered AI chat) in @farming-labs/docs. Use when enabling AI chat, setting mode (search vs floating), floatingStyle (panel, modal, popover, full-modal), position, providers, models, suggestedQuestions, apiKey, systemPrompt, or maxResults. Covers Next.js, SvelteKit, Astro, Nuxt and env vars.

farming-labs/docs · 83 tokens

oma-db

Database specialist for SQL, NoSQL, and vector database modeling, schema design, normalization, indexing, transactions, integrity, concurrency control, backup, capacity planning, data standards, anti-pattern review, and compliance-aware database design. Use for database, schema, ERD, table design, document model…

first-fluke/fullstack-starter · 111 tokens