arch-rag

arch-rag is a skill for Claude Code from alvin-reyes/better-agentic-ide. It costs 29 tokens per session (417 once invoked), scanned A, original, MIT.

A retrieval and knowledge-system design guide for finding useful information from stored documents. It covers how to collect, split, represent, search and assess that information.

In plain words
What is it for?
Use it to plan a RAG system, where an AI retrieves relevant source material before answering, and to record the chosen design and its consequences.
Why use it?
It helps compare retrieval designs before implementation, so teams can expose trade-offs around quality, cost, scale and failure cases.

Skill for Claude Code

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

Good fit Use it to plan a RAG system, where an AI retrieves relevant source material before answering, and to record the chosen design and its consequences.

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

Made for: Claude Code.

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/alvin-reyes/better-agentic-ide/arch-rag/github.svg)](https://agentmods.dev/skills/alvin-reyes/better-agentic-ide/arch-rag)
Your own site
<a href="https://agentmods.dev/skills/alvin-reyes/better-agentic-ide/arch-rag"><img src="https://agentmods.dev/badge/skills/alvin-reyes/better-agentic-ide/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/alvin-reyes/better-agentic-ide/arch-rag"><img src="https://agentmods.dev/badge/skills/alvin-reyes/better-agentic-ide/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 unknown 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.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 today 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 today.

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.

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. today 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 alvin-reyes/better-agentic-ide (85 stars, last pushed 9d ago), 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.