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/kumaran-is/claude-code-onboardingWrote 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/kumaran-is/claude-code-onboarding/scaffold-rag-pipeline)<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-rag-pipeline"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-rag-pipeline/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.
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-rag-pipeline"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-rag-pipeline.svg" alt="Reviewed on agentmods" width="80" 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.00056 | $0.00707 |
| Opus 5 | $0.00028 | $0.00353 |
| Sonnet 5 | $0.00011 | $0.00141 |
| Haiku 4.5 | $0.00006 | $0.00071 |
Grade A, and why
scaffold-rag-pipeline 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scaffold RAG Pipeline
Generate a complete retrieval-augmented generation pipeline.
Input: $ARGUMENTS
Steps
-
Load the
vector-databaseskill — readSKILL.mdandreferences/rag-pipeline-patterns.mdfor templates and anti-patterns. -
Gather requirements — Extract from
$ARGUMENTSor ask:- Pipeline name (snake_case, e.g.,
vendor_rag) - Vector store:
pgvector,weaviate, orboth(two-stage) - Embedding model (from skill model table)
- Chunking strategy (recursive / sentence / paragraph / fixed) + chunk size
- Reranking: Cohere / cross-encoder / none (must justify "none" for production)
- Framework: LangChain integration or custom Python
- Use case (determines retrieval filters and query patterns)
- Pipeline name (snake_case, e.g.,
-
Generate pipeline files:
embedding_service.pyEMBEDDING_MODELconstant (not per-call string)EmbeddingServiceclass withembed(text)andembed_batch(texts)async methods- Rate-limit and timeout error handling (retry 3× with exponential backoff)
try/excepton all API calls — no silent failures
chunking.py- Chunking function with strategy from requirements
RecursiveCharacterTextSplitterwith non-zero overlap- Returns
List[{"text": str, "metadata": dict}]
{storage}_retriever.py(pgvector and/or weaviate)- Async retrieval function with null guard
- Structured filter support (city, category, etc.)
top_kparameter → retrieves 3× final count for reranking room
reranker.py(if not "none")- Cohere rerank wrapper or cross-encoder
- Accepts merged candidates from both retrieval stages if two-stage
pipeline.py- Orchestrates: query → embed query → retrieve → rerank → format context
- Score threshold filter (configurable, default 0.5)
- Logging of retrieval counts and latency
- Returns
{"results": [...], "context": str, "metadata": {...}}
tests/test_{pipeline_name}.py- Unit test: embedding service returns correct shape
- Unit test: chunking respects chunk_size and overlap
- Integration test: retrieve → rerank returns expected structure
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.
- 6d ago First seen · 67 lines · 56 tokens per session scan A c9933e761fc8
scaffold-rag-pipeline is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 56 tokens to every session and 707 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-09-03.
Other commands, from other repositories
querying
Query documents from a search index using type-safe filters with support for pagination, sorting, field selection, scoring, and highlighting. Count matching documents efficiently without returning results.
agent
Add an AI agent / RAG backend (@convex-dev/agent) to the Convex app.
ingest
Manually add knowledge to the Weaviate store.
inference.embed
Embed one or more texts into vectors.
vector.batch_exists
Check existence for multiple vector keys.
vector.batch_upsert
Upsert multiple vectors in one itemwise batch.