rag-learning-academy: Skill for Claude Code

.claude/skills/fix/SKILL.md

fix is a skill for Claude Code from TakaGoto/rag-learning-academy. It costs 19 tokens per session (640 once invoked), scanned A, original, MIT.

A troubleshooting skill for an existing RAG pipeline. RAG, or retrieval-augmented generation, gives an AI relevant information from a collection before it writes an answer.

In plain words
What is it for?
Use it to inspect pipeline code and diagnose areas such as text splitting, embeddings, and the vector database.
Why use it?
It helps find causes of poor search results, made-up answers, slow responses, missing results, or failures that happen only for some queries.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is TakaGoto/rag-learning-academy's own configuration. It tells Claude Code how to work on rag-learning-academy 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-learning-academy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to TakaGoto/rag-learning-academy. 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/TakaGoto/rag-learning-academy/main/.claude/skills/fix/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/TakaGoto/rag-learning-academy

Made for: Claude Code.

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 fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/takagoto/rag-learning-academy/fix.svg)](https://agentmods.dev/skills/takagoto/rag-learning-academy/fix)
Your own site
<a href="https://agentmods.dev/skills/takagoto/rag-learning-academy/fix"><img src="https://agentmods.dev/badge/skills/takagoto/rag-learning-academy/fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 640 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.00019 $0.00640
Opus 5 $0.00010 $0.00320
Sonnet 5 $0.00004 $0.00128
Haiku 4.5 $0.00002 $0.00064

Measured 8d ago against content hash e0df507e58bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

fix 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 8d 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.

.claude/skills/fix/SKILL.md · 73 lines

How it starts

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

Fix: Fast-Track RAG Diagnosis

Scope: This skill diagnoses and fixes an existing pipeline with no teaching. For guided debugging that explains common failure modes, use /debug-rag.

For learners who already have a RAG pipeline and just need help fixing it. No curriculum, no lessons — straight to diagnosis and solutions.

Language awareness: See .claude/LANGUAGE_AWARENESS.md.

Step 1: Get the Symptom

Ask one question: "What's going wrong?"

Common symptoms and what to probe for:

Symptom Follow-up
"Bad retrieval results" Ask for a sample query + what it returns vs what it should return
"Hallucinating" Ask if context is being passed, and what the prompt looks like
"Slow" Ask about data size, embedding model, vector DB, and whether they're batching
"No results" Ask if data is indexed, and check the collection exists
"Works sometimes" Ask for a working query and a failing query — compare them

Step 2: Read Their Code

Ask the learner to point you to their pipeline code. Read the files in src/ or wherever they indicate. Look at:

  1. Chunking — strategy, size, overlap
  2. Embedding — model, dimensions, normalization
  3. Storage — vector DB config, distance metric
  4. Retrieval — top-k, filters, search type
  5. Generation — prompt template, context injection, grounding instructions

Step 3: Diagnose

Identify the likely root cause. Present it clearly:

Diagnosis: [one-line summary]
Root cause: [what's actually happening]
Evidence: [what in their code/output points to this]

If you're not certain, rank the top 2-3 most likely causes and explain how to verify each.

Step 4: Fix It

Provide the specific code change needed. Show a before/after diff if possible. Explain why the fix works in 1-2 sentences — enough to understand, not a lecture.

If the fix requires multiple changes, prioritize: "Fix this first, then we'll check if the other issues resolve."

Read the full file on GitHub · 73 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. 8d ago First seen · 73 lines · 19 tokens per session scan A e0df507e58bf

Subscribe to this mod's changes

fix is a skill published in the GitHub repository TakaGoto/rag-learning-academy (18 stars, last pushed 5mo ago), licensed MIT. It adds 19 tokens to every session and 640 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-30.

Related

Other skills, from other repositories

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens

rag-blueprint

NVIDIA RAG Blueprint — deploy, configure, troubleshoot, and manage. Handles any RAG action: deploy, install, start, enable, disable, toggle, change, configure, troubleshoot, debug, fix, shutdown, stop, or tear down any RAG feature or service (Agentic RAG, VLM, guardrails, query rewriting, models, search, ingestion…

NVIDIA-AI-Blueprints/rag · 92 tokens

rag-index-decisions

After making a non-obvious architectural decision, solving a novel bug, agreeing on a coding standard, or reaching a conclusion worth remembering, index it back into the knowledge base so the next occurrence is one search away. Uses adddocument or addfromurl. Closes the feedback loop that makes a RAG-backed team…

lyonzin/knowledge-rag · 72 tokens

rag-troubleshoot

When the user reports a bug, error message, stack trace, unexpected behavior, or "why is this broken" question, search the corpus first for prior occurrences, known fixes, or related runbooks. Prevents re-solving problems the team already solved. Trigger on any error signature, exception name, stack trace snippet, or…

lyonzin/knowledge-rag · 78 tokens

mistake-analyzer

Analyze incorrect answers from text, documents, or images; identify root causes of mistakes; classify error types; explain correct reasoning; and generate targeted improvement suggestions, wrong-question notebook entries, or similar practice questions. Use when the user provides a wrong answer, asks why they were…

mingchen666/Reviva · 72 tokens

doctor

Run a health check on the bundled Lumen semantic search setup for the current project, verify backend reachability and index freshness, and summarize remediation steps.

ory/lumen · 32 tokens