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.
git clone --depth 1 https://github.com/latestaiagents/agent-skillsWrote 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.
[](https://agentmods.dev/commands/latestaiagents/agent-skills/build-rag)<a href="https://agentmods.dev/commands/latestaiagents/agent-skills/build-rag"><img src="https://agentmods.dev/badge/commands/latestaiagents/agent-skills/build-rag.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.00432 |
| Opus 5 | $0.00006 | $0.00216 |
| Sonnet 5 | $0.00002 | $0.00086 |
| Haiku 4.5 | $0.00001 | $0.00043 |
Grade A, and why
build-rag 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 4d 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.
What it actually says
/build-rag
Build a complete RAG pipeline with best practices.
What I Need
Tell me:
- What documents/data will you be querying?
- What's your use case (Q&A, search, chatbot)?
- Any technology preferences (LangChain, LlamaIndex, custom)?
- Scale expectations (documents, queries/day)?
Workflow
Step 1: Document Processing
I'll help you set up:
- Document loading (PDF, web, database)
- Chunking strategy based on content type
- Metadata extraction
Step 2: Embedding & Indexing
We'll configure:
- Embedding model selection
- Vector store setup
- Index optimization
Step 3: Retrieval Pipeline
I'll implement:
- Basic vector search
- Hybrid search (if needed)
- Reranking layer
Step 4: Generation
We'll build:
- Prompt template
- Context formatting
- Citation handling
Step 5: Evaluation
I'll set up:
- Test dataset creation
- Retrieval metrics
- Quality monitoring
Architecture Options
Simple RAG:
Query → Embed → Search → Context → Generate → Answer
Production RAG:
Query → Cache Check → Hybrid Search → Rerank → Generate → Validate → Cache → Answer
Quick Start Templates
LangChain:
from langchain_community.vectorstores import Chroma
from langchain_openai import OpenAIEmbeddings, ChatOpenAI
from langchain.chains import RetrievalQA
vectorstore = Chroma.from_documents(docs, OpenAIEmbeddings())
qa = RetrievalQA.from_chain_type(
llm=ChatOpenAI(),
retriever=vectorstore.as_retriever()
)
LlamaIndex:
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
documents = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
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.
- 4d ago First seen · 89 lines · 12 tokens per session scan A e542e3b3640c
build-rag is a command published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 432 once invoked, about $0.0001 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.
Other commands, from other repositories
dataset
Manage dataset manifests for data that is too large or unsuitable to store directly in the wiki. The wiki becomes the index/interface; the data stays external.
fdk-react-create
Create a new Platform 3.0 React Meta app (default UI stack). Uses fdk create react-starter-template or react-meta skeletons with DEW components, metaConfig in manifest.json, and React Router.
fdk-refactor
Reduce function complexity in a Freshworks app to meet cyclomatic complexity ≤ 7 per function. Extracts helper functions, simplifies conditionals, and preserves behavior while improving code quality.
ai
Invoke the AI/LLM Application Engineer for RAG, agents, prompt engineering, evals, tool use, and LLM guardrails.
fw-setup-uninstall
Uninstall FDK completely — keeps Node.js and nvm (/fw-setup uninstall).
checklist
Generate a custom checklist for the current feature based on user requirements.