rag-your-code

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 CodeCodex

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.

agentmods
npx agentmods add skills/skymanbp/rag-your-code/rag-your-code
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, Codex.

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. Scan, not verified.
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 $0.00020 $0.01808
Opus 5 $0.00010 $0.00904
Sonnet 5 $0.00004 $0.00362
Haiku 4.5 $0.00002 $0.00181

Measured yesterday against content hash b7875f8b36ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 6d ago), licensed MIT. It adds 20 tokens to every session and 1,808 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

ccc

This skill should be used when code search is needed (whether explicitly requested or as part of completing a task), when indexing the codebase after changes, or when the user asks about ccc, cocoindex-code, or the codebase index. Trigger phrases include 'search the codebase', 'find code related to', 'update the…

cocoindex-io/cocoindex-code · 80 tokens

ux-ui-analyze-single-page

Analyze exactly one captured UI page (from uxuimap screenshots + request JSON) and immediately write/update uxuimap/pages/{page}.md in neutral descriptive language. Use when asked to analyze screenshots, rewrite corresponding analysis immediately, or avoid memory/context saturation.

raphaelmansuy/edgequake · 58 tokens

vs-search

Search runtime and scene management: verify queries, inspect scenes, debug app readiness, and diagnose recall or scene-config issues.

volcengine/SearchCLI · 27 tokens

vs-shared

Shared SearchCLI setup: install, authenticate, run doctor, and verify the local environment.

volcengine/SearchCLI · 22 tokens

boutique-best-practices

Best practices for using Boutique with Swift 6 concurrency, @Observable, @ObservationIgnored, Sendable conformance, testing with preview stores, and dependency injection. Use when troubleshooting Boutique issues, migrating to Swift 6, or setting up tests.

mergesort/Boutique · 56 tokens

local-search

Skill "local-search" from taxueseek/argo, covering local search 子技能, 设计原则, 本地引擎列表(33 个,29 个默认启用), 调用方式 and 直接调用子技能(单引擎).

taxueseek/argo · 66 tokens