fix · takagoto — Claude Code skill: what it does, how to install
Diagnoses and repairs broken RAG pipelines without lectures or theory. Useful when retrieval returns garbage or the model hallucinates.
npx skills add TakaGoto/rag-learning-academy --skill fix -a claude-codeWhat fix does
This skill focuses on repairing an existing RAG pipeline without walking through study material. It skips the curriculum and directly asks for the symptom, covering bad retrieval outputs, hallucinations, indexing misses, or query latency.
The agent inspects pipeline code files, checking chunking configuration, embedding model dimensions, vector database metric settings, retrieval top-k parameters, and prompt context injection. It then reports the root cause backed by evidence in your files and outputs a code diff.
The routine requires existing pipeline source files in your workspace; without actual implementation code, diagnosis cannot run. When progress/debug-log.md is present in your repository, the skill writes the resolution details there.
What it helps with
- Fix poor retrieval precision caused by bad chunk size or overlap
- Diagnose model hallucinations caused by missing context injection
- Track down vector collection issues causing empty search outputs
- Resolve throughput bottlenecks across embedding batches and database lookups
Example prompts for the agent
- Our RAG pipeline returns irrelevant context on technical queries, diagnose it with fix
- The model hallucinates answers despite having indexed docs, run fix on src/pipeline.py
- Use fix to inspect our retrieval logic: queries only work half the time
How to install fix
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill fix -a claude-code2Manually: put the files in place
~/.claude/skills/fix/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/fix/
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill fix -a codex2Manually: put the files in place
.agents/skills/fix/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill fix -a cursor2Manually: put the files in place
.cursor/skills/fix/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install TakaGoto/rag-learning-academy fix2Manually: put the files in place
.github/skills/fix/SKILL.md1Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill fix -a gemini-cli2Platform CLI
gemini skills install https://github.com/TakaGoto/rag-learning-academy --path .claude/skills/fixManually: put the files in place
.devin/skills/fix/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add TakaGoto/rag-learning-academy --skill fix -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about fix
How do I install fix in Claude Code?
Run npx skills add TakaGoto/rag-learning-academy --skill fix -a claude-code in your terminal.
What does the fix skill do?
It identifies the failure symptom in your RAG setup, reads your source code, isolates the root cause, and provides a targeted code diff.
How is fix different from /debug-rag?
The /debug-rag command walks learners through failure modes step by step, whereas fix focuses on delivering an immediate patch without educational commentary.
Source text
SKILL.md · MIT
--- name: fix description: "Diagnose and fix your RAG pipeline — skip the teaching, get to the answer" --- # 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." ## Step 5: Verify Help them test the fix: 1. Re-run the failing query 2. Compare the output to what they expected 3. If still broken, go back to Step 3 with the new information ## Step 6: Optional Learning After the fix works, offer (don't push): "Want to understand why this happened? `/explain [relevant concept]` goes deeper on this." Log the fix to `progress/debug-log.md` if the file exists. Suggest next steps: - `/lesson` on the concept behind the issue - `/build` to implement the correct pattern from scratch - `/roadmap` to see your overall progress
© TakaGoto · MIT · TakaGoto/rag-learning-academy
Similar skills
All skills for AI and ML →fix by other authors comes first.