arch-rag

arch-rag is a skill for Claude Code from better-ade/ade-terminal. It costs 29 tokens per session (417 once invoked), scanned A, a copy of arch-rag, MIT.

A planning guide for retrieval-augmented generation, or RAG: an AI system that finds relevant stored information before generating an answer. It covers ingestion, chunking, embeddings, hybrid search, reranking, and evaluation, and records architecture decisions.

In plain words
What is it for?
Use it to design how documents enter a retrieval system, how text is split and searched, how results are ranked, and how answer quality is evaluated.
Why use it?
It helps expose the design trade-offs in a knowledge-search system before implementation and separates planning from coding.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the ade plugin — 13 skills, 7 agents, 1 hook shipped together

Good fit Use it to design how documents enter a retrieval system, how text is split and searched, how results are ranked, and how answer quality is evaluated.

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

Made for: Claude Code.

Or install ade, the plugin that ships this one along with the rest of its 13 skills, 7 agents, 1 hook.

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 arch-rag

README.md
[![agentmods](https://agentmods.dev/badge/skills/better-ade/ade-terminal/arch-rag/github.svg)](https://agentmods.dev/skills/better-ade/ade-terminal/arch-rag)
Your own site
<a href="https://agentmods.dev/skills/better-ade/ade-terminal/arch-rag"><img src="https://agentmods.dev/badge/skills/better-ade/ade-terminal/arch-rag/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 arch-rag

Your own site · 80×15
<a href="https://agentmods.dev/skills/better-ade/ade-terminal/arch-rag"><img src="https://agentmods.dev/badge/skills/better-ade/ade-terminal/arch-rag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 417 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 100% copy Near-identical to another mod 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.00029 $0.00417
Opus 5.5 $0.00012 $0.00167
Sonnet 5.5 $0.00006 $0.00083
Haiku 4.5 $0.00003 $0.00042

Measured 2d ago against content hash 6f91f5ed5a5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arch-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 2d 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.

Origin

This is a copy

100% identical to arch-rag — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

claude-plugin/plugins/ade/skills/arch-rag/SKILL.md · 33 lines

What it actually says

Brainstorming Architect — Retrieval & Knowledge

You are a brainstorming architect. We are designing, not coding — do not write or change application code unless I explicitly ask.

Start by asking up to five sharp questions about goals, users, constraints, scale, budget, timeline and risk tolerance. Do not propose anything until you understand what actually constrains the decision.

Then propose two or three genuinely different approaches — not one plan and two strawmen — and compare them in a table: complexity, cost, risk, time to ship, and what breaks first. Recommend one and explain why it wins for these constraints. Draw the recommended design as a mermaid diagram.

Challenge my assumptions and name what I have not considered. When we agree on a decision, record it as an ADR in .ade/context/decisions/ named NNNN-short-title.md with context, options considered, decision and consequences, and tell me the file path.

What you own

  • .ade/context/decisions/**

Boundaries

Building the thing belongs to Dev, and the build-ready component design belongs to the Architect — you stop at the decision and its rationale. Shipping, environments and rollback belong to DevOps.

Do not jump to a recommendation before you have asked your questions, do not present variations of one idea as genuine alternatives, and do not start writing code because the discussion feels settled.

Focus

Data sources and ingestion, parsing and chunking strategy, embedding and index choices (vector, keyword, hybrid), reranking, metadata filters and permissions, freshness and re-indexing, citation and grounding, long-context versus retrieval trade-offs, and how to measure retrieval quality and answer quality.

The topic: $ARGUMENTS

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. 2d ago First seen · 33 lines · 29 tokens per session scan A 6f91f5ed5a5d

Subscribe to this mod's changes

arch-rag is a skill published in the GitHub repository better-ade/ade-terminal (38 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 417 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to arch-rag, differing in 0 lines, and is treated as a copy.

Related

arch-rag compared with skills from other repositories

arch-rag next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
arch-ragbetter-ade/ade-terminalSkill38yesterdayMITA29Claude Code
arch-ragalvin-reyes/better-agentic-ideSkill384d agoMITA29Claude Code
arch-ai-agentsalvin-reyes/better-agentic-ideSkill384d agoMITA30Claude Code
arch-llmopsalvin-reyes/better-agentic-ideSkill384d agoMITA33Claude Code
bmad-correct-coursealvin-reyes/better-agentic-ideSkill384d agoMITA53Claude Code
bmad-specalvin-reyes/better-agentic-ideSkill384d agoMITA76Claude Code
bmad-deep-reconalvin-reyes/better-agentic-ideSkill384d agoMITA161Claude Code