rag-code-review

rag-code-review is a skill for Claude Code, Codex from lyonzin/knowledge-rag. It costs 83 tokens per session (1,766 once invoked), scanned A, original, MIT.

A code-review workflow that searches the team’s stored knowledge before commenting on a pull request, diff, or code snippet. It checks relevant architecture decisions, coding standards, existing patterns, and past incidents.

In plain words
What is it for?
Use it when reviewing changes involving areas such as authentication, retries, logging, configuration, dependencies, ingestion, search, or storage.
Why use it?
It makes review comments fit the project’s actual rules and history instead of applying generic advice that may conflict with established practice.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when reviewing changes involving areas such as authentication, retries, logging, configuration, dependencies, ingestion, search, or storage.

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

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lyonzin/knowledge-rag/rag-code-review"><img src="https://agentmods.dev/badge/skills/lyonzin/knowledge-rag/rag-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,766 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00083 $0.01766
Opus 5.5 $0.00033 $0.00706
Sonnet 5.5 $0.00017 $0.00353
Haiku 4.5 $0.00008 $0.00177

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

Security

Grade A, and why

rag-code-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.

skills/workflow/rag-code-review/SKILL.md · 172 lines

How it starts

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

rag-code-review — review against team standards, not the internet

When to use this skill

Trigger when the user asks:

  • "Review this PR / code / diff"
  • "Any issues with this?"
  • "Does this look right?"
  • "Is this idiomatic?"
  • "Should I merge this?"
  • Any critique-style prompt on a code artifact

What this skill commits to

Before offering ANY review comment, the agent consults the corpus for:

  1. ADRs governing the area (auth, retries, error handling, naming, dependencies…)
  2. Existing patterns — similar files that show the "how we do this" convention
  3. Prior incidents touching the code being changed

Review comments then read as "per ADR-XXXX we do Y here" rather than "generally you should Z".


Steps

  1. Identify the "area" of the change. From the diff / snippet, extract:

    • The file path or module name (e.g. services/payment/, mcp_server/security.py)
    • The concern touched (auth, retries, logging, config, ingestion, search, storage…)
    • Any new dependencies, endpoints, or public API changes
  2. Search for governing ADRs / standards:

    search_knowledge(query="<concern> ADR standard", max_results=5)
    

    Example: search_knowledge(query="retry policy ADR")

  3. Find similar existing files (patterns to follow):

    search_similar(filepath="<the file being changed>", max_results=5)
    

    If the file is new, use search_knowledge with the file's purpose instead.

  4. Look for prior incidents / postmortems on adjacent code:

    search_knowledge(query="<component> incident postmortem", max_results=3)
    
  5. Structure the review comments:

    ### Findings
    
    1. **[required]** Per ADR-0031 [docs/adr/0031-retries.md] the retry policy is
       "3 attempts, exponential backoff". This PR uses 5 attempts — either match
       the ADR or open a follow-up ADR to document the exception.
    
    2. **[suggestion]** The error-handling shape here differs from what
       `services/payment/refund_service.py` does [search_similar hit].
       Consider aligning for consistency.
    
    3. **[nit]** Missing docstring on `_new_helper()`. Team standard is ≥80%
       docstring coverage (interrogate gate, per CONTRIBUTING.md).
    
    ### Not commented on
    
    Style / naming / whitespace — those are ruff's job. Reviewed only what
    ruff cannot catch.
    

Read the full file on GitHub · 172 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 · 172 lines · 83 tokens per session scan A b1b43b276f31

Subscribe to this mod's changes

rag-code-review is a skill published in the GitHub repository lyonzin/knowledge-rag (297 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,766 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

advisor-orchestrator-worker

Use when a task is too large for one model pass, needs parallel research or generation across many subtasks (like researching a dozen competitors at once), or the user asks to orchestrate multiple models, split work across a model team, run an advisor-worker loop, have a stronger model review the plan while cheap…

Shubhamsaboo/awesome-llm-apps · 100 tokens

rag-architecture-review

Review an existing Retrieval-Augmented Generation system and find why it underperforms. Use when asked to review or audit a RAG pipeline, diagnose wrong/ungrounded answers from a 'chat with your docs' feature, or improve an already-built knowledge assistant. Produces a staged review — ingestion, chunking, retrieval…

mohitagw15856/pm-claude-skills · 89 tokens

rag-design-doc

Design a Retrieval-Augmented Generation system end to end. Use when asked to design a RAG pipeline, a 'chat with your docs' feature, a knowledge assistant, or to debug why a RAG system gives wrong/ungrounded answers. Produces a RAG design doc — ingestion & chunking, embeddings & index, retrieval & reranking, the…

mohitagw15856/pm-claude-skills · 92 tokens

rag

Use when building grounded Q&A over your own corpus — chunk, retrieve hybrid, rerank, ground, cite chunk ids, refuse when the sources fall short — or when the right document is retrieved but the answer is still wrong, invented, or unmeasured. NOT operating the store itself — collection schema, HNSW efsearch…

ericrisco/rsc-harness · 79 tokens

gh-issues

Process GitHub issues as an automation queue: /gh-issues lists and filters issues, confirms selected issue numbers, deduplicates fix/issue- work, delegates one focused PR per issue, and can monitor issue-fix PR review feedback. Use this instead of general PR workflow tools only when the entry point is a GitHub issue…

HybridAIOne/hybridclaw · 78 tokens

rag-perf

Performance benchmarking for a deployed NVIDIA RAG Blueprint server: profiling pass + aiperf load test driven by a single YAML config. Not for accuracy / RAGAS scoring (use rag-eval) or for deploying / repairing services (use rag-blueprint).

NVIDIA-AI-Blueprints/rag · 56 tokens