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.
npx agentmods add skills/skymanbp/rag-your-code/rag-your-codenpx skills add skymanbp/rag-your-code --skill rag-your-codegit clone --depth 1 https://github.com/skymanbp/rag-your-codeWhat 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.
| Model | Per session | Once 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 |
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.
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
-
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 piprather than a barepipso the package lands in the same interpreter the later commands run under.python -c "import ragyourcode" || python -m pip install --user rag-your-code -
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.
bootstrapindexes, 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.indexstill exists and does only the indexing. -
Retrieve focused context before making a change:
python -m ragyourcode.cli search "<concept or behavior>" --json --limit 8Add
--graph --hops 1when callers, callees, containment, or small imported modules are relevant. Prefer one hop; use two only when the first path provides concrete edge evidence.
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.
- yesterday First seen · 163 lines · 20 tokens per session scan A b7875f8b36ea
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.
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…
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.
vs-search
Search runtime and scene management: verify queries, inspect scenes, debug app readiness, and diagnose recall or scene-config issues.
vs-shared
Shared SearchCLI setup: install, authenticate, run doctor, and verify the local environment.
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.
local-search
Skill "local-search" from taxueseek/argo, covering local search 子技能, 设计原则, 本地引擎列表(33 个,29 个默认启用), 调用方式 and 直接调用子技能(单引擎).