rag-architecture-review

rag-architecture-review is a skill for Claude Code from mohitagw15856/pm-claude-skills. It costs 89 tokens per session (1,014 once invoked), scanned A, original, MIT.

A review guide for an existing retrieval-augmented generation (RAG) system, which answers questions using a collection of documents. It checks each stage, from adding and splitting documents to finding relevant passages and generating answers.

In plain words
What is it for?
Use it to audit a “chat with your docs” feature, investigate hallucinated answers, and review retrieval settings, document processing, and answer prompts.
Why use it?
It helps locate the stage causing wrong, unsupported, or outdated answers instead of treating every problem as a model problem. It also ranks possible fixes by likely impact.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pm-ai plugin — 10 skills shipped together

Good fit Use it to audit a “chat with your docs” feature, investigate hallucinated answers, and review retrieval settings, document processing, and answer prompts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitagw15856/pm-claude-skills/rag-architecture-review
About the project

PM Skills is a collection of plain-Markdown instructions that teach AI assistants structured methods for handling professional, personal, and life-admin tasks. People use it with Claude, ChatGPT, Gemini, Cursor, Codex, and other supported agents for work such as writing product requirements, reviewing documents, or planning difficult situations.

mohitagw15856/pm-claude-skills · 1,618 stars · on GitHub · mohitagw15856.github.io

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 mohitagw15856/pm-claude-skills --skill rag-architecture-review
Clone the repo
git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills

Made for: Claude Code.

Or install pm-ai, the plugin that ships this one along with the rest of its 10 skills.

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-architecture-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitagw15856/pm-claude-skills/rag-architecture-review/github.svg)](https://agentmods.dev/skills/mohitagw15856/pm-claude-skills/rag-architecture-review)
Your own site
<a href="https://agentmods.dev/skills/mohitagw15856/pm-claude-skills/rag-architecture-review"><img src="https://agentmods.dev/badge/skills/mohitagw15856/pm-claude-skills/rag-architecture-review/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-architecture-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitagw15856/pm-claude-skills/rag-architecture-review"><img src="https://agentmods.dev/badge/skills/mohitagw15856/pm-claude-skills/rag-architecture-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,014 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 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.00089 $0.01014
Opus 5.5 $0.00036 $0.00406
Sonnet 5.5 $0.00018 $0.00203
Haiku 4.5 $0.00009 $0.00101

Measured 1mo ago against content hash 58260288b4b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rag-architecture-review 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 1mo 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.

plugins/pm-ai/skills/rag-architecture-review/SKILL.md · 77 lines

How it starts

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

RAG Architecture Review Skill

A RAG system that "hallucinates sometimes" is almost never one bug — it's a chain where the weakest stage caps quality, and the symptom (a wrong answer) is far from the cause (a chunk that was never retrieved). This skill reviews an existing pipeline stage by stage, isolates where quality leaks, and ranks fixes by impact so you work the biggest lever first. (Designing a new system from scratch? Use rag-design-doc.)

Working from a brief

Given a partial description ("it uses pgvector and sometimes makes things up"), deliver the full staged review anyway — infer the likely setup for each unstated stage, label the inference, and flag what to confirm. Never withhold the review for missing detail; a labelled assumption plus "confirm this" beats a blank.

Required Inputs

Ask for these only if they aren't already provided (else infer and label):

  • The current architecture — ingestion, chunking, embedding model, vector store, retrieval (top-k, hybrid?), reranking, and the generation prompt.
  • The symptoms — examples of bad answers (wrong, ungrounded, stale, refuses) with the expected answer.
  • The corpus — what's retrieved over, its size, structure, and update frequency.
  • Constraints — latency, cost, and per-tenant/permission isolation needs.

Output Format

RAG Review: [system]

1. Summary — the headline: where quality is leaking and the top 3 fixes, in priority order.

2. Stage-by-stage findings — for each stage, what's working, what's not, and why:

Stage Finding Severity Root cause Fix
Chunking 1500-tok fixed chunks split tables mid-row High structure-blind splitting structure-aware chunking + metadata
Retrieval pure vector, no keyword High exact IDs/terms missed add hybrid (BM25 + dense)
Generation weak grounding instruction Med model answers from prior "answer only from context; else say unknown"

Read the full file on GitHub · 77 lines

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. 1mo ago First seen · 77 lines · 89 tokens per session scan A 58260288b4b2

Subscribe to this mod's changes

rag-architecture-review is a skill published in the GitHub repository mohitagw15856/pm-claude-skills (1,618 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 1,014 once invoked, about $0.0004 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-12.

Related

rag-architecture-review compared with skills from other repositories

rag-architecture-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rag-architecture-reviewmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA89Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code