rag-your-code

rag-your-code is a skill for Claude Code from skymanbp/rag-your-code. It costs 20 tokens per session (1,808 once invoked), scanned A, original, MIT.

A local search system that indexes a codebase and stores explainable records about its contents. It can then search for relevant code and describe the indexed coverage.

In plain words
What is it for?
Use it to build a searchable index, find related implementations, inspect repository coverage, and describe what the index contains.
Why use it?
It helps locate code and understand a broad repository when ordinary browsing or symbol searches are not enough.

Skill for Claude Code

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

Part of the rag-your-code plugin — 1 skill, 4 commands shipped together

Good fit Use it to build a searchable index, find related implementations, inspect repository coverage, and describe what the index contains.

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

Made for: Claude Code.

Or install rag-your-code, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/skymanbp/rag-your-code/rag-your-code"><img src="https://agentmods.dev/badge/skills/skymanbp/rag-your-code/rag-your-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,808 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.00020 $0.01808
Opus 5.5 $0.00008 $0.00723
Sonnet 5.5 $0.00004 $0.00362
Haiku 4.5 $0.00002 $0.00181

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

Security

Grade A, and why

rag-your-code 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 3mo 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/rag-your-code/SKILL.md · 163 lines

How it starts

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

RAG Your Code

Use this skill when repository context is broad or a symbol's implementation is difficult to locate.

Four commands cover the same ground explicitly, and a user can reach them without this skill firing at all: /rag-your-code:index, /rag-your-code:search, /rag-your-code:describe, /rag-your-code:status. Offer the one that fits rather than narrating the steps, and offer /rag-your-code:describe whenever coverage is the thing holding retrieval back — it is the largest available improvement and the one nobody discovers on their own.

Workflow

  1. Make sure the package is importable. A plugin install copies this skill but not the Python package, so check once per machine and install if the import fails. Use python -m pip rather than a bare pip so the package lands in the same interpreter the later commands run under.

    python -c "import ragyourcode" || python -m pip install --user rag-your-code
    
  2. Build the index and find out what this repository still needs:

    python -m ragyourcode.cli bootstrap .
    

    Indexing a repository is not the same as making it searchable. A fresh index retrieves against the sentence the parser generated, which adds no word the source did not already have, so a question phrased in domain terms reaches nothing. bootstrap indexes, says which rung this repository is on — descriptions to write, a promotion to apply, or nothing left — and hands over that rung's work. It reads the state rather than remembering a position, so running it again after each round is how you make progress.

    index still exists and does only the indexing.

  3. Retrieve focused context before making a change:

    python -m ragyourcode.cli search "<concept or behavior>" --json --limit 8
    

    Add --graph --hops 1 when callers, callees, containment, or small imported modules are relevant. Prefer one hop; use two only when the first path provides concrete edge evidence.

Read the full file on GitHub · 163 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. 3mo ago First seen · 163 lines · 20 tokens per session scan A b7875f8b36ea

Subscribe to this mod's changes

rag-your-code is a skill published in the GitHub repository skymanbp/rag-your-code (1 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 1,808 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-08-31.

Related

rag-your-code compared with skills from other repositories

rag-your-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rag-your-codeskymanbp/rag-your-codeSkill12mo agoMITA20Claude Code
graphifyGraphify-Labs/graphifySkill155k2d agoApache-2.0B76Claude Code
graphifyGraphify-Labs/graphifySkill155k2d agoApache-2.0B76Claude Code
graph-retrievalstudy8677/repobrainSkill1.4k4d agoMITA46Claude Code
knowledge-layerstudy8677/repobrainSkill1.4k4d agoMITA42Claude Code
cloudflare-vectorizesecondsky/claude-skillsSkill2578d agoMITA37Claude Code
gnogmickel/gnoSkill1173d agoMITA86Claude Code