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 skills add lyonzin/knowledge-rag --skill rag-troubleshootgit clone --depth 1 https://github.com/lyonzin/knowledge-ragWrote 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.
[](https://agentmods.dev/skills/lyonzin/knowledge-rag/rag-troubleshoot)<a href="https://agentmods.dev/skills/lyonzin/knowledge-rag/rag-troubleshoot"><img src="https://agentmods.dev/badge/skills/lyonzin/knowledge-rag/rag-troubleshoot/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.
<a href="https://agentmods.dev/skills/lyonzin/knowledge-rag/rag-troubleshoot"><img src="https://agentmods.dev/badge/skills/lyonzin/knowledge-rag/rag-troubleshoot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.01765 |
| Opus 5.5 | $0.00031 | $0.00706 |
| Sonnet 5.5 | $0.00016 | $0.00353 |
| Haiku 4.5 | $0.00008 | $0.00177 |
Grade C, and why
rag-troubleshoot scanned grade C with 1 finding 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 1mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
Try: (a) check network to huggingface.co, (b) rm -rf models_cache/ and restart, How it starts
The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rag-troubleshoot — RAG-first debugging
When to use this skill
Trigger the moment the user reports:
- A specific error message, stack trace, or exception
- "It broke", "it fails", "not working", "returns null when it shouldn't"
- Unexpected behavior in a component
- Alert / incident triage
- "Why does X do Y" where Y is wrong
- A pasted log line
- A failed CI/CD run
The core insight: many bugs are already solved somewhere in your corpus — runbook, postmortem, incident report, prior fix commit, ADR, chat thread indexed via add_from_url. Search first.
What this skill commits to
Before proposing a fix, the agent searches for:
- The error signature itself — exception name, first line of stack, unique error code
- The affected component / function — module name, service name, feature
- Prior incidents with similar symptoms — even if the error message differs
Only after those three come back empty does the agent apply general debugging techniques.
Steps
-
Extract error signatures from the user's message:
- Exception class name (
ValueError,ConnectionError,TimeoutError, etc.) - Error code (
ERR_INVALID_TOKEN,E42_INDEX_MISS, HTTP status) - First distinctive line of the stack trace
- Unique keywords ("segfault at ...", "cannot connect to ...")
- Exception class name (
-
First search — exact error signature:
search_knowledge(query="<exception name> <error keyword>", max_results=5, min_score=0.15)Example:
search_knowledge(query="ConnectionError refused chromadb") -
Second search — affected component + symptom:
search_knowledge(query="<component name> <what happens>", max_results=5)Example:
search_knowledge(query="reindex fails halfway large corpus") -
Third search — historical incidents / postmortems:
search_knowledge(query="incident postmortem <component>", max_results=5)Or with a category filter if your corpus categorizes by document type:
search_knowledge(query="<component> failure", category="incidents")
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.
- 1mo ago First seen · 164 lines · 78 tokens per session scan C 22ae66f43b14
rag-troubleshoot is a skill published in the GitHub repository lyonzin/knowledge-rag (300 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 1,765 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
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…
autorag-doctor
Diagnose and repair a broken or half-working AutoRAG install so every configured source is both indexed and searchable. Checks AutoRAG, MinSync, Jikji, the embedding backend, and every CLI-backed datasource (lazykatok, discrawl, slacrawl, wacrawl, telecrawl, notcrawl, mailcrawl, rclone, Spotlight), then fixes orphan…
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.
profile-vllm-performance
Profile vLLM and RT-VLM inference to identify and remove GPU-idle gaps, underfilled batches, transfer stalls, serialized multimodal work, scheduler gaps, or KV pressure. Use this skill when GPU utilization is unexpectedly low or bursty, capacity trails another runtime, TTFT or ITL regresses, or multimodal prefill and…
rag-architecture-review
Review an existing Retrieval-Augmented Generation system and find why it underperforms. Use when asked to review or audit a RAG pipeline, diagnose wrong/ungrounded answers from a 'chat with your docs' feature, or improve an already-built knowledge assistant. Produces a staged review — ingestion, chunking, retrieval…
rag
Use when building grounded Q&A over your own corpus — chunk, retrieve hybrid, rerank, ground, cite chunk ids, refuse when the sources fall short — or when the right document is retrieved but the answer is still wrong, invented, or unmeasured. NOT operating the store itself — collection schema, HNSW efsearch…