rag-rat: Skill for Claude Code

.agents/skills/init-rag-rat/SKILL.md

init-rag-rat is a skill for Claude Code, Codex from cq27-dev/rag-rat. It costs 224 tokens per session (2,186 once invoked), scanned A, original, MIT.

A guided setup for rag-rat, a repository indexing and memory tool, when its server has not indexed the codebase yet.

In plain words
What is it for?
It helps initialize rag-rat, choose an embedding backend, scan the repository, validate the configuration, and create an index.
Why use it?
It avoids guessing configuration files or using a command-line version that cannot read the resulting index.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

This is cq27-dev/rag-rat's own configuration. It tells Claude Code and Codex how to work on rag-rat itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rag-rat configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cq27-dev/rag-rat. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cq27-dev/rag-rat/main/.agents/skills/init-rag-rat/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cq27-dev/rag-rat

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 init-rag-rat

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cq27-dev/rag-rat/init-rag-rat"><img src="https://agentmods.dev/badge/skills/cq27-dev/rag-rat/init-rag-rat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 224 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,186 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.00224 $0.02186
Opus 5.5 $0.00090 $0.00874
Sonnet 5.5 $0.00045 $0.00437
Haiku 4.5 $0.00022 $0.00219

Measured 27d ago against content hash 53abfc4a8e95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

init-rag-rat 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 27d 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.

.agents/skills/init-rag-rat/SKILL.md · 117 lines

How it starts

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

init-rag-rat — configure a dormant rag-rat repo conversationally

rag-rat's MCP server boots dormant in a repo with no rag-rat.toml: ordinary tools return {"status":"no_index", "remedy":"Run rag-rat init … then restart"}. This skill turns that into a short guided setup. You own the conversation; rag-rat init owns the scan and validation — never hand-write a config blind, and let a real config load re-check it before indexing.

The common path

  1. Detect state. You are here because a rag-rat tool returned status: "no_index", or the user asked to set up rag-rat. Confirm there is no rag-rat.toml at (or above) the repo root. If one already exists, this is a reconfigure — send the user to the interactive rag-rat init wizard and stop.

  2. Resolve the CLI and use the same form throughout, from the target repo's root. It must match the version the rag-rat MCP server runs, so the index you create is one the server can read — do not use @latest, and don't blindly trust an on-PATH rag-rat:

    • If rag-rat is on PATH, check rag-rat --version and use it only if it matches the plugin/MCP version — a stale global install would build the index with the wrong binary. With the plugin, ~/.local/bin/rag-rat is its version-matched binary (the MCP server links it when it starts), so try that path too if rag-rat alone is not found.
    • Otherwise (or on a version mismatch) use npx -y @rag-rat/[email protected] … — the plugin pins @rag-rat/bin to its own version and caches the binary privately, so this is the version-matched CLI; npx runs it in the current directory.
  3. Dry-run discovery. <rag-rat> init --yes --dry-run scans the repo and prints the auto-detected config (languages, path bindings, the default local FastEmbed backend) without writing. Read it; tell the user the material bits in a line or two (which languages and directories) — not every commented knob.

Read the full file on GitHub · 117 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 27d ago Changed 53abfc4a8e95
  2. 1mo ago Changed · +9 lines 41f5b201ff2f
  3. 1mo ago Changed 42e251aed4ff
  4. 1mo ago Changed 012260e1b5f1
  5. 2mo ago First seen · 108 lines · 224 tokens per session scan A 38b708d3fa9b

Subscribe to this mod's changes

init-rag-rat is a skill published in the GitHub repository cq27-dev/rag-rat (26 stars, last pushed 28d ago), licensed MIT. It adds 224 tokens to every session and 2,186 once invoked, about $0.0009 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

init-rag-rat compared with skills from other repositories

init-rag-rat next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
init-rag-ratcq27-dev/rag-ratSkill2628d agoMITA224Claude Code, Codex
orchardcore-ai-memoryCrestApps/CrestApps.AgentSkillsSkill1316d agoMITA197Claude Code
orchardcore-ai-memory-azureaiCrestApps/CrestApps.AgentSkillsSkill1316d agoMITA140Claude Code
qdrant-recall-sidecarphenomenoner/hermes-agent-harness-plusSkill31mo agoMITA47Claude Code, Codex
agent-v3-memory-specialistruvnet/rufloSkill81kyesterdayMITA25Claude Code
knowledge-orgbojieli/ai-agent-bookSkill57k29d agoApache-2.0A96Claude Code, Codex
xerjxerj-org/xerjSkill19kyesterdayApache-2.0A38Claude Code, Codex